summaryrefslogtreecommitdiff
path: root/yaksh/templates/registration/password_change_form.html
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/templates/registration/password_change_form.html')
-rw-r--r--yaksh/templates/registration/password_change_form.html34
1 files changed, 17 insertions, 17 deletions
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
<div class="container col-md-6">
<table class="table table-responsive-sm">
{% if form.errors %}
- {% for field in form %}
- {% for error in field.errors %}
+ {% for field in form %}
+ {% for error in field.errors %}
+ <div class="alert alert-dismissible alert-danger">
+ <button type="button" class="close" data-dismiss="alert">
+ <i class="fa fa-close"></i>
+ </button>
+ <strong>{{ error|escape }}</strong>
+ </div>
+ {% endfor %}
+ {% endfor %}
+ {% for error in form.non_field_errors %}
<div class="alert alert-dismissible alert-danger">
<button type="button" class="close" data-dismiss="alert">
<i class="fa fa-close"></i>
@@ -67,22 +76,13 @@ Change Password
<strong>{{ error|escape }}</strong>
</div>
{% endfor %}
+ {% endif %}
+ {% for field in form %}
+ <tr>
+ <td>{{ field.label }}</td>
+ <td>{{ field }} <small>{{ field.help_text }}</small></td>
+ </tr>
{% endfor %}
- {% for error in qform.non_field_errors %}
- <div class="alert alert-dismissible alert-danger">
- <button type="button" class="close" data-dismiss="alert">
- <i class="fa fa-close"></i>
- </button>
- <strong>{{ error|escape }}</strong>
- </div>
- {% endfor %}
- {% endif %}
- {% for field in form %}
- <tr>
- <td>{{ field.label }}</td>
- <td>{{ field }} <small>{{ field.help_text }}</small></td>
- </tr>
- {% endfor %}
</table>
</div>
</center>