feat: unify pickup selection

This commit is contained in:
Björn Fromme
2026-03-16 11:59:10 +01:00
parent 0f4b16c194
commit e330626b03
19 changed files with 119 additions and 325 deletions
+34 -47
View File
@@ -103,15 +103,12 @@
{{ form_row(participant.mobile) }}
</div>
{% if participant.address is defined %}
<fieldset class="border border-gray-300 rounded p-4 mb-4">
<legend class="font-semibold px-2">{{ participant.address.vars.label }}</legend>
<div class="grid grid-cols-2 gap-4">
{{ form_row(participant.address.street) }}
{{ form_row(participant.address.postCode) }}
{{ form_row(participant.address.city) }}
{{ form_row(participant.address.country) }}
</div>
</fieldset>
<div class="grid grid-cols-2 gap-4">
{{ form_row(participant.address.street) }}
{{ form_row(participant.address.postCode) }}
{{ form_row(participant.address.city) }}
{{ form_row(participant.address.country) }}
</div>
{% endif %}
{% if participant.bodyDimensions is defined %}
<div class="grid grid-cols-2 gap-4">
@@ -268,34 +265,35 @@
}
}) }}
{% endif %}
{% if participant.pickupOutbound is defined %}
<div class="mt-4">
{{ form_row(participant.pickupOutbound, {
'attr': {
'hx-trigger': 'change',
'hx-post': path('app_booking_create_step_2_refresh'),
'hx-swap': 'none'
}
}) }}
</div>
{% if participant.pickup is defined or participant.parking is defined or participant.licensePlate is defined %}
{% if participant.pickup is defined %}
<div class="mt-4">
{{ form_row(participant.pickup, {
'attr': {
'hx-trigger': 'change',
'hx-post': path('app_booking_create_step_2_refresh'),
'hx-swap': 'none'
}
}) }}
</div>
{% endif %}
{% if participant.parking is defined %}
<div class="mt-4">
{{ form_row(participant.parking, {
'attr': {
'hx-trigger': 'change',
'hx-post': path('app_booking_create_step_2_refresh'),
'hx-swap': 'none'
}
}) }}
</div>
{% endif %}
{% if participant.licensePlate is defined %}
<div class="mt-4">
{{ form_row(participant.licensePlate) }}
</div>
{% endif %}
{% endif %}
{% if participant.parking is defined %}
<div class="mt-4">
{{ form_row(participant.parking, {
'attr': {
'hx-trigger': 'change',
'hx-post': path('app_booking_create_step_2_refresh'),
'hx-swap': 'none'
}
}) }}
</div>
{% endif %}
{% if participant.licensePlate is defined %}
<div class="mt-4">
{{ form_row(participant.licensePlate) }}
</div>
{% endif %}
</div>
<div>
{% if participant.transportationInbound is defined %}
@@ -307,17 +305,6 @@
}
}) }}
{% endif %}
{% if participant.pickupInbound is defined %}
<div class="mt-4">
{{ form_row(participant.pickupInbound, {
'attr': {
'hx-trigger': 'change',
'hx-post': path('app_booking_create_step_2_refresh'),
'hx-swap': 'none'
}
}) }}
</div>
{% endif %}
</div>
</div>
</div>