{% extends "admin/base_site.html" %} {% load i18n admin_urls admin_static admin_modify jet_tags %} {% block extrahead %} {{ block.super }} {{ media }} {% endblock %} {% block coltype %}colM{% endblock %} {% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} change-form{% endblock %} {% if not is_popup %} {% block breadcrumbs %} {% endblock %} {% endif %} {% block content %}
{% block object-tools %} {% if change %} {% if not is_popup %} {% endif %} {% endif %} {% endblock %}
{% csrf_token %} {% block form_top %}{% endblock %} {% if save_on_top %}{% block submit_buttons_top %}{% submit_row %}{% endblock %}{% endif %} {% filter_fieldsets_with_errors adminform as fieldsets_with_errors %}
{% if adminform.fieldsets|length > 1 or inline_admin_formsets|length > 0 %} {% endif %} {% if is_popup %}{% endif %} {% if to_field %}{% endif %} {% if errors %} {{ adminform.form.non_field_errors }} {% endif %} {% block field_sets %} {% for fieldset in adminform %} {% is_fieldset_selected forloop.counter0 fieldsets_with_errors as selected %} {% is_fieldset_with_errors forloop.counter0 fieldsets_with_errors as fieldset_with_errors %} {% include "admin/includes/fieldset.html" with index=forloop.counter0 selected=selected errors=fieldset_with_errors %} {% endfor %} {% endblock %} {% block after_field_sets %}{% endblock %} {% block inline_field_sets %} {% for inline_admin_formset in inline_admin_formsets %} {% formset_has_errors inline_admin_formset.formset as errors %} {% include inline_admin_formset.opts.template with index=forloop.counter0 errors=errors %} {% endfor %} {% endblock %} {% block after_related_objects %}{% endblock %} {% block admin_change_form_document_ready %} {% endblock %} {# JavaScript for prepopulated fields #} {% prepopulated_fields_js %}
{% block submit_buttons_bottom %}{% submit_row %}{% endblock %}
{% endblock %}