{% extends "wcs/backoffice.html" %} {% load i18n %} {% block appbar-title %}{{ workflow.name }}{% endblock %} {% block appbar-actions %} {% if not workflow.is_readonly %} {% trans "change category" %} {% trans "change title" %} {% endif %} {% endblock %} {% block body %} {{ view.last_modification_block|safe }}

{% trans "Possible Status" %} {% if not workflow.is_readonly %} ({% trans "add status" %}) {% endif %}

{% if not workflow.possible_status %}

{% trans "There are not yet any status defined in this workflow." %}

{% else %} {% if workflow.is_readonly %}

{% trans "Workflow Functions" %} {% if not workflow.is_readonly %} ({% trans "add function" %}) {% endif %}

{% with workflow_roles=view.workflow.get_sorted_functions %} {% if workflow_roles %} {% endif %} {% endwith %}
{% if not workflow.is_default %}

{% trans "Workflow Variables" %} {% if not workflow.is_readonly %} ({% trans "change" %}) {% endif %}

{% if workflow.variables_formdef %} {% endif %}

{% trans "Global Actions" %} {% if not workflow.is_readonly %} ({% trans "add global action" %}) {% endif %}

{% if workflow.global_actions %} {% endif %}

{% trans "Criticality Levels" %} {% if not workflow.is_readonly %} ({% trans "add criticality level" %}) {% endif %}

{% if workflow.criticality_levels %} {% endif %}

{% trans "Backoffice Fields" %} {% if not workflow.is_readonly %} ({% trans "change" %}) {% endif %}

{% if workflow.backoffice_fields_formdef %} {% endif %}
{% endif %} {# not workflow.is_default #}

{% if workflow.possible_status %}
{{ view.graphviz|safe }}
{% endif %} {% with formdefs=workflow.formdefs carddefs=workflow.carddefs mail_templates=workflow.mail_templates %} {% if formdefs or carddefs or mail_templates %}

{% trans "Usage" %}

{% if formdefs %}

{% trans "This workflow is used for the following forms:" %}

{% endif %} {% if carddefs %}

{% trans "This workflow is used for the following card models:" %}

{% endif %} {% if mail_templates %}

{% trans "The following mail templates are used in this workflow:" %}

{% endif %}
{% endif %} {% endwith %} {% endblock %} {% block sidebar-content %} {% if workflow.is_default %}

{% blocktrans trimmed %} This is the default workflow, you cannot edit it but you can duplicate it to base your own workflow on it. {% endblocktrans %}

{% elif workflow.is_readonly %}

{% trans "This workflow is readonly." %}

{{ view.snapshot_info_block|safe }} {% endif %} {% if not workflow.is_readonly or workflow.is_default %}

{% trans "Actions" %}

{% trans "Navigation" %}

{{ view.errors_block|safe }} {% endif %} {% endblock %}