Feat: Make fees editable, duplicatable and add internal name

This commit is contained in:
Björn Fromme
2023-10-20 16:35:56 +02:00
parent 992bdcc46c
commit 9e9608e604
9 changed files with 205 additions and 5 deletions
@@ -1,6 +1,7 @@
{{ form_start(form) }}
<div class="flex flex-col space-y-4 pb-8">
{{ form_row(form.name) }}
{{ form_row(form.nameInternal) }}
{{ form_row(form.value) }}
</div>
<button type="submit" class="btn">
+23 -1
View File
@@ -12,7 +12,10 @@
<thead>
<tr>
<th>
Bezeichnung
Bezeichnung öffentlich
</th>
<th>
Bezeichnung intern
</th>
<th>
Wert
@@ -26,6 +29,9 @@
<td>
{{ fee.name }}
</td>
<td>
{{ fee.nameInternal|default('-') }}
</td>
<td>
{{ fee.value|format_money }}
</td>
@@ -41,6 +47,22 @@
}) }}>
{{ icon('delete') }}
</button>
<button type="button"
{{ stimulus_controller('modal-button', [], [], {'ajax-modal': '#ajax-modal'}) }}
{{ stimulus_action('modal-button', 'ajax', null, {
'title': 'Honorar bearbeiten',
'url': path('app_admin_system_fee_edit', { 'id': fee.id })
}) }}>
{{ icon('edit') }}
</button>
<button type="button"
{{ stimulus_controller('modal-button', [], [], {'ajax-modal': '#ajax-modal'}) }}
{{ stimulus_action('modal-button', 'ajax', null, {
'title': 'Honorar duplizieren',
'url': path('app_admin_system_fee_duplicate', { 'id': fee.id })
}) }}>
{{ icon('copy') }}
</button>
</div>
</td>
</tr>