{% extends 'pipeline/base.html' %} {% load i18n %} {% block page_title %}{{ page_title }}{% endblock %} {% block pipeline_content %}

{{ page_title }}

{% if flow %} {% trans "Preview" %} {% endif %}
{% if messages %} {% for message in messages %} {% endfor %} {% endif %}
{# ── Flow Form ─────────────────────────────────────────────────── #}
{% trans "Flow Settings" %}
{% csrf_token %}
{{ form.name }} {% if form.name.errors %}
{{ form.name.errors }}
{% endif %}
{{ form.slug }}
{{ form.slug.help_text }}
{% if form.slug.errors %}
{{ form.slug.errors }}
{% endif %}
{{ form.flow_type }}
{{ form.status }}
{{ form.description }}
{{ form.body_complete }}
{{ form.body_complete.help_text }}
{{ form.auto_assign }}
{{ form.auto_assign.help_text }}
{# ── Audience ─────────────────────────────────────────────── #}
{% trans "Audience & Visibility" %}

{% trans "This flow is shown to users matching at least one of the criteria below. A flow with no audience configured is not visible to anyone." %}

{% trans "Hold Ctrl (or ⌘ on Mac) to select multiple items. Click a selected item to deselect it." %}

{% if form.states.field.queryset.exists %}
{{ form.states }}
{% endif %} {% if form.groups.field.queryset.exists %}
{{ form.groups }}
{% endif %} {% if form.corporations.field.queryset.exists %}
{{ form.corporations }}
{% endif %} {% if form.alliances.field.queryset.exists %}
{{ form.alliances }}
{% endif %} {% if form.factions.field.queryset.exists %}
{{ form.factions }}
{% endif %} {% if form.characters.field.queryset.exists %}
{{ form.characters }}
{% endif %}
{# ── Steps Panel ────────────────────────────────────────────────── #} {% if flow %}
{% trans "Steps" %} {% trans "Add Step" %}
{% if steps %}
    {% for step in steps %}
  • {% if not forloop.first %}
    {% csrf_token %}
    {% else %} {% endif %} {% if not forloop.last %}
    {% csrf_token %}
    {% else %} {% endif %}
    {{ step.order }}
    {{ step.name }}
    {{ step.get_step_type_display }} {% if step.optional %} · {% trans "optional" %}{% endif %}
  • {% endfor %}
{% else %}

{% trans "No steps yet." %}

{% trans "Add First Step" %}
{% endif %}
{% endif %}
{% block extra_javascript %} {% endblock %} {% endblock %}