summaryrefslogtreecommitdiff
path: root/templates/changepw/reset_password.html
diff options
context:
space:
mode:
authorJohan Lundberg <lundberg@nordu.net>2011-05-10 13:14:10 +0200
committerJohan Lundberg <lundberg@nordu.net>2011-05-10 13:14:10 +0200
commit7037d2c1decd2cc8dc8789bd261d58919e95058a (patch)
tree97047ad8a88529e6fef946728b28284b93fff2a1 /templates/changepw/reset_password.html
parent669310a433f686a6e0764c591d99d801e7147979 (diff)
Ui fixing.
Diffstat (limited to 'templates/changepw/reset_password.html')
-rw-r--r--templates/changepw/reset_password.html20
1 files changed, 16 insertions, 4 deletions
diff --git a/templates/changepw/reset_password.html b/templates/changepw/reset_password.html
index d231f51..c225b8d 100644
--- a/templates/changepw/reset_password.html
+++ b/templates/changepw/reset_password.html
@@ -4,15 +4,27 @@
{% block title %}Password reset{% endblock %}
{% block content %}
<h2>Password reset</h2>
-{% if return_value == 0 %}
+{% if not return_value %}
<p>Here is your new password:</p>
<table>
<tr>
<th>Username:</th><td>{{ username }}</td>
</tr>
- <tr>
- <th>Password:</th><td>{{ new_password }}</td>
- </tr>
+ {% if new_password %}
+ <tr>
+ <th>Password:</th><td>{{ new_password }}</td>
+ </tr>
+ {% else %}
+ <tr>
+ <th>Password:</th>
+ <td>
+ <form action="{% url changepw %}" method="post">
+ {% csrf_token %}
+ <input type="submit" value="Generate" />
+ </form>
+ </td>
+ </tr>
+ {% endif %}
</table>
{% else %}
<p>Something went wrong. Please contact an administrator.</p>