97 lines
4.1 KiB
Twig
97 lines
4.1 KiB
Twig
{% extends 'layout.html.twig' %}
|
|
|
|
{% block content %}
|
|
<div class="px-4 lg:px-8 py-8 lg:py-16">
|
|
|
|
{% include '_partials/_flashes.html.twig' %}
|
|
|
|
<h1 class="text-white uppercase pb-4 mb-8 border-b border-primary-bg/40">
|
|
Neue<br>Buchung
|
|
</h1>
|
|
|
|
<div class="text-white uppercase pb-4 ld:pb-8">
|
|
{{ travel_title }}
|
|
<br>
|
|
{{ travel_date_from | date('d.m.Y') }} - {{ travel_date_to | date('d.m.Y') }}
|
|
</div>
|
|
|
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
|
|
<div>
|
|
<a href="{{ path('app_booking_create_step_1') }}" class="button button--secondary mb-4">
|
|
Als Gast fortfahren
|
|
</a>
|
|
|
|
<h2 class="text-base text-white">
|
|
Noch kein Account?
|
|
</h2>
|
|
<p class="text-white">
|
|
Nach Abschluss deiner Buchung wird automatisch ein Account für dich erstellt.
|
|
Du erhältst dann Zugangsdaten per E-Mail und kannst deine Buchungen jederzeit verwalten.
|
|
</p>
|
|
</div>
|
|
<div>
|
|
<h2 class="text-base text-white">
|
|
Mit bestehendem Account anmelden
|
|
</h2>
|
|
|
|
{% if error %}
|
|
{% include '_partials/_alert.html.twig' with { 'level': 'error', messages: [ error.messageKey|trans(error.messageData, 'security') ] } %}
|
|
{% endif %}
|
|
|
|
<div class="pb-4">
|
|
<form action="{{ path('app_login') }}" method="post" {{ stimulus_action('loading', 'show') }}>
|
|
<div class="mb-4">
|
|
<label for="username" class="mb-1 font-semibold text-white">
|
|
E-Mail:
|
|
</label>
|
|
<input type="email"
|
|
id="username"
|
|
name="_username"
|
|
value="{{ last_username }}"
|
|
class="form-field"
|
|
required
|
|
autocomplete="username">
|
|
</div>
|
|
|
|
<div class="mb-4">
|
|
<label for="password" class="mb-1 font-semibold text-white">
|
|
Passwort:
|
|
</label>
|
|
<input type="password"
|
|
id="password"
|
|
name="_password"
|
|
class="form-field"
|
|
required
|
|
autocomplete="current-password">
|
|
</div>
|
|
|
|
<button type="submit" class="button button--primary">
|
|
Anmelden und fortfahren
|
|
</button>
|
|
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
|
|
</form>
|
|
</div>
|
|
|
|
<a href="{{ path('app_reset_password') }}"
|
|
class="text-sm underline text-white">
|
|
Passwort vergessen?
|
|
</a>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block footer %}
|
|
<div class="shrink-0 bg-primary-dark px-4 lg:px-8 py-2 lg:py-4">
|
|
<button type="button"
|
|
hx-get="{{ path('app_booking_cancel') }}"
|
|
hx-target="body"
|
|
hx-swap="beforeend"
|
|
class="inline-flex items-center justify-center bg-gray-200 rounded-md w-10 h-10">
|
|
<svg class="w-8 h-8" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"/><line x1="200" y1="56" x2="56" y2="200" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><line x1="200" y1="200" x2="56" y2="56" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/></svg>
|
|
</button>
|
|
</div>
|
|
{% endblock %}
|