{% 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 %}
                    {% formattedfield field %}
                {% endif %}
            {% endfor %}
            <li>
                <button
                    type="submit"
                    class="button button-longrunning"
                    data-controller="w-progress"
                    data-action="w-progress#activate"
                >
                    {% icon name="spinner" %}{{ action_verbose }}
                </button>
            </li>
        </ul>
    </form>
</div>
