feat: render room assignment as radio buttons
This commit is contained in:
@@ -232,13 +232,13 @@
|
||||
|
||||
{# 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) %}
|
||||
{% set assignedRoom = bookingDto.travel.getRoomById(form.vars.data.participant.assignedRoomId) %}
|
||||
{% set roomLabel = assignedRoom ? assignedRoom.label : 'Kein Zimmer zugewiesen' %}
|
||||
<hr>
|
||||
<h3 class="font-semibold text-lg mb-4">
|
||||
Unterkunft
|
||||
</h3>
|
||||
<div class="grid lg:grid-cols-2 lg:gap-x-8">
|
||||
<div>
|
||||
{% set assignedRoom = bookingDto.travel.getRoomById(form.vars.data.participant.assignedRoomId) %}
|
||||
{% set roomLabel = assignedRoom ? assignedRoom.label : 'Kein Zimmer zugewiesen' %}
|
||||
<h3 class="font-semibold text-lg mb-4">
|
||||
Unterkunft
|
||||
</h3>
|
||||
{{ macros.field_or_static(form, 'assignedRoomId', 'Zimmer', roomLabel, bookingDto, participantIndex, {
|
||||
'attr': {
|
||||
'hx-trigger': 'change',
|
||||
|
||||
Reference in New Issue
Block a user