Feat: Make fees editable, duplicatable and add internal name
This commit is contained in:
+1
@@ -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">
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user