{% extends 'administrative/layout.html.twig' %} {% block title %}Mailing{% endblock %} {% block content %}

Mailing an das Team

Zurück zur Teamübersicht
{{ include('admin/teamer/_mailing_filter_summary.html.twig', { 'filterDto': filterDto }) }}
{{ recipients.eligibleCount }} Empfänger:innen
{% if recipients.hasSkipped %}
{{ include('admin/teamer/_mailing_skipped.html.twig', { 'recipients': recipients }) }}
{% endif %}
{# 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', } }) }}
{{ form_row(form.subject) }} {{ form_row(form.message) }}
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 %}
{{ form_rest(form) }} {{ form_end(form) }} {% endblock %}