diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-01-09 22:11:34 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-01-09 22:11:34 +0100 |
commit | 7afbc14912a37e4328947299f7e3055e7e7f6b4a (patch) | |
tree | 8aa36067266b94423695fd9aff20a423b7e4becd /pyaggr3g470r/templates/login.html | |
parent | Updated years f copyright. (diff) | |
download | newspipe-7afbc14912a37e4328947299f7e3055e7e7f6b4a.tar.gz newspipe-7afbc14912a37e4328947299f7e3055e7e7f6b4a.tar.bz2 newspipe-7afbc14912a37e4328947299f7e3055e7e7f6b4a.zip |
Updated login forms and login template.
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> |