Commit ad55ca0fdc958ab04737ebcc97e2cb8c4416acb5
1 parent
c89f0529
Exists in
master
and in
5 other branches
Message in register user #14
Showing
1 changed file
with
10 additions
and
5 deletions
Show diff stats
core/templates/register_user.html
@@ -8,11 +8,16 @@ | @@ -8,11 +8,16 @@ | ||
8 | 8 | ||
9 | 9 | ||
10 | {% block content %} | 10 | {% block content %} |
11 | - {% if message %} | ||
12 | - <div class="alert alert-danger"> | ||
13 | - {{message}} | ||
14 | - </div> | ||
15 | - {% endif %} | 11 | + {% if messages %} |
12 | + {% for message in messages %} | ||
13 | + <div class="alert alert-{{ message.tags }} alert-dismissible" role="alert"> | ||
14 | + <button type="button" class="close" data-dismiss="alert" aria-label="Close"> | ||
15 | + <span aria-hidden="true">×</span> | ||
16 | + </button> | ||
17 | + <p>{{ message }}</p> | ||
18 | + </div> | ||
19 | + {% endfor %} | ||
20 | + {% endif %} | ||
16 | <div class="row logo-row"> | 21 | <div class="row logo-row"> |
17 | <div class="col-lg-offset-2 col-lg-9"> | 22 | <div class="col-lg-offset-2 col-lg-9"> |
18 | <img src="{% static 'img/amadeus.png' %}" class="img-responsive center-block " alt="logo amadeus" id="logo"> | 23 | <img src="{% static 'img/amadeus.png' %}" class="img-responsive center-block " alt="logo amadeus" id="logo"> |