wip: insurance booking

This commit is contained in:
Björn Fromme
2026-03-16 11:59:10 +01:00
parent 29bdf794f3
commit e6eebc00a3
4 changed files with 76 additions and 40 deletions
+33 -14
View File
@@ -95,7 +95,9 @@
}
}) }}
{% else %}
<div></div>{# Empty div to maintain grid layout when not available #}
<div>
Skipass nicht wählbar
</div>
{% endif %}
{% if participant.courses is defined %}
{{ form_row(participant.courses, {
@@ -106,7 +108,9 @@
}
}) }}
{% else %}
<div></div>{# Empty div to maintain grid layout when not available #}
<div>
Kurse nicht wählbar
</div>
{% endif %}
{% if participant.additionalServices is defined %}
{{ form_row(participant.additionalServices, {
@@ -117,7 +121,9 @@
}
}) }}
{% else %}
<div></div>{# Empty div to maintain grid layout when not available #}
<div>
Zusatzleistungen nicht wählbar
</div>
{% endif %}
{% if participant.rentals is defined %}
{{ form_row(participant.rentals, {
@@ -128,18 +134,27 @@
}
}) }}
{% else %}
<div></div>{# Empty div to maintain grid layout when not available #}
<div>
Leihmaterial nicht wählbar
</div>
{% endif %}
{% if participant.rentalInsurance is defined %}
{{ form_row(participant.rentalInsurance, {
'attr': {
'hx-trigger': 'change',
'hx-post': path('app_booking_create_step_2_refresh'),
'hx-swap': 'none'
}
}) }}
<fieldset>
<legend class="font-semibold mb-1">
Leihmaterial-Versicherung
</legend>
{{ form_row(participant.rentalInsurance, {
'attr': {
'hx-trigger': 'change',
'hx-post': path('app_booking_create_step_2_refresh'),
'hx-swap': 'none'
}
}) }}
</fieldset>
{% else %}
<div></div>{# Empty div to maintain grid layout when not available #}
<div>
Leihmat.-Versicherung nicht wählbar
</div>
{% endif %}
{% if participant.board is defined %}
{{ form_row(participant.board, {
@@ -150,7 +165,9 @@
}
}) }}
{% else %}
<div></div>{# Empty div to maintain grid layout when not available #}
<div>
Verpflegung nicht wählbar
</div>
{% endif %}
{% if participant.insurance is defined %}
{{ form_row(participant.insurance, {
@@ -161,7 +178,9 @@
}
}) }}
{% else %}
<div></div>{# Empty div to maintain grid layout when not available #}
<div>
Versicherung nicht wählbar
</div>
{% endif %}
</div>