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

This commit is contained in:
Björn Fromme
2026-03-16 11:59:11 +01:00
parent bb20176c76
commit f3ea6734a1
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>