+ {% if form.transportationInbound is defined %}
+ {{ form_row(form.transportationInbound, {
+ 'attr': {
+ 'hx-trigger': htmx_change_trigger,
+ 'hx-post': path(refreshRouteName, refreshRouteParams|default({index: participantIndex})),
+ 'hx-target': '#main-content', 'hx-swap': 'innerHTML'
+ }
+ }) }}
+ {% endif %}
+ {% if form.differentDropOff is defined %}
+
+ {{ form_row(form.differentDropOff, {
+ 'attr': {
+ 'hx-trigger': htmx_change_trigger,
+ 'hx-post': path(refreshRouteName, refreshRouteParams|default({index: participantIndex})),
+ 'hx-target': '#main-content', 'hx-swap': 'innerHTML'
+ }
+ }) }}
+
+ {% endif %}
+ {% if form.dropOff is defined %}
+ {{ form_row(form.dropOff, {
+ 'attr': {
+ 'hx-trigger': htmx_change_trigger,
+ '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 %}
diff --git a/templates/booking/create/step_4.html.twig b/templates/booking/create/step_4.html.twig
index bf64f00..de6b054 100644
--- a/templates/booking/create/step_4.html.twig
+++ b/templates/booking/create/step_4.html.twig
@@ -267,7 +267,7 @@
{% endif %}
{# An-/Abreise Section #}
- {% if participant.transportationOutbound or participant.transportationInbound or participant.pickup or participant.parking or participant.licensePlate %}
+ {% if participant.hasTransportationData() %}
An-/Abreise
@@ -294,7 +294,7 @@
{% endif %}
{% if participant.pickup %}
- | Zu-/Ausstieg: {{ participant.pickup.label }} |
+ Zustieg: {{ participant.pickup.label }} |
{% if participant.pickup.price is not null and participant.pickup.price != 0 %}
{{ participant.pickup.price|format_currency('EUR') }}
@@ -302,6 +302,16 @@
|
{% endif %}
+ {% if participant.dropOff %}
+