71 lines
2.7 KiB
Twig
71 lines
2.7 KiB
Twig
{% extends 'admin/layout.html.twig' %}
|
|
|
|
{% block title %}Einstellungen - Fortbildungen{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1 class="text-2xl font-bold pb-8">
|
|
Fortbildungen
|
|
</h1>
|
|
<div class="data-table-wrapper">
|
|
<div class="data-table-wrapper__inner">
|
|
<table class="data-table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Bezeichnung
|
|
</th>
|
|
<th>
|
|
Teilnahmen
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for training in trainings %}
|
|
<tr>
|
|
<td>
|
|
{{ training.name }}
|
|
</td>
|
|
<td>
|
|
{{ training.trainingAttendances|length|default('-') }}
|
|
</td>
|
|
<td>
|
|
<div class="flex items-center space-x-2 justify-end">
|
|
<button type="button"
|
|
class="text-red-500"
|
|
title="Fortbildung löschen"
|
|
hx-get="{{ path('app_admin_system_training_delete', { 'id': training.id }) }}"
|
|
hx-target="body"
|
|
hx-swap="beforeend">
|
|
{{ icon('delete') }}
|
|
</button>
|
|
<button type="button"
|
|
title="Fortbildung bearbeiten"
|
|
hx-get="{{ path('app_admin_system_training_edit', { 'id': training.id }) }}"
|
|
hx-target="body"
|
|
hx-swap="beforeend">
|
|
{{ icon('edit') }}
|
|
</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr>
|
|
<td colspan="3">
|
|
Keine Daten...
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<button type="button"
|
|
class="btn"
|
|
title="Fortbildung hinzufügen"
|
|
hx-get="{{ path('app_admin_system_training_create') }}"
|
|
hx-target="body"
|
|
hx-swap="beforeend">
|
|
Fortbildung hinzufügen
|
|
</button>
|
|
{% endblock %} |