diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2015-03-28 16:58:38 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2015-03-28 16:58:38 -0400 |
| commit | 884e74704bf28a53c66d8b436d3e012ce28dbe64 (patch) | |
| tree | fe56cec9c1167664130d4306ab171d5c967f9b30 /templates | |
| parent | b330c3ec624b9c36c7901a65188697765a7cde26 (diff) | |
| download | famille-flask-884e74704bf28a53c66d8b436d3e012ce28dbe64.tar.gz | |
flash error messages
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/login.html | 11 |
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"> |
