feat: loading indicators for regular get requests
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user