feat: additional notification about invoice download
closes #869cxbk6c
This commit is contained in:
@@ -151,6 +151,7 @@ class IndexController extends AbstractController
|
||||
break;
|
||||
case BookingEditSubmissionResult::STATUS_SUCCESS:
|
||||
$this->addFlash('success', 'Buchung erfolgreich aktualisiert');
|
||||
$this->addFlash('booking_edit_notice', 'Bitte ladet euch eine aktualisierte Rechnung herunter, damit ihr stets den aktuellen Stand eurer Buchung vorliegen habt.');
|
||||
break;
|
||||
case BookingEditSubmissionResult::STATUS_UNSUCCESSFUL:
|
||||
$this->addFlash('error', $result->message ?? 'Buchung konnte nicht aktualisiert werden');
|
||||
|
||||
@@ -46,6 +46,14 @@
|
||||
{% block participant_cards %}
|
||||
<h2 class="pb-4">Teilnehmer:innen</h2>
|
||||
|
||||
{% if app.session.flashBag.peek('booking_edit_notice')|length > 0 %}
|
||||
{% include '_partials/_alert.html.twig' with {
|
||||
level: 'info',
|
||||
title: 'Hinweis',
|
||||
messages: app.flashes('booking_edit_notice')
|
||||
} %}
|
||||
{% endif %}
|
||||
|
||||
{% if bookingEditContext.isDirty %}
|
||||
{% include '_partials/_alert.html.twig' with {
|
||||
level: 'warning',
|
||||
|
||||
Reference in New Issue
Block a user