From a13a8da0e83af2f110e4eca8bef42239872c5d10 Mon Sep 17 00:00:00 2001 From: Ihsan Ullah Date: Thu, 20 Apr 2023 20:10:13 +0500 Subject: [PATCH] Forgot/Reset password styling added --- src/templates/base.html | 2 +- .../registration/password_reset_complete.html | 10 +++-- .../registration/password_reset_confirm.html | 42 +++++++++++++++---- .../registration/password_reset_done.html | 17 +++++--- .../registration/password_reset_form.html | 40 +++++++++++++----- 5 files changed, 83 insertions(+), 28 deletions(-) diff --git a/src/templates/base.html b/src/templates/base.html index 5e96e8e1b..1f80a1a52 100644 --- a/src/templates/base.html +++ b/src/templates/base.html @@ -146,7 +146,7 @@ Notifications - + Change Password diff --git a/src/templates/registration/password_reset_complete.html b/src/templates/registration/password_reset_complete.html index e69a6e197..0041b9694 100644 --- a/src/templates/registration/password_reset_complete.html +++ b/src/templates/registration/password_reset_complete.html @@ -1,10 +1,14 @@ {% extends 'base.html' %} {% block content %} -
-

+
+

Password Reset Complete

-

Your password has been successfully reset.

+
+
+

Your password has been successfully reset.

+
+
{% endblock %} diff --git a/src/templates/registration/password_reset_confirm.html b/src/templates/registration/password_reset_confirm.html index 873f819bb..04b250985 100644 --- a/src/templates/registration/password_reset_confirm.html +++ b/src/templates/registration/password_reset_confirm.html @@ -1,14 +1,42 @@ {% extends 'base.html' %} {% block content %} -
-

+
+

Change Password

-
- {% csrf_token %} - {{ form.as_p }} - -
+
+

Reset your password by entering a new one.

+
+
+ {% csrf_token %} +
+
+ + +
+
+
+
+ + +
+
+ + +
+
{% endblock %} diff --git a/src/templates/registration/password_reset_done.html b/src/templates/registration/password_reset_done.html index c36f7c225..8ad764b95 100644 --- a/src/templates/registration/password_reset_done.html +++ b/src/templates/registration/password_reset_done.html @@ -3,14 +3,19 @@ {% block title %}Password reset{% endblock %} {% block content %} -
-

+
+

Password Reset Complete

-

- We have sent you an email with a link to reset your password. Please check - your email and click the link to continue. -

+
+
+

+ We have sent you an email with a link to reset your password. Please check + your email and click the link to continue. +

+
+ +
{% endblock %} diff --git a/src/templates/registration/password_reset_form.html b/src/templates/registration/password_reset_form.html index 5d225765d..4c1ca903a 100644 --- a/src/templates/registration/password_reset_form.html +++ b/src/templates/registration/password_reset_form.html @@ -4,19 +4,37 @@ {% block title %}Reset password{% endblock %} {% block content %} -
-

+
+

Reset password

- {% if user.is_authenticated %} -

Note: you are already logged in as {{ user.username }}.

- {% endif %} -

Forgot your password? Enter your email in the form below and we'll send you instructions for creating a new one.

-
- {% csrf_token %} - {{ form.as_p }} - -
+
+ {% if user.is_authenticated %} +
+

Note: you are already logged in as {{ user.username }}.

+
+ {% endif %} +
Forgot your password?
+

Enter your email in the form below and we'll send you instructions for creating a new one.

+
+
+ {% csrf_token %} +
+
+ + +
+
+ +
+
+
{% endblock %}