71 lines
2.3 KiB
HTML
71 lines
2.3 KiB
HTML
{% extends "admin/base_site.html" %}
|
|
{% load i18n l10n %}
|
|
{% load url from future %}
|
|
{% load admin_urls static utils %}
|
|
|
|
{% block extrastyle %}
|
|
{{ block.super }}
|
|
<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}" />
|
|
<link rel="stylesheet" type="text/css" href="{% static "orchestra/css/hide-inline-id.css" %}" />
|
|
{% endblock %}
|
|
|
|
{% block breadcrumbs %}
|
|
<div class="breadcrumbs">
|
|
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
|
|
› <a href="{% url 'admin:app_list' app_label=app_label %}">{{ app_label|capfirst|escape }}</a>
|
|
› <a href="{% url opts|admin_urlname:'changelist' %}">{{ opts.verbose_name_plural|capfirst }}</a>
|
|
{% if obj %}
|
|
› <a href="{% url opts|admin_urlname:'change' obj.pk %}">{{ obj }}</a>
|
|
› {{ action_name }}
|
|
{% elif add %}
|
|
› <a href="../">{% trans "Add" %} {{ opts.verbose_name }}</a>
|
|
› {{ action_name }}
|
|
{% else %}
|
|
› {{ action_name }} multiple objects
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div>
|
|
<div style="margin:20px;">
|
|
<p>{{ content_message | safe }}</p>
|
|
<ul>{{ display_objects | unordered_list }}</ul>
|
|
<form action="" method="post">{% csrf_token %}
|
|
{% block form %}
|
|
{% if form %}
|
|
<fieldset class="module aligned">
|
|
{{ form.non_field_errors }}
|
|
{% for field in form %}
|
|
<div class="form-row ">
|
|
<div >
|
|
{{ field.errors }}
|
|
{% if field|is_checkbox %}
|
|
{{ field }} <label for="{{ field.id_for_label }}" class="vCheckboxLabel">{{ field.label }}</label>
|
|
{% else %}
|
|
{{ field.label_tag }} {{ field }}
|
|
{% endif %}
|
|
<p class="help">{{ field.help_text|safe }}</p>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</fieldset>
|
|
{% endif %}
|
|
{% endblock %}
|
|
{% block formset %}
|
|
{% if formset %}
|
|
{{ formset.as_admin }}
|
|
{% endif %}
|
|
{% endblock %}
|
|
<div>
|
|
{% for obj in queryset %}
|
|
<input type="hidden" name="{{ action_checkbox_name }}" value="{{ obj.pk|unlocalize }}" />
|
|
{% endfor %}
|
|
<input type="hidden" name="action" value="{{ action_value }}" />
|
|
<input type="hidden" name="post" value="{{ post_value|default:'generic_confirmation' }}" />
|
|
<input type="submit" value="{{ submit_value|default:_("Yes, I'm sure") }}" />
|
|
</div>
|
|
</form>
|
|
{% endblock %}
|
|
|