{% extends 'pipeline/base.html' %} {% load i18n %} {% block page_title %}{{ flow.name }}{% endblock %} {% block header_nav_brand %}{% trans "Pipeline" %}{% endblock header_nav_brand %} {% block pipeline_content %}
{# ── Flow header ─────────────────────────────────────────────────────── #}
{{ flow.get_flow_type_display }} {% if flow.status == 'draft' %} {% trans "Draft preview" %} {% endif %}

{{ flow.name }}

{% if flow.description %}

{{ flow.description }}

{% endif %}
{% blocktrans with done=completed_count count total=total_count %}{{ done }} of {{ total }} step complete{% plural %}{{ done }} of {{ total }} steps complete{% endblocktrans %}
{% if can_manage %} {% trans "Edit this flow" %} {% endif %}
{# ===== Step list ===================================================== #} {# ===== Step content ================================================== #}
{% if all_complete and not current and steps %} {# ── Completion card ─────────────────────────────────────── #}

{% trans "Flow complete" %}

{% if complete_body_html %}
{{ complete_body_html|safe }}
{% else %}

{% blocktrans with name=flow.name %}You have completed every required step in {{ name }}. Well done!{% endblocktrans %}

{% endif %}
{% elif current %} {# ── Current step ─────────────────────────────────────────── #}
{% if current.complete %} {% elif current.effective_type == 'acknowledgement' %} {% elif current.effective_type == 'service_check' %} {% else %} {% endif %}
{% blocktrans with number=current_number total=total_count %}Step {{ number }} of {{ total }}{% endblocktrans %} · {{ current.step.get_step_type_display }} {% if current.step.optional %}· {% trans "Optional" %}{% endif %}

{{ current.step.name }}

{% if current.complete %} {% trans "Done" %} {% endif %}
{% if current.body_html %}
{{ current.body_html|safe }}
{% elif not current.check_details and current.effective_type != 'service_check' %}

{% trans "There are no extra instructions for this step." %}

{% endif %} {# ── filter_check: requirements ───────────────────── #} {% if current.effective_type == 'filter_check' and current.check_details %}

{% trans "Requirements" %}

    {% for check in current.check_details %}
  • {% if check.passed %} {% trans "Met:" %} {% else %} {% trans "Not met yet:" %} {% endif %} {{ check.label }}
  • {% endfor %}
{% endif %} {# ── service_check: account status ────────────────── #} {% if current.effective_type == 'service_check' %}
{% blocktrans with slug=current.step.service_slug %}This step checks your {{ slug }} account.{% endblocktrans %} {% if current.complete %} {% trans "Your account is active." %} {% else %} {% trans "No active account found yet." %} {% endif %}
{% endif %}
{# ── Actions ──────────────────────────────────────────── #} {% if not current.complete %} {% elif next_step and next_step.step.pk != current.step.pk %} {% elif all_complete %} {% endif %}
{# ── Previous / next ─────────────────────────────────────── #} {% if prev_item or next_item %} {% endif %} {% else %}
{% trans "This flow has no steps yet." %}
{% endif %}
{% endblock pipeline_content %}