60 lines
2.2 KiB
Twig
60 lines
2.2 KiB
Twig
{% extends 'layout.html.twig' %}
|
|
|
|
{% block content %}
|
|
{% include '_partials/_flashes.html.twig' %}
|
|
<h1>Neue Buchung</h1>
|
|
<div class="grid grid-cols-3 gap-8">
|
|
<div class="col-span-2">
|
|
<h2 class="pb-4">
|
|
Unterkunft
|
|
</h2>
|
|
{{ form_start(form) }}
|
|
{{ form_errors(form) }}
|
|
{% if groupedRooms.by_room is not empty %}
|
|
<h3>
|
|
Zimmer
|
|
</h3>
|
|
{% for roomId, room in groupedRooms.by_room %}
|
|
{{ form_row(form.roomSelections[roomId], {
|
|
'attr': {
|
|
'hx-post': path('app_booking_create_step_1_room_summary'),
|
|
'hx-target': '#booking-summary',
|
|
'hx-swap': 'innerHTML',
|
|
'hx-trigger': 'change'
|
|
}
|
|
}) }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% if groupedRooms.by_pax is not empty %}
|
|
<h3>
|
|
Betten
|
|
</h3>
|
|
{% for roomId, room in groupedRooms.by_pax %}
|
|
{{ form_row(form.roomSelections[roomId], {
|
|
'attr': {
|
|
'hx-post': path('app_booking_create_step_1_room_summary'),
|
|
'hx-target': '#booking-summary',
|
|
'hx-swap': 'innerHTML',
|
|
'hx-trigger': 'change'
|
|
}
|
|
}) }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
<div class="flex justify-end pt-4">
|
|
<button type="submit" class="button bg-button bg-button--secondary">Weiter</button>
|
|
</div>
|
|
{{ form_rest(form) }}
|
|
{{ form_end(form) }}
|
|
</div>
|
|
<div id="booking-summary">
|
|
{% include 'booking/_summary.html.twig' with {
|
|
'bookingCreateDto': bookingCreateDto,
|
|
'participantCount': participantCount,
|
|
'pricingData': pricingData,
|
|
'groupedSelectedRooms': groupedSelectedRooms,
|
|
'assignmentCounts': []
|
|
} %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|