Files
myep-team/templates/admin/system/fee/index.html.twig
T

47 lines
2.1 KiB
Twig

{% extends 'layout.html.twig' %}
{% block title %}Honorare{% endblock %}
{% block content %}
<div class="grid lg:grid-cols-3 gap-y-8 lg:gap-y-0 lg:gap-x-16">
<div class="flex flex-col space-y-2">
<a href="{{ path('app_admin_system_fee_create') }}" class="btn">
Neu
</a>
</div>
<div class="lg:col-span-2">
<h1 class="text-2xl font-bold pb-8">
Honorare
</h1>
<div class="flex flex-col space-y-2">
{% for fee in fees %}
<div class="grid grid-cols-3 items-center py-2 px-4 bg-gray-200 rounded-md">
<div>
{{ fee.name }}
</div>
<div>
{{ fee.value|format_money }}
</div>
<div class="flex items-center space-x-2 justify-end">
<button type="button"
class="text-red-500"
{{ stimulus_controller('modal-button', [], [], {'confirmation-modal': '#confirmation-modal'}) }}
{{ stimulus_action('modal-button', 'confirmation', null, {
'title': 'Bist du sicher?',
'content': 'Möchtest du das Honorar wirklich löschen?',
'target-url': path('app_admin_system_fee_delete', { 'id': fee.id })
}) }}>
{{ icon('delete') }}
</button>
<a href="{{ path('app_admin_system_fee_edit', { 'id': fee.id }) }}">
{{ icon('edit') }}
</a>
</div>
</div>
{% else %}
<div class="text-sm">Keine Daten...</div>
{% endfor %}
</div>
</div>
</div>
{% endblock %}