{% extends "wagtailadmin/base.html" %} {% load i18n wagtailadmin_tags %} {% block titletag %}{{ view.page_title }}{% endblock %} {% block extra_css %} {{ block.super }} {{ media.css }} {% endblock %} {% block extra_js %} {{ block.super }} {% include "wagtailadmin/pages/_editor_js.html" %} {{ media.js }} {% endblock %} {% block content %} {% include "wagtailadmin/shared/header.html" with title=view.page_title subtitle=object.name icon=view.header_icon merged=1 only %}
{% csrf_token %}
{% block form %}{{ edit_handler.render_form_content }}{% endblock %} {% trans "Assign your workflow to pages" as heading %} {% panel id="workflow-pages" icon="doc-empty-inverse" heading=heading %} {% 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 %} {% trans "Assign your workflow to snippets" as heading %} {% panel id="workflow-content-types" icon="snippet" heading=heading %} {% if workflow.active %} {% include "wagtailadmin/shared/field.html" with field=content_type_form.content_types sr_only_label=True only %} {% else %}

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

{% endif %} {% endpanel %} {% endif %}
{% block footer %} {% endblock %}
{% endblock %}