diff --git a/resources/views/layouts/parts/messages.twig b/resources/views/layouts/parts/messages.twig new file mode 100644 index 00000000..b6f03aa4 --- /dev/null +++ b/resources/views/layouts/parts/messages.twig @@ -0,0 +1,19 @@ +{% import 'macros/base.twig' as m %} + +{{ msg() }} + +{% for message in errors|default([]) %} + {{ m.alert(__(message), 'danger') }} +{% endfor %} + +{% for message in warnings|default([]) %} + {{ m.alert(__(message), 'warning') }} +{% endfor %} + +{% for message in information|default([]) %} + {{ m.alert(__(message), 'info') }} +{% endfor %} + +{% for message in messages|default([]) %} + {{ m.alert(__(message), 'success') }} +{% endfor %} diff --git a/resources/views/pages/login.twig b/resources/views/pages/login.twig index fdb5b116..a6fb0934 100644 --- a/resources/views/pages/login.twig +++ b/resources/views/pages/login.twig @@ -32,10 +32,7 @@