diff --git a/templates/booking/_participant_form.html.twig b/templates/booking/_participant_form.html.twig index feaa7d8..325d933 100644 --- a/templates/booking/_participant_form.html.twig +++ b/templates/booking/_participant_form.html.twig @@ -243,57 +243,51 @@

Anreise

-
- {% if form.transportationOutbound is defined %} - {{ form_row(form.transportationOutbound, { + {% if form.transportationOutbound is defined %} + {{ form_row(form.transportationOutbound, { + 'attr': { + 'hx-trigger': 'change', + 'hx-post': path(refreshRouteName, refreshRouteParams|default({index: participantIndex})), + 'hx-target': '#main-content', 'hx-swap': 'innerHTML' + } + }) }} + {% endif %} + {% if form.transportationInbound is defined %} + {{ form_row(form.transportationInbound, { + 'attr': { + 'hx-trigger': 'change', + 'hx-post': path(refreshRouteName, refreshRouteParams|default({index: participantIndex})), + 'hx-target': '#main-content', 'hx-swap': 'innerHTML' + } + }) }} + {% endif %} + {% if form.pickup is defined %} +
+ {{ form_row(form.pickup, { 'attr': { 'hx-trigger': 'change', 'hx-post': path(refreshRouteName, refreshRouteParams|default({index: participantIndex})), 'hx-target': '#main-content', 'hx-swap': 'innerHTML' } }) }} - {% endif %} - {% if form.pickup is defined or form.parking is defined or form.licensePlate is defined %} - {% if form.pickup is defined %} -
- {{ form_row(form.pickup, { - 'attr': { - 'hx-trigger': 'change', - 'hx-post': path(refreshRouteName, refreshRouteParams|default({index: participantIndex})), - 'hx-target': '#main-content', 'hx-swap': 'innerHTML' - } - }) }} -
- {% endif %} - {% if form.parking is defined %} -
- {{ form_row(form.parking, { - 'attr': { - 'hx-trigger': 'change', - 'hx-post': path(refreshRouteName, refreshRouteParams|default({index: participantIndex})), - 'hx-target': '#main-content', 'hx-swap': 'innerHTML' - } - }) }} -
- {% endif %} - {% if form.licensePlate is defined %} -
- {{ form_row(form.licensePlate) }} -
- {% endif %} - {% endif %} -
-
- {% if form.transportationInbound is defined %} - {{ form_row(form.transportationInbound, { +
+ {% endif %} + {% if form.parking is defined %} +
+ {{ form_row(form.parking, { 'attr': { 'hx-trigger': 'change', 'hx-post': path(refreshRouteName, refreshRouteParams|default({index: participantIndex})), 'hx-target': '#main-content', 'hx-swap': 'innerHTML' } }) }} - {% endif %} -
+
+ {% endif %} + {% if form.licensePlate is defined %} +
+ {{ form_row(form.licensePlate) }} +
+ {% endif %}
{% endif %}