This commit is contained in:
Björn Fromme
2025-02-28 09:42:17 +01:00
parent ac498f9040
commit 62f5fa4406
9 changed files with 105 additions and 21 deletions
+24 -3
View File
@@ -1,9 +1,30 @@
{% if app.session.flashBag.peek('error')|length > 0 %}
{% include '_partials/_alert.html.twig' with { level: 'error', messages: app.flashes('error') } %}
{% embed '_partials/_modal.html.twig' with { 'level': 'error', 'modal': true } %}
{% block title %}
Fehler
{% endblock %}
{% block content %}
{% include '_partials/_alert.html.twig' with { level: 'error', messages: app.flashes('error') } %}
{% endblock %}
{% endembed %}
{% endif %}
{% if app.session.flashBag.peek('success')|length > 0 %}
{% include '_partials/_alert.html.twig' with { level: 'success', messages: app.flashes('success') } %}
{% embed '_partials/_modal.html.twig' with { 'level': 'success', 'modal': true } %}
{% block title %}
OK
{% endblock %}
{% block content %}
{% include '_partials/_alert.html.twig' with { level: 'success', messages: app.flashes('success') } %}
{% endblock %}
{% endembed %}
{% endif %}
{% if app.session.flashBag.peek('info')|length > 0 %}
{% include '_partials/_alert.html.twig' with { level: 'info', messages: app.flashes('info') } %}
{% embed '_partials/_modal.html.twig' with { 'level': 'info', 'modal': true } %}
{% block title %}
Hinweis
{% endblock %}
{% block content %}
{% include '_partials/_alert.html.twig' with { level: 'info', messages: app.flashes('info') } %}
{% endblock %}
{% endembed %}
{% endif %}