{# ── Segment Rules Section ───────────────────────────────────────────────── Rendered inside modal_segment_detail.html and returned by HTMX add/remove rule endpoints. Expects: segment, key, prefix. ─────────────────────────────────────────────────────────────────────────── #}
Users matching any rule are included in this segment. Rules are evaluated after the explicit included / excluded lists.
{# ── Existing rules ──────────────────────────────────────────────────── #} {% if segment.rules %}{{ rule.description }}
{% endif %} {% for clause in rule.clauses %} {% set is_seg_op = clause.operator.value in ['in_segment', 'not_in_segment'] %}No targeting rules yet.
{% endif %} {# ── Add Rule form ───────────────────────────────────────────────────── #}