aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2015-03-28 16:58:38 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2015-03-28 16:58:38 -0400
commit884e74704bf28a53c66d8b436d3e012ce28dbe64 (patch)
treefe56cec9c1167664130d4306ab171d5c967f9b30 /templates
parentb330c3ec624b9c36c7901a65188697765a7cde26 (diff)
downloadfamille-flask-884e74704bf28a53c66d8b436d3e012ce28dbe64.tar.gz
flash error messages
Diffstat (limited to 'templates')
-rw-r--r--templates/login.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/login.html b/templates/login.html
index f0de980..8179f54 100644
--- a/templates/login.html
+++ b/templates/login.html
@@ -19,6 +19,17 @@
name="password" placeholder="Mot de passe"/>
</div>
</div>
+ {% with messages = get_flashed_messages() %}
+ {% if messages %}
+ {% for message in messages %}
+ <div class="alert alert-danger" role="alert">
+ <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true">
+ </span>
+ {{message}}
+ </div>
+ {% endfor %}
+ {% endif %}
+ {% endwith %}
<div class="form-group">
<div class="col-md-offset-4 col-md-8">
<button type="submit" class="btn btn-primary" name="login">