{% extends "base.html" %} {% block title %}Decision — MartinhalApprovalFlow{% endblock %} {% block content %}
This decision link doesn't match any request. It may have been mistyped or removed.
{% elif stage == 'confirm' %} {% if req.status != 'pending' %}Request #{{ req.id }} was already {{ req.status }} {% if req.decided_by %} by {{ req.decided_by }}{% endif %}.
{% else %}Workflow {{ req.wf_name }} · request #{{ req.id }} · approval step {{ req.current_step + 1 }} of {{ chain | length }}
From: {{ req.requester }}
Subject: {{ req.subject }}
Attachment: {{ req.attachment.split('_', 1)[-1] }} — sent to you in the approval email.
{% endif %} {% if action == 'approve' %} {% if req.current_step + 1 < chain | length %}Approving sends the request to the next approver: {{ chain[req.current_step + 1] }}.
{% else %}You are the last approver — approving completes the workflow and notifies everyone involved.
{% endif %} {% else %}Denying stops the workflow immediately and notifies everyone involved so far.
{% endif %} {% endif %} {% elif stage == 'done' %} {% if status == 'ok' %}{% if req.status == 'pending' %} step approved {% else %} {{ req.status }} {% endif %}
{{ message }}
{% else %}