feat: new service category 'VEG'

This commit is contained in:
Björn Fromme
2026-03-16 12:02:27 +01:00
parent 75366167e8
commit 95d0ce33d4
11 changed files with 437 additions and 12 deletions
+11 -5
View File
@@ -279,7 +279,6 @@
{# Room assignment - hidden until date of birth is provided, or shown as static text in edit mode #}
{% if form.assignedRoomId is defined or is_static_text('assignedRoomId', bookingDto, participantIndex) %}
<hr>
<div>
{% set assignedRoom = bookingDto.travel.getRoomById(form.vars.data.participant.assignedRoomId) %}
{% set roomLabel = assignedRoom ? assignedRoom.label : 'Kein Zimmer zugewiesen' %}
@@ -298,7 +297,6 @@
{{ form_row(form.remarksRoom) }}
{% endif %}
</div>
<hr>
{% endif %}
{# Service selection #}
@@ -338,6 +336,17 @@
}
}) }}
{# VEG field - only render when defined (hide completely when no VEG services available) #}
{% if form.veg is defined %}
{{ macros.service_field(form, 'veg', 'Verpflegungswunsch', {
'attr': {
'hx-trigger': htmx_change_trigger,
'hx-post': path(refreshRouteName, refreshRouteParams|default({index: participantIndex})),
'hx-target': '#main-content', 'hx-swap': 'innerHTML'
}
}) }}
{% endif %}
{% set htmxAttr = {
'hx-trigger': htmx_change_trigger,
'hx-post': path(refreshRouteName, refreshRouteParams|default({index: participantIndex})),
@@ -524,8 +533,6 @@
{% endif %}
{% endif %}
<hr>
{# Transportation Services Section #}
<h3 class="font-semibold text-lg mb-4">
Anreise
@@ -587,7 +594,6 @@
{# Voucher fields - available for all participants regardless of eligibility #}
{% if form.purchaseVoucherCode is defined or form.promoVoucherCode is defined %}
<hr>
<h3 class="font-semibold text-lg mb-4">
Gutscheine
</h3>