{# core/modules/notify/dialogs/channel/modal.html Variablen: channel – bestehender Kanal-Dict (Edit) oder None (Create) channel_id – ID des Kanals (Edit) oder None (Create) title – Dialog-Titel submit_url – POST-Ziel selected_backend – Backend-Key (ntfy, …) #} {% extends "dialog_form.html" %} {% from "partials/components/ui_macros.html" import form_input %} {% set is_edit = channel is not none %} {% set v = channel or {} %} {% set cur_backend = selected_backend or 'ntfy' %} {% block dialog_width %}520{% endblock %} {% block form_id %}ch-modal-form{% endblock %} {% block form_action %}{{ submit_url }}{% endblock %} {% block form_style %}display:flex; flex-direction:column; gap:16px;{% endblock %} {% block form_attrs %}hx-on::before-request="if(!channelModalValidate(this)) event.preventDefault();"{% endblock %} {% block dialog_body %} {%- set _oninput -%} oninput="this.classList.remove('is-invalid'); var _e=document.getElementById(this.id+'-error'); if(_e)_e.style.display='none';" {%- endset -%}