feat: add mailing templates and mail the confirmed teamers of selected assignments

This commit is contained in:
fromme committed 2026-11-11 14:02:55 +01:00
1 parent 6c89f1b8a9
commit e285646bb2
57 files changed
+3525 -31

No files matched your search

@@ -23,6 +23,19 @@
</button>
<div class="flex items-center space-x-2">
{# The checkboxes in the table name this form, which sits outside the table so
none of the htmx buttons in the rows posts the selection along. #}
<form id="assignment-mailing-select" method="get" action="{{ path('app_administrative_assignment_mailing_compose') }}">
<input type="hidden" name="r" value="{{ return_url() }}">
{# starts a new mailing even with nothing ticked, rather than reopening the last draft #}
<input type="hidden" name="start" value="1">
<button type="submit"
class="btn btn--small btn--secondary"
title="Mail an die bestätigten Teamer:innen der ausgewählten Einsätze">
{{ icon('mail', 'w-4 h-4 shrink-0') }}
<span class="whitespace-nowrap">Mail an Teamer:innen</span>
</button>
</form>
<a href="{{ path('app_administrative_assignment_create', { 'r': return_url() }) }}" class="btn btn--small">
Neu
</a>
@@ -40,6 +53,9 @@
<table class="data-table">
<thead>
<tr>
<th>
<span class="sr-only">Für Mail auswählen</span>
</th>
<th>
{{ knp_pagination_sortable(pagination, 'ID', ['assignment.id']) }}
</th>
@@ -72,6 +88,15 @@
<tbody>
{% for assignment in pagination %}
<tr>
<td>
<input type="checkbox"
name="assignments[]"
value="{{ assignment.uuid }}"
form="assignment-mailing-select"
class="h-4 w-4 rounded-sm text-primary border-gray-300 focus:ring-primary"
title="Für Mail auswählen"
aria-label="Einsatz {{ assignment.id }} für Mail auswählen">
</td>
<td>
{{ assignment.id }}
</td>
@@ -226,7 +251,7 @@
</tr>
{% else %}
<tr>
<td colspan="8">
<td colspan="9">
Keine Daten...
</td>
</tr>