{# ========================================================================== Workflow-Stepper — zeigt die Vertriebs-Pipeline-Position eines Belegs und einen prominenten "→ Nächster Schritt"-Button. Verwendung: {% include "_workflow_stepper.html" %} Erwartet im Context: workflow = db.compute_workflow_chain(...) ========================================================================== #} {% if workflow and workflow.steps %}
{% for s in workflow.steps %} {% if not loop.first %}{% endif %} {% if s.url %} {% if s.status == 'done' %}✓{% else %}{{ s.icon }}{% endif %} {{ s.label }} {% if s.no %}· {{ s.no }}{% endif %} {% else %} {{ s.icon }} {{ s.label }} {% endif %} {% endfor %} {% if workflow.next_url %} {% if workflow.next_method == "post" %}
{% else %} {{ workflow.next_label }} {% endif %} {% else %} ✓ Pipeline komplett {% endif %}
{% endif %}