{# the draft is parked on every keystroke so that a trip to the filter and back keeps it,
hx-trigger replaces htmx' default submit trigger, the preview button still posts natively #}
{{ form_start(form, { 'attr': {
'hx-post': path('app_admin_teamer_mailing_draft'),
'hx-trigger': 'input changed delay:500ms',
'hx-swap': 'none',
} }) }}
Platzhalter für Betreff und Nachricht, sie werden beim Senden pro Person ersetzt:
{% for placeholder, label in placeholders %}
{{ placeholder }}{{ label }}
{% endfor %}
{# nobody to write to means there is nothing to confirm, only the preview stays useful #}
{% if recipients.eligibleCount > 0 %}
{% endif %}
{% if hasDraft %}
Entwurf verwerfen
{% endif %}