{% extends "admin/base_site.html" %} {% load i18n admin_urls static admin_modify jazzy_tabler %} {% get_jazzy_settings request as jazzy_settings %} {% block extrastyle %} {{ block.super }} {% endblock %} {% 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_title %} {% if add %}{% blocktrans with name=opts.verbose_name %}Add {{ name }}{% endblocktrans %}{% else %}{{ original|truncatewords:"18" }}{% endif %} {% endblock %} {% block page_actions %} {% if change %}
{% change_form_object_tools %}
{% endif %} {% endblock %} {% block content %}
{% csrf_token %} {% block form_top %}{% endblock %} {% if errors %}
{% if errors|length == 1 %} {% trans "Please correct the error below." %} {% else %} {% trans "Please correct the errors below." %} {% endif %}
{% for error in adminform.form.non_field_errors %}
{{ error|capfirst }}
{% endfor %} {% endif %}
{% if is_popup %}{% endif %} {% if to_field %}{% endif %} {% block field_sets %}
{% get_changeform_template adminform as changeform_template %} {% get_sections adminform inline_admin_formsets as sections %} {% include changeform_template %}
{% endblock %} {% block after_field_sets %}{% endblock %} {% block inline_field_sets %}{% endblock %} {% block after_related_objects %}{% endblock %}
{% if not jazzy_settings.changeform_show_buttons_below %}
{% block submit_buttons_bottom %} {% submit_row %} {% endblock %}
{% else %} {% endif %}
{% endblock %} {% block admin_change_form_document_ready %} {% prepopulated_fields_js %} {% endblock %} {% block extra_js %} {{ block.super }} {% endblock %}