{% extends "wagtailadmin/generic/index.html" %} {% load i18n wagtailadmin_tags %} {% block content %} {% fragment as workflow_actions %} {% if showing_disabled %} {% icon name="no-view" %}{% trans "Hide disabled workflows" %} {% else %} {% icon name="view" %}{% trans "Show disabled workflows" %} {% endif %} {% icon name="plus" wrapped=1 %}{{ view.add_item_label }} {% endfragment %} {% include "wagtailadmin/shared/header.html" with title=view.page_title icon=view.header_icon extra_actions=workflow_actions %}
{% if workflows %} {% for workflow in workflows %} {% endfor %}
{% trans "Name" %} {% trans "Used by" %} {% trans "Tasks" %}
{{ workflow }} {% trans "Disabled" as status_label %} {% if not workflow.active %}{% status status_label %}{% endif %}
{# Only show snippet type count if there's a model with workflows enabled #} {% if workflow_enabled_models %}
{% blocktrans trimmed count counter=workflow.content_types %} 1 snippet type {% plural %} {{ counter }} snippet types {% endblocktrans %}
{% endif %}
{% else %} {% url view.add_url_name as add_url %} {% if showing_disabled %}

{% blocktrans trimmed %}No workflows have been created. Why not add one?{% endblocktrans %}

{% else %}

{% blocktrans trimmed %}There are no enabled workflows. Why not add one?{% endblocktrans %}

{% endif %} {% endif %}
{% endblock %} {% block extra_js %} {{ block.super }} {% include "wagtailadmin/pages/_editor_js.html" %} {% endblock %}