{% extends "wagtailadmin/generic/edit.html" %} {% load i18n wagtailadmin_tags %} {% block form_content %} {{ edit_handler.render_form_content }}
{% panel id="workflow-pages" icon="doc-empty-inverse" heading=_("Assign your workflow to pages") attrs=pages_formset.attrs %} {% if workflow.active %}

{% icon name='help' %} {% url 'wagtailadmin_workflows:usage' workflow.pk as workflow_pages_url %} {% blocktrans trimmed %} Workflows apply to child pages too. If you select a parent page here, its child pages will also use this workflow. See the list of the pages your workflow applies to. {% endblocktrans %}

{% include "wagtailadmin/workflows/includes/workflow_pages_formset.html" with formset=pages_formset %} {% else %}

{% icon name='help' %} {% trans "This workflow is disabled so it cannot be assigned to any pages." %}

{% endif %} {% endpanel %} {% if has_workflow_enabled_models %} {% panel id="workflow-content-types" icon="snippet" heading=_("Assign your workflow to snippets") %} {% if workflow.active %} {% formattedfield field=content_type_form.content_types sr_only_label=True %} {% else %}

{% icon name='help' %} {% trans "This workflow is disabled so it cannot be assigned to any snippets." %}

{% endif %} {% endpanel %} {% endif %}
{% endblock %} {% block extra_actions %} {% if can_enable %} {% elif can_disable %} {{ view.delete_item_label }} {% endif %} {% endblock %}