{% comment %} The ordered steps, each with the number of people currently waiting on it. "Waiting" is where an active enrollment's `current_step` points — the rung it will run next — which is the count an operator means by "how many people are about to get step 3". The delay/window controls are a plain form per step rather than one big form: each step saves independently, so a validation refusal on one cannot discard edits to another. {% endcomment %}

Steps

{% if not steps %}
{% include "components/empty_state.html" with icon="sequences" title="No steps yet" body="A sequence with no steps completes the moment somebody subscribes to it." %}
{% else %}
{% for step in steps %}
{{ step.position }}

{{ step.flow.name }}

Wait {{ step.delay_label }}{% if step.window.enabled %}, {{ step.window.from }}–{{ step.window.to }}{% if step.window.use_contact_timezone %} in the contact's timezone{% endif %}{% endif %} · {{ step.waiting_count }} waiting

{% if can_edit %}
{% endif %}
{% if can_edit %}
{% csrf_token %} {% include "campaigns/_step_fields.html" with step=step %}
{% endif %}
{% endfor %}
{% endif %} {% if can_edit %}
{% csrf_token %} {% include "campaigns/_step_fields.html" %}
{% endif %}