{% load i18n wagtailadmin_tags %}
{% include "wagtailadmin/shared/header.html" with title=action_verbose icon="clipboard-list" %}

<div class="nice-padding">
    {% include "wagtailadmin/shared/non_field_errors.html" %}

    <form action="{{ submit_url }}" method="POST" novalidate>
        {% csrf_token %}
        <ul class="fields">
            {% for field in form %}
                {% if field.is_hidden %}
                    {{ field }}
                {% else %}
                    {% include "wagtailadmin/shared/field.html" with field=field %}
                {% endif %}
            {% endfor %}
            <li><button type="submit" class="button button-longrunning">{% icon name="spinner" %}{{ action_verbose }}</button></li>
        </ul>
    </form>
</div>
