diff options
-rw-r--r-- | templates/changepw/change_other.html | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/templates/changepw/change_other.html b/templates/changepw/change_other.html index 492e98c..67e5554 100644 --- a/templates/changepw/change_other.html +++ b/templates/changepw/change_other.html @@ -9,19 +9,24 @@ {{ form.non_field_errors }} </p> <form action="{% url changeother %}" method="post" autocomplete="off">{% csrf_token %} - <table> - {% for field in form %} - <tr> - <td class="fielderrors">{{ field.errors }}</td> - </tr> - <tr> - <th class="formlabel">{{ field.label_tag }}:</th><td class="formfield">{{ field }}</td><td><span class="password_strength"></span></td> - </tr> - {% endfor %} - </table> - <input type="submit" value="Submit" /> + <table> + {% for field in form %} + <tr> + <td class="fielderrors">{{ field.errors }}</td> + </tr> + <tr> + <th class="formlabel">{{ field.label_tag }}:</th> + </tr> + <tr> + <td class="formfield">{{ field }}</td><td><input type="submit" value="Submit" /></td> + </tr> + {% endfor %} + </table> </form> -{% else %} +{% endif %} + {% if return_value == 0 %} + <p>Changed successfully.</p> + {% else %} <p>Something went wrong. Please contact an administrator.</p> <p>Return code: {{ return_value }}</p> {% endif %} |