84 lines
3.2 KiB
Twig
84 lines
3.2 KiB
Twig
{% extends 'admin/layout.html.twig' %}
|
|
|
|
{% block title %}Einstellungen - Honorare{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1 class="text-2xl font-bold pb-8">
|
|
Honorare
|
|
</h1>
|
|
<div class="data-table-wrapper">
|
|
<div class="data-table-wrapper__inner">
|
|
<table class="data-table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Bezeichnung öffentlich
|
|
</th>
|
|
<th>
|
|
Bezeichnung intern
|
|
</th>
|
|
<th>
|
|
Wert
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for fee in fees %}
|
|
<tr>
|
|
<td>
|
|
{{ fee.name }}
|
|
</td>
|
|
<td>
|
|
{{ fee.nameInternal|default('-') }}
|
|
</td>
|
|
<td>
|
|
{{ fee.value|format_money }}
|
|
</td>
|
|
<td>
|
|
<div class="flex items-center space-x-2 justify-end">
|
|
<button type="button"
|
|
class="text-red-500"
|
|
title="Honorar löschen"
|
|
hx-get="{{ path('app_admin_system_fee_delete', { 'id': fee.id }) }}"
|
|
hx-target="body"
|
|
hx-swap="beforeend">
|
|
{{ icon('delete') }}
|
|
</button>
|
|
<button type="button"
|
|
title="Honorar bearbeiten"
|
|
hx-get="{{ path('app_admin_system_fee_edit', { 'id': fee.id }) }}"
|
|
hx-target="body"
|
|
hx-swap="beforeend">
|
|
{{ icon('edit') }}
|
|
</button>
|
|
<button type="button"
|
|
title="Honorar duplizieren"
|
|
hx-get="{{ path('app_admin_system_fee_duplicate', { 'id': fee.id }) }}"
|
|
hx-target="body"
|
|
hx-swap="beforeend">
|
|
{{ icon('copy') }}
|
|
</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr>
|
|
<td colspan="3">
|
|
Keine Daten...
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<button type="button"
|
|
class="btn"
|
|
title="Honorar hinzufügen"
|
|
hx-get="{{ path('app_admin_system_fee_create') }}"
|
|
hx-target="body"
|
|
hx-swap="beforeend">
|
|
Honorar hinzufügen
|
|
</button>
|
|
{% endblock %} |