{% extends 'administrative/layout.html.twig' %} {% block title %}Mail an Teamer:innen{% endblock %} {% block content %}

Mail an die Teamer:innen von Einsätzen

Zurück zur Einsatzübersicht
{{ include('administrative/assignment_mailing/_assignments.html.twig') }} {# Outside the mailing form, so picking a template is not also parked as a draft by the form's input trigger - the template route parks it itself. #}
Betreff und Nachricht der Vorlage ersetzen, was oben steht. Änderungen hier gelten nur für diese Mail, die Vorlage bleibt, wie sie ist. Vorlagen verwalten
{# The draft trigger works as in the teamer mailing, see the comment there. #} {% set guardAttr = stimulus_controller('form-upload-guard')|stimulus_action('form-upload-guard', 'guard', 'submit') %} {{ form_start(form, { 'attr': { 'id': 'mailing-form', 'hx-post': path('app_administrative_assignment_mailing_draft'), 'hx-trigger': 'input delay:500ms', 'hx-target': '#mailing-preview', 'hx-swap': 'innerHTML', 'hx-indicator': '#mailing-preview-indicator', }|merge(guardAttr.toArray()) }) }} {{ include('administrative/assignment_mailing/_fields.html.twig') }}
{{ include('_partials/_mailing_placeholders.html.twig', { 'placeholders': placeholders }) }} {{ include('_partials/_markdown_hint.html.twig') }}
Anhänge
Nur PDF, bis 5 MB je Datei und {{ maxAttachmentBytes|file_size(0) }} zusammen.
{{ include('administrative/assignment_mailing/_attachments.html.twig') }} {{ include('_partials/_pending_uploads.html.twig', { 'uploads': pending }) }} {% include '_partials/_upload_collection_form.html.twig' with { 'endpoint_upload': path('_uploader_upload_mailing_attachment'), 'max_filesize': 5, 'accepted_files': 'application/pdf', } %}
{% if hasDraft %} Entwurf verwerfen {% endif %}
{{ form_rest(form) }} {{ form_end(form) }}
Vorschau
{{ include('admin/teamer/_mailing_preview.html.twig', preview) }}
{{ include('_partials/_spinner.html.twig', { 'class': 'w-8 h-8' }) }}
{% endblock %}