{# Workflow status and actions on record forms. #} {% if workflow_context and workflow_context.has_workflow %}
{% if workflow_context.statusbar %} {% endif %}
Workflow {% if workflow_context.started %}

{{ workflow_context.state_label }} {% if workflow_context.pending_transition %} (awaiting approval) {% endif %}

{% else %}

{% if workflow_context.auto_start %} {{ workflow_context.definition_name }} — not started on this record yet. {% else %} Not started — {{ workflow_context.definition_name }} {% endif %}

{% endif %}
{% if not workflow_context.started and workflow_context.can_start %} {% endif %} {% for tr in workflow_context.get('transitions', []) %} {% endfor %}
{% if workflow_context.get('pending_approvals') %}

Pending your approval

{% for ap in workflow_context.pending_approvals %}
{{ ap.transition_label }}
{% endfor %}
{% endif %} {% include "_workflow_timeline.html" %}
{% endif %}