diff options
author | Johan Lundberg <lundberg@nordu.net> | 2011-05-10 13:14:10 +0200 |
---|---|---|
committer | Johan Lundberg <lundberg@nordu.net> | 2011-05-10 13:14:10 +0200 |
commit | 7037d2c1decd2cc8dc8789bd261d58919e95058a (patch) | |
tree | 97047ad8a88529e6fef946728b28284b93fff2a1 /templates/changepw/reset_password.html | |
parent | 669310a433f686a6e0764c591d99d801e7147979 (diff) |
Ui fixing.
Diffstat (limited to 'templates/changepw/reset_password.html')
-rw-r--r-- | templates/changepw/reset_password.html | 20 |
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> |