feat: selectable drop-offs for inbound bus travel
This commit is contained in:
@@ -607,15 +607,6 @@
|
||||
{{ form_help(form.transportationOutbound) }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% 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.pickup is defined %}
|
||||
{{ form_row(form.pickup, {
|
||||
'attr': {
|
||||
@@ -625,6 +616,39 @@
|
||||
}
|
||||
}) }}
|
||||
{% endif %}
|
||||
|
||||
<div>
|
||||
{% 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 %}
|
||||
<div class="mb-4">
|
||||
{{ 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'
|
||||
}
|
||||
}) }}
|
||||
</div>
|
||||
{% 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 %}
|
||||
</div>
|
||||
|
||||
{% if form.licensePlate is defined %}
|
||||
{{ form_row(form.licensePlate) }}
|
||||
{% endif %}
|
||||
|
||||
@@ -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() %}
|
||||
<div class="px-2 py-1 text-primary-dark/70 text-sm uppercase font-semibold">
|
||||
An-/Abreise
|
||||
</div>
|
||||
@@ -294,7 +294,7 @@
|
||||
{% endif %}
|
||||
{% if participant.pickup %}
|
||||
<tr>
|
||||
<td class="px-2 pb-2 align-top">Zu-/Ausstieg: {{ participant.pickup.label }}</td>
|
||||
<td class="px-2 pb-2 align-top">Zustieg: {{ participant.pickup.label }}</td>
|
||||
<td class="px-2 pb-2 align-top w-24 text-right whitespace-nowrap">
|
||||
{% if participant.pickup.price is not null and participant.pickup.price != 0 %}
|
||||
{{ participant.pickup.price|format_currency('EUR') }}
|
||||
@@ -302,6 +302,16 @@
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if participant.dropOff %}
|
||||
<tr>
|
||||
<td class="px-2 pb-2 align-top">Ausstieg: {{ participant.dropOff.label }}</td>
|
||||
<td class="px-2 pb-2 align-top w-24 text-right whitespace-nowrap">
|
||||
{% if participant.dropOff.price is not null and participant.dropOff.price != 0 %}
|
||||
{{ participant.dropOff.price|format_currency('EUR') }}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if participant.parking %}
|
||||
<tr>
|
||||
<td class="px-2 pb-2 align-top">Parkplatz</td>
|
||||
|
||||
Reference in New Issue
Block a user