Mercurial > public > sg101
annotate gpp/templates/accounts/password_reset_confirm.html @ 145:71cb4208dc98
Tweak to #30, admin dashboard. Because of a bug in Django (9568), my dashboard appears on the login page. To get around this, pass in the user to the templatetag, so it can do a 'if user.is_staff' check. Also tweaked the HTML and CSS to show non-zero pending items in red. Shortened the pending item titles for readability.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 09 Dec 2009 00:03:10 +0000 |
parents | 4b90d00cc4eb |
children | 6a5549c2efb5 |
rev | line source |
---|---|
bgneal@79 | 1 {% extends 'base.html' %} |
bgneal@79 | 2 {% block title %}Reset Password{% endblock %} |
bgneal@79 | 3 {% block content %} |
bgneal@79 | 4 <h2>Reset Password</h2> |
bgneal@79 | 5 {% if validlink %} |
bgneal@79 | 6 <p> |
bgneal@79 | 7 Please use the following form to reset your password. |
bgneal@79 | 8 </p> |
bgneal@79 | 9 <form method="post" action="."> |
bgneal@79 | 10 <table> |
bgneal@79 | 11 {{ form.as_table }} |
bgneal@79 | 12 <tr><td> </td><td><input type="submit" value="Reset Password" /> |
bgneal@79 | 13 </td></tr> |
bgneal@79 | 14 </table> |
bgneal@79 | 15 </form> |
bgneal@79 | 16 {% else %} |
bgneal@79 | 17 <p> |
bgneal@79 | 18 We're sorry, the link you provided is invalid or has expired. If you are trying to |
bgneal@79 | 19 reset your password, please <a href="{% url accounts-password_reset %}">try again</a>. |
bgneal@79 | 20 If you have questions or problems, please <a href="{% url contact-form %}">contact us</a>. |
bgneal@79 | 21 </p> |
bgneal@79 | 22 {% endif %} |
bgneal@79 | 23 {% endblock %} |