{% extends "admin/change_form.html" %} {% load i18n admin_modify actions static %} {% block extrahead %}{{ block.super }} {% endblock %} {% block breadcrumbs %}{% if not is_popup %} {% endif %}{% endblock %} {% block content %} {% if formset.errors %}

{% if formset.errors|length == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %}

{{ adminform.form.non_field_errors }} {% endif %}
{% csrf_token %} {{ formset.non_form_errors.as_ul }}
{% for form in formset.forms %} {% if forloop.first %} {% for field in form.visible_fields %} {% endfor %} {% endif %} {% for field in form.visible_fields %} {% endfor %} {% endfor %}
{# Include the hidden fields in the form #} {% if forloop.first %} {% for hidden in form.hidden_fields %} {{ hidden }} {% endfor %} {% endif %} {{ field.errors.as_ul }} {{ field }}
{{ formset.management_form }} {% for hidden in actionform.hidden_fields %} {{ hidden }} {% endfor %}
{% endblock %}