feat: list the other recipients and reply to the sender in assignment mailings
This commit is contained in:
1 parent
e0496dc61f
commit
f45ac6ac0b
15 files changed
+311
-19
No files matched your search
@@ -5,6 +5,7 @@
|
||||
makes |raw safe here - see the contract on that class. #}
|
||||
<div class="mail-body border border-gray-200 rounded-md p-4">
|
||||
{{ bodyHtml | raw }}
|
||||
{{ include('email/_colleagues.html.twig', {colleagues: colleagues | default([])}) }}
|
||||
<p>
|
||||
<span class="btn inline-block">Zum Portal</span>
|
||||
</p>
|
||||
@@ -12,4 +13,8 @@
|
||||
<div class="pt-4 text-sm text-gray-500">
|
||||
Platzhalter sind mit deinem eigenen Namen gefüllt, beim Versand steht dort der Name der
|
||||
jeweiligen Person. Logo und Fußzeile der E-Mail sind hier nicht abgebildet.
|
||||
{% if colleagues | default([]) is not empty %}
|
||||
Die Liste der Kolleg:innen zeigt hier alle Empfänger:innen, in jeder E-Mail fehlt darin
|
||||
die Person selbst.
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -0,0 +1,5 @@
|
||||
{{ include('administrative/assignment_mailing/_assignments.html.twig') }}
|
||||
{# the colleagues in the preview are the recipients, which the list just changed #}
|
||||
<div id="mailing-preview" hx-swap-oob="true">
|
||||
{{ include('admin/teamer/_mailing_preview.html.twig', preview) }}
|
||||
</div>
|
||||
@@ -0,0 +1,10 @@
|
||||
{# The other recipients of an assignment mailing, see TeamerMailingService::sendMailing().
|
||||
Plain values, auto-escaped - never pass them through |raw. #}
|
||||
{% if colleagues is not empty %}
|
||||
<h3>Deine Kolleg:innen sind:</h3>
|
||||
<ul>
|
||||
{% for colleague in colleagues %}
|
||||
<li>{{ colleague.fullName }} (<a href="mailto:{{ colleague.email }}">{{ colleague.email }}</a>)</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
@@ -5,4 +5,6 @@
|
||||
Do not pass anything into this template that did not come out of that renderer. #}
|
||||
{% block body %}
|
||||
{{ bodyHtml | raw }}
|
||||
|
||||
{{ include('email/_colleagues.html.twig', {colleagues: colleagues | default([])}) }}
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user