feat: optional return url
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
{% set modal = false %}
|
||||
{% endif %}
|
||||
<div class="{{ html_classes('rounded-md mb-4', { 'p-4': modal == false, 'bg-red-500': level == 'error', 'bg-green-500': level == 'success', 'bg-yellow-500': level == 'warning', 'bg-primary-light': level == 'info' }) }}">
|
||||
<div class="flex items-center">
|
||||
<div class="shrink-0 text-white">
|
||||
<div class="flex items-start">
|
||||
<div class="shrink-0 text-white mt-1">
|
||||
{% if level == 'error' or level == 'warning' %}
|
||||
<svg class="w-5 h-5" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
|
||||
<path fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM8.28 7.22a.75.75 0 0 0-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 1 0 1.06 1.06L10 11.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L11.06 10l1.72-1.72a.75.75 0 0 0-1.06-1.06L10 8.94 8.28 7.22Z" clip-rule="evenodd" />
|
||||
@@ -20,7 +20,7 @@
|
||||
</div>
|
||||
<div class="ml-3">
|
||||
{% if title is defined %}
|
||||
<div class="text-white">
|
||||
<div class="text-white text-lg font-semibold uppercase">
|
||||
{{ title }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -48,8 +48,8 @@
|
||||
</ul>
|
||||
{% else %}
|
||||
{# Guest user - show simple homepage link #}
|
||||
<a href="https://www.ep-reisen.de" class="button button--primary">
|
||||
Zurück zur Startseite
|
||||
<a href="{{ returnUrl }}" class="button button--primary">
|
||||
Zurück
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user