feat: copy the house managers of the selected houses on assignment mailings

This commit is contained in:
fromme committed 2026-11-12 12:45:53 +01:00
1 parent 2c51ddf86f
commit f22d1f1199
17 files changed
+293 -24

No files matched your search

@@ -16,6 +16,12 @@
{{ recipients.eligible|map(recipient => recipient.fullName)|join(', ') }}
</div>
{% endif %}
{% if houseManagers is not empty %}
<div class="pt-2 text-sm">
<span class="font-bold">In Kopie (Hausleitung):</span>
{{ include('administrative/assignment_mailing/_house_managers.html.twig') }}
</div>
{% endif %}
<ul class="flex flex-col space-y-1 py-4">
{% for assignment in mailingDto.assignments %}
@@ -0,0 +1,2 @@
{# A house manager without a name on their account is named by their address. #}
{{ houseManagers|map(houseManager => houseManager.fullName|trim ?: houseManager.email)|join(', ') }}
@@ -21,6 +21,9 @@
<div class="pb-4">
Die Mail geht an <strong>{{ recipients.eligibleCount }}</strong> Teamer:innen auf
{{ mailingDto.assignments|length }} {{ mailingDto.assignments|length == 1 ? 'Einsatz' : 'Einsätzen' }}.
{% if houseManagers is not empty %}
In Kopie geht sie an die Hausleitung: {{ include('administrative/assignment_mailing/_house_managers.html.twig') }}.
{% endif %}
Das lässt sich nicht zurücknehmen.
</div>
<div class="p-4 bg-gray-50 border border-gray-200 rounded-md">