{# templates/settings/wizard/steps.html #}
{% set is_default = True %} {% include 'settings/wizard/_sub_nav.html' with context %} {% if not grouped %}

{{ _("No steps found.") }}

{% endif %} {% for server, categories in grouped.items() %}
{# Server header with actions #}

{{ server|capitalize }}

{# Two-column layout for pre-invite and post-invite steps #}
{# Left column: Pre-Invite Steps #}

{{ _("Before Invite Acceptance") }}

{{ _("Steps shown to users before they accept the invitation") }}

{% set pre_steps = categories.get('pre_invite', []) %} {# Always render the wizard-steps container, even when empty, so it can be a Sortable.js drop target #}
    {% if pre_steps %} {% for step in pre_steps %}
  1. {{ step.title|render_jinja if step.title else _("Untitled") }}
  2. {% endfor %} {% else %} {# Empty state message displayed inside the sortable container #}
  3. {{ _("No pre-invite steps configured") }}

  4. {% endif %}
{# Right column: Post-Invite Steps #}

{{ _("After Invite Acceptance") }}

{{ _("Steps shown to users after they accept the invitation") }}

{% set post_steps = categories.get('post_invite', []) %} {# Always render the wizard-steps container, even when empty, so it can be a Sortable.js drop target #}
    {% if post_steps %} {% for step in post_steps %}
  1. {{ step.title|render_jinja if step.title else _("Untitled") }}
  2. {% endfor %} {% else %} {# Empty state message displayed inside the sortable container #}
  3. {{ _("No post-invite steps configured") }}

  4. {% endif %}
{% endfor %}