feat: loading indicators for regular get requests

This commit is contained in:
Björn Fromme
2025-11-13 11:34:45 +01:00
parent bcded403be
commit d5c572c25b
2 changed files with 4 additions and 0 deletions
@@ -52,12 +52,14 @@
{% if mode == 'edit' %} {% if mode == 'edit' %}
<a href="{{ path('app_booking_edit_participant', {id: bookingId, index: index}) }}" <a href="{{ path('app_booking_edit_participant', {id: bookingId, index: index}) }}"
class="button bg-button bg-button--secondary" class="button bg-button bg-button--secondary"
data-action="click->loading#show"
{{ qa_attribute('btn-edit-participant', index) }}> {{ qa_attribute('btn-edit-participant', index) }}>
Bearbeiten Bearbeiten
</a> </a>
{% else %} {% else %}
<a href="{{ path('app_booking_create_step_2_participant', {index: index}) }}" <a href="{{ path('app_booking_create_step_2_participant', {index: index}) }}"
class="button bg-button bg-button--secondary" class="button bg-button bg-button--secondary"
data-action="click->loading#show"
{{ qa_attribute('btn-edit-participant', index) }}> {{ qa_attribute('btn-edit-participant', index) }}>
Bearbeiten Bearbeiten
</a> </a>
@@ -362,12 +362,14 @@
{% if cancelRouteName is defined %} {% if cancelRouteName is defined %}
<a href="{{ path(cancelRouteName, cancelRouteParams|default({})) }}" <a href="{{ path(cancelRouteName, cancelRouteParams|default({})) }}"
class="button bg-button bg-button--secondary" class="button bg-button bg-button--secondary"
data-action="click->loading#show"
{{ qa_attribute('btn-cancel') }}> {{ qa_attribute('btn-cancel') }}>
Abbrechen Abbrechen
</a> </a>
{% else %} {% else %}
<a href="{{ path('app_booking_create_step_2') }}" <a href="{{ path('app_booking_create_step_2') }}"
class="button bg-button bg-button--secondary" class="button bg-button bg-button--secondary"
data-action="click->loading#show"
{{ qa_attribute('btn-cancel') }}> {{ qa_attribute('btn-cancel') }}>
Abbrechen Abbrechen
</a> </a>