From 78368a851231507557c4d524707da7ff5197509c Mon Sep 17 00:00:00 2001 From: adityacp Date: Fri, 28 Feb 2020 15:25:03 +0530 Subject: Fix UI in forgot and change password --- .../registration/password_change_form.html | 34 ++++++++--------- .../registration/password_reset_confirm.html | 44 +++++++++++++++++++++- 2 files changed, 59 insertions(+), 19 deletions(-) (limited to 'yaksh/templates/registration') diff --git a/yaksh/templates/registration/password_change_form.html b/yaksh/templates/registration/password_change_form.html index 8d8424e..37f6e93 100644 --- a/yaksh/templates/registration/password_change_form.html +++ b/yaksh/templates/registration/password_change_form.html @@ -58,8 +58,17 @@ Change Password
{% if form.errors %} - {% for field in form %} - {% for error in field.errors %} + {% for field in form %} + {% for error in field.errors %} +
+ + {{ error|escape }} +
+ {% endfor %} + {% endfor %} + {% for error in form.non_field_errors %}
{% endfor %} + {% endif %} + {% for field in form %} + + + + {% endfor %} - {% for error in qform.non_field_errors %} -
- - {{ error|escape }} -
- {% endfor %} - {% endif %} - {% for field in form %} - - - - - {% endfor %}
{{ field.label }}{{ field }} {{ field.help_text }}
{{ field.label }}{{ field }} {{ field.help_text }}
diff --git a/yaksh/templates/registration/password_reset_confirm.html b/yaksh/templates/registration/password_reset_confirm.html index ef2d1f2..02f1228 100644 --- a/yaksh/templates/registration/password_reset_confirm.html +++ b/yaksh/templates/registration/password_reset_confirm.html @@ -11,18 +11,58 @@ {% endblock %} +{% block script %} + +{% endblock %} + {% block content %}

Reset Password

+
{% if validlink %} -

Please enter your new password twice so we can verify you typed it in correctly

. +

Please enter your new password twice so we can verify you typed it in correctly +

.
{% csrf_token %} - {{ form.as_p }} + + {% if form.errors %} + {% for field in form %} + {% for error in field.errors %} +
+ + {{ error|escape }} +
+ {% endfor %} + {% endfor %} + {% for error in form.non_field_errors %} +
+ + {{ error|escape }} +
+ {% endfor %} + {% endif %} + {% for field in form %} + + + + + {% endfor %} +
{{ field.label }}{{ field }} {{ field.help_text }}
{% else %}

This reset link is no longer valid!

{% endif %} +
{% endblock %} -- cgit