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

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

{% endif %} {% for b in bundles %} {% set real_steps = b.steps | selectattr('step') | list %} {% set pre_steps = real_steps | selectattr('step.category', 'equalto', 'pre_invite') | list %} {% set post_steps = real_steps | selectattr('step.category', 'equalto', 'post_invite') | list %} {% set other_steps = real_steps | rejectattr('step.category', 'equalto', 'pre_invite') | rejectattr('step.category', 'equalto', 'post_invite') | list %} {% set orphaned_steps = b.steps | rejectattr('step') | list %}

{{ b.name }}

{% if b.description %}

{{ b.description }}

{% endif %}

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

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

    {% if pre_steps %} {% for bs in pre_steps %} {% set phase_value = bs.step.category %}
  1. {{ bs.step.title or _("Untitled") }}
  2. {% endfor %} {% else %}
  3. {{ _("No pre-invite steps configured") }}

  4. {% endif %}

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

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

    {% if post_steps %} {% for bs in post_steps %} {% set phase_value = bs.step.category %}
  1. {{ bs.step.title or _("Untitled") }}
  2. {% endfor %} {% else %}
  3. {{ _("No post-invite steps configured") }}

  4. {% endif %}
{% if other_steps %}

{{ _("Additional Categories") }}

{{ _("Steps that use custom categories keep their order here.") }}

    {% for bs in other_steps %} {% set phase_value = bs.step.category %}
  1. {{ bs.step.title or _("Untitled") }}
  2. {% endfor %}
{% endif %}
{% if orphaned_steps %}

{{ _("Orphaned Steps") }}

{{ _("These entries no longer have an associated step. Remove them to keep the bundle tidy.") }}

    {% for bs in orphaned_steps %}
  1. {{ _("Step deleted (orphaned)") }}
  2. {% endfor %}
{% endif %}
{% endfor %}