feat: split summary DTOs into typed sub-objects

This commit is contained in:
Björn Fromme
2026-04-12 11:23:19 +02:00
parent 69705052b3
commit aa997826f8
18 changed files with 224 additions and 113 deletions
+4 -4
View File
@@ -65,19 +65,19 @@
{% block room_selection_form %}
<div id="room-selection-form"{% if htmx_oob_swap is defined and htmx_oob_swap %} hx-swap-oob="true"{% endif %}>
{{ form_errors(form) }}
{% if bookingCreateContext.groupedRooms.by_room is not empty %}
{% if bookingCreateContext.groupedRooms.byRoom is not empty %}
<h3>
Zimmer
</h3>
{% for roomId, room in bookingCreateContext.groupedRooms.by_room %}
{% for roomId, room in bookingCreateContext.groupedRooms.byRoom %}
{{ _self.stepFormField(form.roomSelections[roomId]) }}
{% endfor %}
{% endif %}
{% if bookingCreateContext.groupedRooms.by_pax is not empty %}
{% if bookingCreateContext.groupedRooms.byPax is not empty %}
<h3>
Betten
</h3>
{% for roomId, room in bookingCreateContext.groupedRooms.by_pax %}
{% for roomId, room in bookingCreateContext.groupedRooms.byPax %}
{{ _self.stepFormField(form.roomSelections[roomId]) }}
{% endfor %}
{% endif %}