fix: keep browser history intact when navigating between cards view and participant form

This commit is contained in:
Björn Fromme
2025-10-31 12:46:37 +01:00
parent cfd346d5df
commit 34a8d42fc3
7 changed files with 136 additions and 70 deletions
+8 -14
View File
@@ -50,23 +50,17 @@
</button>
{% else %}
{% if mode == 'edit' %}
<button type="button"
class="button bg-button bg-button--secondary"
hx-get="{{ path('app_booking_edit_participant', {id: bookingId, index: index}) }}"
hx-target="#main-content"
hx-swap="innerHTML"
{{ qa_attribute('btn-edit-participant', index) }}>
<a href="{{ path('app_booking_edit_participant', {id: bookingId, index: index}) }}"
class="button bg-button bg-button--secondary"
{{ qa_attribute('btn-edit-participant', index) }}>
Bearbeiten
</button>
</a>
{% else %}
<button type="button"
class="button bg-button bg-button--secondary"
hx-get="{{ path('app_booking_create_step_2_participant', {index: index}) }}"
hx-target="#main-content"
hx-swap="innerHTML"
{{ qa_attribute('btn-edit-participant', index) }}>
<a href="{{ path('app_booking_create_step_2_participant', {index: index}) }}"
class="button bg-button bg-button--secondary"
{{ qa_attribute('btn-edit-participant', index) }}>
Bearbeiten
</button>
</a>
{% endif %}
{% endif %}
</div>