{% load trans from i18n %} {% load add_preserved_filters from admin_urls %} {% load admin_urlname from admin_urls %} {% load admin_urlquote from admin_urls %} {% load apnumber from humanize %} {{ wizard.management_form }} {% comment %} The django admin does not style "button" elements the same as "input" submit elements. So we are forced to directly copy the style for rendering the "Previous" button for now. {% endcomment %}
{% block submit-row %} {% if object %} {% url opts|admin_urlname:'change' object.pk|admin_urlquote as close_url %} {% else %} {% url opts|admin_urlname:'changelist' as close_url %} {% endif %} {% if dismiss_failures_url %} Dismiss {{ failed_objects|length|apnumber|title }} Failing {% if failed_objects|length == 1 %} {{ opts.verbose_name|title }} {% else %} {{ opts.verbose_name_plural|title }} {% endif %} {% endif %} {% if wizard and wizard.steps.current != wizard.steps.first %} {% endif %} {% if wizard and wizard.steps.current != wizard.steps.last %} {% else %} {% if object %} {% endif %} {% endif %} {% endblock %}