{# Backend-Auswahl – erster Schritt beim Anlegen eines Benachrichtigungskanals. Variablen: builtin_backends – Liste von (key, label, description) der eingebauten Backends custom_backends – Liste zusätzlich registrierter Backend-Keys #} {% from "partials/components/ui_macros.html" import modal_title %} {% set total_backends = builtin_backends|length + custom_backends|length %}
{{ modal_title(title="Neuer Kanal", icon="bell") }}

Wähle den Kanal-Typ

{# ── 2-Spalten-Auswahl für genau 2 Builtin-Backends ──────────────── #} {% if total_backends == 2 and custom_backends|length == 0 %}
{% for bk_key, bk_label, bk_desc in builtin_backends %} {% endfor %}
{# ── Listen-Layout mit "oder"-Trenner für mehr als 2 Optionen ────── #} {% else %}
{% for bk_key, bk_label, bk_desc in builtin_backends %} {% if not loop.first %}
oder
{% endif %} {% endfor %} {% for bk_key in custom_backends %}
oder
{% endfor %}
{% endif %}