From eb4e3bdb14ab773127618220193c003d3bf168f1 Mon Sep 17 00:00:00 2001 From: Tom Price Date: Wed, 3 Dec 2014 22:55:16 +0000 Subject: [PATCH] Tidied the errors on the loginform --- templates/registration/loginform.html | 32 +++++++++++++-------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/templates/registration/loginform.html b/templates/registration/loginform.html index 45bfe5f1..01c0b900 100644 --- a/templates/registration/loginform.html +++ b/templates/registration/loginform.html @@ -1,22 +1,20 @@ {% load url from future %} {% load widget_tweaks %} -{% if form.errors %} -
Your username or password was incorrect
-{% endif %} +{% include 'form_errors.html' %}
-
{% csrf_token %} -
- - {% render_field form.username class+="form-control" placeholder=form.username.label %} -
-
- - {% render_field form.password class+="form-control" placeholder=form.password.label %} -
- Register - Forgotten Password - - -
+
{% csrf_token %} +
+ + {% render_field form.username class+="form-control" placeholder=form.username.label %} +
+
+ + {% render_field form.password class+="form-control" placeholder=form.password.label %} +
+ Register + Forgotten Password + + +
\ No newline at end of file