feat: add subtypes PAR and LVS as bookable additional services
This commit is contained in:
@@ -194,7 +194,7 @@
|
||||
<h3 class="text-xl font-semibold">
|
||||
Leistungen
|
||||
</h3>
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-x-8 gap-y-4">
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-x-8 gap-y-4" {{ stimulus_controller('checkbox-toggle', { 'visible': participant.rentals|length > 0 }, { 'hidden': 'hidden' }) }}>
|
||||
{% if child.courses is defined %}
|
||||
{{ form_row(child.courses) }}
|
||||
{% endif %}
|
||||
@@ -208,8 +208,16 @@
|
||||
{{ form_row(child.board) }}
|
||||
{% endif %}
|
||||
{% if child.rentals is defined %}
|
||||
{{ form_row(child.rentals) }}
|
||||
<div {{ stimulus_target('checkbox-toggle', 'checkboxGroup') }}>
|
||||
{{ form_row(child.rentals) }}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div {{ stimulus_target('select-toggle--parking', 'container') }}>
|
||||
{{ form_row(child.parking) }}
|
||||
</div>
|
||||
<div {{ stimulus_target('checkbox-toggle', 'container') }}>
|
||||
{{ form_row(child.rentalInsurance) }}
|
||||
</div>
|
||||
</div>
|
||||
{% if not travelData.additionalServicesMutable %}
|
||||
<div class="absolute inset-0 cursor-not-allowed"></div>
|
||||
@@ -220,7 +228,7 @@
|
||||
Hin-/Rückreise
|
||||
</h3>
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-x-8 gap-y-4">
|
||||
<div class="space-y-2" {{ stimulus_controller('select-toggle', { 'show': ['BUS'], 'visible': participant.transportationServiceTo is not null and participant.transportationServiceTo.subType == 'BUS' }, { 'hidden': 'hidden' }) }}>
|
||||
<div class="space-y-2" {{ stimulus_controller('select-toggle', { 'show': ['BUS'], 'visible': participant.transportationServiceTo is not null and participant.transportationServiceTo.subType == 'BUS' }, { 'hidden': 'hidden' }) }} {{ stimulus_controller('select-toggle--parking', { 'show': ['PKW'], 'visible': participant.transportationServiceTo is not null and participant.transportationServiceTo.subType == 'PKW' }, { 'hidden': 'hidden' }) }}>
|
||||
{{ form_row(child.transportationServiceTo) }}
|
||||
{% if child.pickup is defined %}
|
||||
<div {{ stimulus_target('select-toggle', 'container') }}>
|
||||
|
||||
Reference in New Issue
Block a user