diff options
Diffstat (limited to 'pyaggr3g470r/templates/login.html')
-rw-r--r-- | pyaggr3g470r/templates/login.html | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/pyaggr3g470r/templates/login.html b/pyaggr3g470r/templates/login.html index 2930a8ee..ae0797a5 100644 --- a/pyaggr3g470r/templates/login.html +++ b/pyaggr3g470r/templates/login.html @@ -3,25 +3,22 @@ <div class="container"> <div class="jumbotron"> <h2>{{ _('Log In') }}</h2> - - {% for message in form.email.errors %} - <div class="flash">{{ message }}</div> - {% endfor %} - - {% for message in form.password.errors %} - <div class="flash">{{ message }}</div> - {% endfor %} - <form action="{{ url_for('login') }}" method=post> {{ form.hidden_tag() }} <div class="form-group"> {{ form.email(class_="form-control", placeholder=_('Your email')) }} </div> + {% for message in form.email.errors %} + <div class="alert alert-warning" role="alert">{{ message }}</div> + {% endfor %} <div class="form-group"> {{ form.password(class_="form-control", placeholder=_('Your Password')) }} </div> + {% for message in form.password.errors %} + <div class="alert alert-warning" role="alert">{{ message }}</div> + {% endfor %} {{ form.submit(class_="btn btn-default") }} </form> |