70 lines
3.6 KiB
Twig
70 lines
3.6 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. Ein hier hinterlegtes Dokument gilt für
|
|
Saisoneinsätze, die ab dann angelegt werden; bestehende Einsätze behalten ihre Datei und
|
|
können es über {{ icon('refresh', 'w-4 h-4 inline-block') }} nachträglich erhalten.
|
|
</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"
|
|
title="auf offene Einsätze übertragen"
|
|
hx-get="{{ path('app_administrative_system_season_task_document_propagate', { 'uuid': row.document.uuid }) }}"
|
|
hx-target="body"
|
|
hx-swap="beforeend">
|
|
{{ icon('refresh') }}
|
|
</button>
|
|
<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 %}
|