91 lines
3.4 KiB
Twig
91 lines
3.4 KiB
Twig
{% extends 'layout_booking.html.twig' %}
|
|
|
|
{% block title %}Kontaktdaten vervollständigen{% endblock %}
|
|
|
|
{% block background %}bg-outer bg-outer--summer{% endblock %}
|
|
|
|
{% block content %}
|
|
{% form_theme form 'booking/_form_theme.html.twig' %}
|
|
|
|
{% set currency = booking.pricingCurrency ?? priceBreakdown.currency %}
|
|
|
|
{{ form_start(form, {
|
|
'attr': {
|
|
'class': 'flex-1 flex flex-col min-h-0',
|
|
'novalidate': 'novalidate',
|
|
}
|
|
}) }}
|
|
|
|
<div class="flex-1 flex flex-col lg:grid lg:grid-cols-5 min-h-0 relative">
|
|
|
|
{# Sidebar summary #}
|
|
<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/offer/_summary.html.twig' with {
|
|
booking: booking,
|
|
ctx: ctx,
|
|
currency: currency,
|
|
} %}
|
|
</div>
|
|
|
|
{# Contact data form #}
|
|
<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' %}
|
|
|
|
<div class="flex-1 overflow-y-auto scroll-stable px-4 lg:px-8 py-8">
|
|
<hgroup class="pb-4">
|
|
<h1 class="text-2xl lg:text-4xl font-bold mb-2">
|
|
Kontaktdaten vervollständigen
|
|
</h1>
|
|
<p>
|
|
Bevor du das Angebot für {{ ctx.accommodation.name }} buchen kannst, benötigen wir
|
|
noch deine vollständigen Kontaktdaten.
|
|
</p>
|
|
</hgroup>
|
|
|
|
{% from '_partials/_validation_errors.html.twig' import validation_alert %}
|
|
{{ validation_alert(form, 'Bitte fülle alle Pflichtfelder aus.') }}
|
|
|
|
<div class="grid lg:grid-cols-2 lg:gap-x-8">
|
|
{{ form_row(form.groupName) }}
|
|
{{ form_row(form.salutation) }}
|
|
</div>
|
|
|
|
<div class="grid lg:grid-cols-2 lg:gap-x-8">
|
|
{{ form_row(form.firstName) }}
|
|
{{ form_row(form.lastName) }}
|
|
</div>
|
|
|
|
<div class="grid lg:grid-cols-2 lg:gap-x-8">
|
|
{{ form_row(form.email) }}
|
|
{{ form_row(form.phone) }}
|
|
</div>
|
|
|
|
<h3 class="pt-4 pb-2">Adresse</h3>
|
|
|
|
{{ form_row(form.street) }}
|
|
|
|
<div class="grid lg:grid-cols-2 lg:gap-x-8">
|
|
{{ form_row(form.zip) }}
|
|
{{ form_row(form.city) }}
|
|
</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_offer_view', { uuid: booking.uuid }) }}" class="button button--secondary">
|
|
Zurück zum Angebot
|
|
</a>
|
|
<button type="submit" class="button button--primary">
|
|
Speichern
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
{{ form_rest(form) }}
|
|
{{ form_end(form) }}
|
|
{% endblock %}
|