Files
myep-team/templates/administrative/system/mailing_template/index.html.twig
T

82 lines
3.1 KiB
Twig

{% extends 'administrative/layout.html.twig' %}
{% block title %}Einstellungen - Mailvorlagen{% endblock %}
{% block content %}
<h1 class="text-2xl font-bold pb-2">
Mailvorlagen
</h1>
<div class="pb-8 text-gray-500">
Vorlagen für Mails an die Teamer:innen von Einsätzen. Die Einsätze wählst du in der
Einsatzübersicht aus.
</div>
<div class="data-table-wrapper">
<div class="data-table-wrapper__inner">
<table class="data-table">
<thead>
<tr>
<th class="w-1/4">
Name
</th>
<th class="w-2/5">
Betreff
</th>
<th>
Anhänge
</th>
<th>
Geändert
</th>
<th></th>
</tr>
</thead>
<tbody>
{% for template in templates %}
<tr>
<td>
<a href="{{ path('app_administrative_system_mailing_template_edit', { 'uuid': template.uuid }) }}">
{{ template.name }}
</a>
</td>
<td>
{{ template.subject }}
</td>
<td>
{{ template.attachments|length }}
</td>
<td class="whitespace-nowrap">
{{ (template.updatedAt ?? template.createdAt)|date('d.m.Y') }}
</td>
<td>
<div class="flex items-center space-x-2 justify-end">
<button type="button"
class="text-red-500"
title="Mailvorlage löschen"
hx-get="{{ path('app_administrative_system_mailing_template_delete', { 'uuid': template.uuid }) }}"
hx-target="body"
hx-swap="beforeend">
{{ icon('delete') }}
</button>
<a href="{{ path('app_administrative_system_mailing_template_edit', { 'uuid': template.uuid }) }}"
title="Mailvorlage bearbeiten">
{{ icon('edit') }}
</a>
</div>
</td>
</tr>
{% else %}
<tr>
<td colspan="5">
Keine Daten...
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<a href="{{ path('app_administrative_system_mailing_template_create') }}" class="btn">
Neu
</a>
{% endblock %}