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

61 lines
2.8 KiB
Twig

{% extends 'administrative/layout.html.twig' %}
{% block title %}Saisonteam-Dokumente{% endblock %}
{% block content %}
<h1 class="text-2xl font-bold pb-2">
Saisonteam-Dokumente
</h1>
<p class="pb-8 text-gray-500">
Auswahl der Standarddokumente für das Saisonteam.
</p>
<div class="data-table-wrapper">
<div class="data-table-wrapper__inner">
<table class="data-table">
<thead>
<tr>
<th>ToDo</th>
<th>Dokument</th>
<th></th>
</tr>
</thead>
<tbody>
{% for row in rows %}
<tr>
<td>{{ row.task.label }}</td>
<td>
{% if row.document is not null %}
<a href="{{ path('app_common_download', { 'uuid': row.document.document.uuid }) }}" class="underline">
{{ row.document.document.displayName ?? row.document.document.originalFilename }}
</a>
{% else %}
<span class="text-gray-500">kein Dokument hinterlegt</span>
{% endif %}
</td>
<td>
<div class="flex items-center space-x-2 justify-end">
{% if row.document is not null %}
<button type="button"
class="text-red-500"
hx-get="{{ path('app_administrative_system_season_task_document_delete', { 'uuid': row.document.uuid }) }}"
hx-target="body"
hx-swap="beforeend">
{{ icon('delete') }}
</button>
{% endif %}
<button type="button"
hx-get="{{ path('app_administrative_system_season_task_document_edit', { 'taskKey': row.task.value }) }}"
hx-target="body"
hx-swap="beforeend">
{{ icon('edit') }}
</button>
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock %}