From df3b1e5d1462a9d4520fbb04e05e5746275b861c Mon Sep 17 00:00:00 2001 From: Venu Vardhan Reddy Tekula Date: Mon, 2 Mar 2020 20:16:48 +0530 Subject: [PATCH] [UI] Improve the Login UI This commit has minor improvements in the login screen UI. Signed-off-by: Venu Vardhan Reddy Tekula --- .../templates/registration/login.html | 83 +++++++++++++------ 1 file changed, 57 insertions(+), 26 deletions(-) diff --git a/django-prosoul/django_prosoul/templates/registration/login.html b/django-prosoul/django_prosoul/templates/registration/login.html index 2e4f23f..6f0ccad 100644 --- a/django-prosoul/django_prosoul/templates/registration/login.html +++ b/django-prosoul/django_prosoul/templates/registration/login.html @@ -4,40 +4,71 @@ {{ block.super }} {% endblock %} - - {% block body %} + {% if form.errors %} -

Your username and password didn't match. Please try again.

+ {% endif %} {% if next %} {% if user.is_authenticated %} -

Your account doesn't have access to this page. To proceed, - please login with an account that has access.

+ {% else %} -

Please login to see this page.

+ {% endif %} {% endif %} -
-{% csrf_token %} - - - - - - - - - -
{{ form.username.label_tag }}{{ form.username }}
{{ form.password.label_tag }}{{ form.password }}
- - - -
- -{# Assumes you setup the password_reset view in your URLconf #} -

Lost password?

+
+
+
+
Login
+
+
+ {% csrf_token %} -{% endblock %} +
+ +
+ {{ form.username }} +
+
+ +
+ +
+ {{ form.password }} +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ {# Assumes you setup the password_reset view in your URLconf #} + Lost password? +
+
+ +
+
+
+
+
+ +{% endblock %} \ No newline at end of file