{# 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 %}
{{ assignment.destination.dateFrom|date('d.m.Y') }} - {{ assignment.destination.dateTo|date('d.m.Y') }}
{{ assignment.destination.hotel }}, {{ assignment.jobProfile.name }}
{# who is confirmed here, so a teamer on two of the assignments - counted once
above - is plain to see. Never empty: assignments nobody is confirmed on are
left out of the mailing, see AssignmentRepository::findForMailing(). #}
{# 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) }}