- {% 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) }}
+