feat: integrate with htmx
This commit is contained in:
@@ -34,12 +34,9 @@
|
||||
{% if is_granted('DELETE', feedbackSet) %}
|
||||
<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 Jobprofil wirklich löschen?',
|
||||
'target-url': path('app_admin_system_feedback_set_delete', { 'id': feedbackSet.id })
|
||||
}) }}>
|
||||
hx-get="{{ path('app_admin_system_feedback_set_delete', { 'id': feedbackSet.id }) }}"
|
||||
hx-target="body"
|
||||
hx-swap="beforeend">
|
||||
{{ icon('delete') }}
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user