{% extends "base.html" %} {% block title %}{{ t('Approval rule') }}{% endblock %} {% block content %}
{{ t('Approval Workflow') }}

{{ r.name or t('New rule') }}

{{ t('When the rule applies') }}

{% if has('projects') %}
{% endif %}
{{ t('When several rules match, the lowest number wins.') }}

{{ t('Approval steps (in order)') }}

{{ t('Each step waits for its approvers before the next starts. Approvers are the members of the role and/or the people chosen. "Any" needs the number of approvals given; "All" needs everyone.') }}{% if has('projects') %} {{ t('A "Project manager" step goes to the manager of the document’s project and is skipped for documents without a project.') }}{% endif %}

{% for i in range(1, 7) %}{% set s = steps[i - 1] if steps|length >= i else {} %}
[steps|length, 1]|max + 1 %}hidden{% endif %} data-step="{{ i }}">
{% endfor %}
{{ t('Cancel') }} {% if r.id %}{% endif %}
{% endblock %}