feat: integrate with htmx
This commit is contained in:
@@ -39,28 +39,24 @@
|
||||
<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 })
|
||||
}) }}>
|
||||
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"
|
||||
{{ 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 })
|
||||
}) }}>
|
||||
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"
|
||||
{{ 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 })
|
||||
}) }}>
|
||||
title="Honorar duplizieren"
|
||||
hx-get="{{ path('app_admin_system_fee_duplicate', { 'id': fee.id }) }}"
|
||||
hx-target="body"
|
||||
hx-swap="beforeend">
|
||||
{{ icon('copy') }}
|
||||
</button>
|
||||
</div>
|
||||
@@ -79,11 +75,10 @@
|
||||
</div>
|
||||
<button type="button"
|
||||
class="btn"
|
||||
{{ stimulus_controller('modal-button', [], [], {'ajax-modal': '#ajax-modal'}) }}
|
||||
{{ stimulus_action('modal-button', 'ajax', null, {
|
||||
'title': 'Honorar hinzufügen',
|
||||
'url': path('app_admin_system_fee_create')
|
||||
}) }}>
|
||||
title="Honorar hinzufügen"
|
||||
hx-get="{{ path('app_admin_system_fee_create') }}"
|
||||
hx-target="body"
|
||||
hx-swap="beforeend">
|
||||
Honorar hinzufügen
|
||||
</button>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user