feat: additional notification about invoice download
closes #869cxbk6c
This commit is contained in:
@@ -151,6 +151,7 @@ class IndexController extends AbstractController
|
|||||||
break;
|
break;
|
||||||
case BookingEditSubmissionResult::STATUS_SUCCESS:
|
case BookingEditSubmissionResult::STATUS_SUCCESS:
|
||||||
$this->addFlash('success', 'Buchung erfolgreich aktualisiert');
|
$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;
|
break;
|
||||||
case BookingEditSubmissionResult::STATUS_UNSUCCESSFUL:
|
case BookingEditSubmissionResult::STATUS_UNSUCCESSFUL:
|
||||||
$this->addFlash('error', $result->message ?? 'Buchung konnte nicht aktualisiert werden');
|
$this->addFlash('error', $result->message ?? 'Buchung konnte nicht aktualisiert werden');
|
||||||
|
|||||||
@@ -46,6 +46,14 @@
|
|||||||
{% block participant_cards %}
|
{% block participant_cards %}
|
||||||
<h2 class="pb-4">Teilnehmer:innen</h2>
|
<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 %}
|
{% if bookingEditContext.isDirty %}
|
||||||
{% include '_partials/_alert.html.twig' with {
|
{% include '_partials/_alert.html.twig' with {
|
||||||
level: 'warning',
|
level: 'warning',
|
||||||
|
|||||||
Reference in New Issue
Block a user