{% extends "admin/polymorphic_tree/change_form.html" %} {% load i18n admin_modify %} {% comment %} Override the content block, so all templates will have the same set of blocks. This adds: * after_first_fieldset * the check of "original.is_published" in the toolbar And Django 1.3 also gets: * object-tools-items * field_sets * inline_field_sets * submit_buttons_top * submit_buttons_bottom {% endcomment %} {% block content %}
{% block object-tools %} {% if change and not is_popup %} {% endif %} {% if language_tabs %}{% include "admin/parler/language_tabs.html" %}{% endif %}{# manually included, this template overrides parler defaults #} {% endblock %}
{% csrf_token %}{% block form_top %}{% endblock %}
{% if is_popup %}{% endif %} {% if save_on_top %}{% block submit_buttons_top %}{% submit_row %}{% endblock %}{% endif %} {% if errors %}

{% blocktrans count errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}

{{ adminform.form.non_field_errors }} {% endif %} {% block field_sets %} {# first fieldset #} {% for fieldset in adminform %} {% if forloop.first %}{% include "admin/includes/fieldset.html" %}{% endif %} {% endfor %} {% block after_first_fieldset %}{% endblock %} {# all remaining fieldsets #} {% for fieldset in adminform %} {% if not forloop.first %}{% include "admin/includes/fieldset.html" %}{% endif %} {% endfor %} {% endblock %} {% block after_field_sets %}{% endblock %} {% block inline_field_sets %} {% for inline_admin_formset in inline_admin_formsets %} {% include inline_admin_formset.opts.template %} {% endfor %} {% endblock %} {% block after_related_objects %}{% endblock %} {% block submit_buttons_bottom %}{% submit_row %}{% endblock %} {% if adminform and add %} {% endif %} {# JavaScript for prepopulated fields #} {% prepopulated_fields_js %}
{% endblock %}