{# comment Extend base_site.html instead of change_form.html b/c override extrastyle without block.super #} {% extends "admin/base_site.html" %} {% load i18n admin_urls static admin_modify semantic_utils %} {% has_url 'javascript-catalog' as javascript_catalog %} {% block extrahead %}{{ block.super }} {{ media }} {% endblock %}
{% if not is_popup %} {% block breadcrumbs %}
{% endblock %} {% endif %} {% block object-tools %} {% if change %} {% if not is_popup %} {% block object-tools-items %} {% if not has_absolute_url %}
{% endif %}
{% url opts|admin_urlname:'history' original.pk|admin_urlquote as history_url %} {% trans "History" %}
{% if has_absolute_url %}
{% trans "View on site" %}
{% endif %} {% endblock %} {% endif %} {% endif %} {% endblock %} {% block content %}
{% csrf_token %}{% block form_top %}{% endblock %}
{% if is_popup %}{% endif %} {% if to_field %}{% endif %} {% if save_on_top %}{% block submit_buttons_top %}{% submit_row %}{% endblock %}{% endif %} {% if errors %}
{% blocktranslate count counter=errors|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktranslate %}
{{ adminform.form.non_field_errors }} {% endif %}
{% block field_sets %} {% for fieldset in adminform %} {% include "admin/includes/fieldset.html" %} {% 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 %} {% block admin_change_form_document_ready %} {{ block.super }} {% endblock %} {# JavaScript for prepopulated fields #} {% prepopulated_fields_js %}
{% endblock %}