From b16de7cd0326a7d45782cba4ed17dfa604fc348a Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Mon, 10 Jun 2013 13:40:06 +0200 Subject: [PATCH] Redo alert template --- templates/web/login/common/macros.html.twig | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/templates/web/login/common/macros.html.twig b/templates/web/login/common/macros.html.twig index 340c111328..f660f0a100 100644 --- a/templates/web/login/common/macros.html.twig +++ b/templates/web/login/common/macros.html.twig @@ -19,6 +19,7 @@
+ {{ form_errors(field) }} {% endmacro %} @@ -134,7 +135,25 @@ {% macro flashes() %} {% for type in app.getAvailableFlashTypes %} {% for message in app.getFlash(type) %} - {{ message }} +
+ {% set sign = "icon-exclamation-sign" %} + + {% if type == "error" %} + {% set sign = "icon-warning-sign" %} + {% elseif type == "success" %} + {% set sign = "icon-ok-sign" %} + {% elseif type == "info" %} + {% set sign = "icon-info-sign" %} + {% endif %} + + + + + + + +
{{ message }}×
+
{% endfor %} {% endfor %} {% endmacro %}