{% extends 'wagtailadmin/reports/base_report_results.html' %} {% load i18n wagtailadmin_tags %} {% block results %}
{% trans 'Workflow' %} | {% trans 'Page/Snippet' %} | {% trans 'Status' %} | {% trans 'Tasks' %} | {% trans 'Requested by' %} | {% trans 'Started at' %} |
---|---|---|---|---|---|
{{ workflow_state.workflow }} | {% latest_str workflow_state.content_object %} {% i18n_enabled as show_locale_labels %} {% if show_locale_labels and workflow_state.content_object.locale_id %} {% locale_label_from_id workflow_state.content_object.locale_id as locale_label %} {% status locale_label classname="w-status--label" %} {% endif %} | {% admin_url_name workflow_state.content_object 'workflow_history_detail' as workflow_history_detail_url_name %} {% url workflow_history_detail_url_name workflow_state.content_object.pk|admin_urlquote workflow_state.pk as status_url %} {% status workflow_state.get_status_display url=status_url classname="w-status--primary" %} |
{{ workflow_name }}{% trans 'Incomplete task' as incomplete_title %} {% for task in workflow_state.all_tasks_with_status %} {% if task.status == 'approved' %} {% icon "success" title=task.status_display classname="initial" %} {% elif task.status == 'rejected' %} {% icon "error" title=task.status_display classname="initial" %} {% else %} {% icon "radio-empty" title=incomplete_title classname="initial" %} {% endif %} {% endfor %} |
{{ workflow_state.requested_by|user_display_name }} | {{ workflow_state.created_at }} |
{% trans "No pages/snippets have been submitted for moderation yet" %}
{% endblock %}