engelsystem/resources/views/layouts/parts/messages.twig

18 lines
443 B
Twig
Raw Permalink Normal View History

{% import 'macros/base.twig' as m %}
2023-02-02 22:53:51 +01:00
{% for message in notifications('error') %}
{{ m.alert(__(message), 'danger') }}
{% endfor %}
2023-02-02 22:53:51 +01:00
{% for message in notifications('warning') %}
{{ m.alert(__(message), 'warning') }}
{% endfor %}
2023-02-02 22:53:51 +01:00
{% for message in notifications('information') %}
{{ m.alert(__(message), 'info') }}
{% endfor %}
2023-02-02 22:53:51 +01:00
{% for message in notifications('message') %}
{{ m.alert(__(message), 'success') }}
{% endfor %}