147 lines
6.9 KiB
Twig
147 lines
6.9 KiB
Twig
{% extends 'layout_booking.html.twig' %}
|
|
|
|
{% block title %}Buchung bestätigen{% endblock %}
|
|
|
|
{% block background %}bg-outer bg-outer--summer{% endblock %}
|
|
|
|
{% block content %}
|
|
{# Pagination - mobile only (above summary) #}
|
|
<div class="lg:hidden">
|
|
{% include 'groups/booking/_pagination.html.twig' with { 'current_step': 4 } %}
|
|
</div>
|
|
|
|
<div class="flex-1 flex flex-col lg:grid lg:grid-cols-5 min-h-0 relative">
|
|
|
|
{# Static sidebar recap #}
|
|
<div class="order-1 lg:order-2 lg:flex-1 lg:min-h-0 lg:col-span-2"
|
|
{{ stimulus_controller('toggle', { 'open': false }, { 'closed': 'hidden', 'open': 'absolute inset-0 z-20', 'iconOpen': 'rotate-180' }) }}>
|
|
{% include 'groups/booking/_summary.html.twig' with { 'dto': dto, 'ctx': ctx } %}
|
|
</div>
|
|
|
|
{# Confirmation recap #}
|
|
<div class="flex-1 order-2 lg:order-1 lg:col-span-3 bg-white flex flex-col min-h-0">
|
|
{% include '_partials/_flashes.html.twig' %}
|
|
|
|
{# Pagination - desktop only (fixed above scrollable content) #}
|
|
<div class="hidden lg:block shrink-0">
|
|
{% include 'groups/booking/_pagination.html.twig' with { 'current_step': 4 } %}
|
|
</div>
|
|
|
|
<div class="flex-1 overflow-y-auto scroll-stable px-4 lg:px-8 py-8">
|
|
<h2 class="pb-4">
|
|
Bitte bestätige deine Angaben
|
|
</h2>
|
|
|
|
{% if dto.isInquiry %}
|
|
{% include '_partials/_alert.html.twig' with {
|
|
level: 'warning',
|
|
title: 'Diese Buchung wird als unverbindliche Anfrage behandelt',
|
|
messages: dto.inquiryReasons
|
|
} %}
|
|
{% endif %}
|
|
|
|
{% set selectedBoardService = null %}
|
|
{% for service in ctx.boardServices %}
|
|
{% if service.id == dto.selectedBoardServiceId %}
|
|
{% set selectedBoardService = service %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
{% set selectedAdditionalServices = ctx.additionalServices|filter(service => service.id in dto.selectedAdditionalServiceIds) %}
|
|
|
|
<div class="border border-primary-bg mb-4">
|
|
<div class="p-2 bg-primary-bg uppercase font-semibold">Ausgewählte Leistungen</div>
|
|
<div class="p-2 text-sm">
|
|
<div class="mb-2">
|
|
<span class="text-gray-600 font-semibold">Verpflegung:</span>
|
|
{% if selectedBoardService %}
|
|
{{ selectedBoardService.label }}
|
|
{% if selectedBoardService.price > 0 %}
|
|
— {{ (selectedBoardService.price / 100)|format_currency(ctx.accommodation.currency) }} pro Person und Nacht
|
|
{% endif %}
|
|
{% if selectedBoardService.description %}
|
|
<div class="text-xs text-gray-500">{{ selectedBoardService.description|nl2br }}</div>
|
|
{% endif %}
|
|
{% else %}
|
|
Selbstversorgung
|
|
{% endif %}
|
|
</div>
|
|
|
|
{% if selectedAdditionalServices is not empty %}
|
|
<div>
|
|
<span class="text-gray-600 font-semibold">Zusatzleistungen:</span>
|
|
<ul class="list-disc list-inside">
|
|
{% for service in selectedAdditionalServices %}
|
|
<li>
|
|
{{ service.label }}
|
|
— {{ (service.price / 100)|format_currency(ctx.accommodation.currency) }} {{ service.type.label|trans }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="border border-primary-bg mb-4">
|
|
<div class="p-2 bg-primary-bg uppercase font-semibold">Persönliche Daten</div>
|
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-x-4 gap-y-2 p-2 text-sm">
|
|
<div>
|
|
<span class="text-gray-600 font-semibold">Gruppenname:</span>
|
|
{{ dto.groupName }}
|
|
</div>
|
|
<div>
|
|
<span class="text-gray-600 font-semibold">Name:</span>
|
|
{{ dto.salutation }} {{ dto.firstName }} {{ dto.lastName }}
|
|
</div>
|
|
<div>
|
|
<span class="text-gray-600 font-semibold">E-Mail:</span>
|
|
{{ dto.email }}
|
|
</div>
|
|
<div>
|
|
<span class="text-gray-600 font-semibold">Telefon:</span>
|
|
{{ dto.phone }}
|
|
</div>
|
|
<div class="md:col-span-2">
|
|
<span class="text-gray-600 font-semibold">Adresse:</span>
|
|
{{ dto.street }}, {{ dto.zip }} {{ dto.city }}
|
|
</div>
|
|
{% if dto.remarks %}
|
|
<div class="md:col-span-2">
|
|
<span class="text-gray-600 font-semibold">Anmerkungen:</span>
|
|
{{ dto.remarks }}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="shrink-0 bg-primary-dark px-4 lg:px-8 py-2 lg:py-4 z-20">
|
|
<div class="flex items-center justify-between">
|
|
<a href="{{ path('app_groups_booking_step_3') }}" class="button button--secondary">
|
|
Zurück
|
|
</a>
|
|
<div class="space-x-2">
|
|
<button type="button"
|
|
class="button button--secondary"
|
|
hx-get="{{ path('app_groups_booking_step_4_confirm_inquiry') }}"
|
|
hx-target="body"
|
|
hx-swap="beforeend">
|
|
anfragen
|
|
</button>
|
|
<button type="button"
|
|
class="{{ html_classes('button button--primary', { 'opacity-50': dto.isInquiry }) }}"
|
|
{% if dto.isInquiry %}disabled{% endif %}
|
|
hx-get="{{ path('app_groups_booking_step_4_confirm') }}"
|
|
hx-target="body"
|
|
hx-swap="beforeend">
|
|
Buchung abschließen
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|