fix: show rental insurance field only when applicable
This commit is contained in:
@@ -210,14 +210,16 @@
|
||||
{% if child.rentals is defined %}
|
||||
<div {{ stimulus_target('checkbox-toggle', 'checkboxGroup') }}>
|
||||
{{ form_row(child.rentals) }}
|
||||
{% if child.rentalInsurance is defined %}
|
||||
<div class="mt-2" {{ stimulus_target('checkbox-toggle', 'container') }}>
|
||||
{{ form_row(child.rentalInsurance) }}
|
||||
</div>
|
||||
{% endif %}
|
||||
</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>
|
||||
|
||||
Reference in New Issue
Block a user