{# Swapped as a whole whenever an assignment is added or removed, so the recipient count is always the one for the list shown with it. #}
{{ recipients.eligibleCount }} Empfänger:innen
Teamer:innen mit bestätigter Einteilung, auch auf mehreren Einsätzen nur eine Mail. Einsätze ohne bestätigte Teamer:innen werden weggelassen. {% if recipients.hasSkipped %} {{ include('admin/teamer/_mailing_skipped.html.twig', { 'recipients': recipients }) }} {% endif %}
{% if recipients.eligibleCount > 0 %}
{{ recipients.eligible|map(recipient => recipient.fullName)|join(', ') }}
{% endif %} {% if houseManagers is not empty %}
In Kopie (Hausleitung): {{ include('administrative/assignment_mailing/_house_managers.html.twig') }}
{% endif %} {# Its own form, outside the mailing form: forms cannot nest, and typing here must not park the search as a draft. The autocomplete dispatches a "select" event of its own; the [detail] filter keeps out the native one a text selection in the input fires. #} {{ form_start(addForm, { 'action': path('app_administrative_assignment_mailing_add') }) }} {{ form_row(addForm.assignment, { 'attr': { 'hx-post': path('app_administrative_assignment_mailing_add'), 'hx-trigger': 'select[detail]', 'hx-target': '#mailing-assignments', 'hx-swap': 'outerHTML', } }) }} {{ form_rest(addForm) }} {{ form_end(addForm) }}