From 7e379b33db541b1e7d4118e4b915173d0626e18c Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 7 Oct 2016 02:24:24 +0100 Subject: [PATCH] Fixed login autofocus and error messages --- templates/registration/login_embed.html | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/templates/registration/login_embed.html b/templates/registration/login_embed.html index 1cfdfa5b..f14a1d28 100644 --- a/templates/registration/login_embed.html +++ b/templates/registration/login_embed.html @@ -1,4 +1,5 @@ {% extends 'base_embed.html' %} +{% load widget_tweaks %} {% block title %}Login{% endblock %} @@ -6,6 +7,24 @@

Rig Information Gathering System

-{% include 'registration/loginform.html' %} + + +{% 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 %} +
+ + + +
+
{% endblock %} \ No newline at end of file