{# ── Header ──────────────────────────────────────────────────────── #}

Edit Segment

{{ segment.key }}
{# ── Form ────────────────────────────────────────────────────────── #}
{# Key + Name (readonly, compact) #}
{{ segment.key }}
{{ segment.name }}
{# Included #}
{% set inc_count = segment.included | length %} {% if inc_count > 0 %} {{ inc_count }} user{{ 's' if inc_count != 1 else '' }} {% endif %}

One context key per line. Users in this list are always included.

{# Excluded #}
{% set exc_count = segment.excluded | length %} {% if exc_count > 0 %} {{ exc_count }} user{{ 's' if exc_count != 1 else '' }} {% endif %}

One context key per line. Users in this list are always excluded.

{# Rules section — managed independently via HTMX #}
{% include "partials/segment_rules_section.html" with context %}