feat: optional return url

This commit is contained in:
Björn Fromme
2025-12-07 18:47:18 +01:00
parent 233748a6c5
commit 20a67e9b96
7 changed files with 75 additions and 24 deletions
+5 -5
View File
@@ -1,19 +1,19 @@
{% extends 'layout.html.twig' %}
{% block title %}Booking Error{% endblock %}
{% block title %}Fehler{% endblock %}
{% block body %}
{% block content %}
<div class="container mx-auto px-4 py-8">
<div class="max-w-lg mx-auto">
{% set errorMessages = app.flashes('error')|default(['Es ist ein Fehler beim Starten des Buchungsvorgangs aufgetreten.']) %}
{% include '_partials/_alert.html.twig' with {
level: 'error',
title: 'Booking Error',
title: 'Das hat nicht geklappt',
messages: errorMessages
} %}
<a href="https://www.ep-reisen.de" class="button button--secondary">
Zur Startseite
<a href="{{ returnUrl }}" class="button button--secondary">
Zurück
</a>
</div>
</div>