Mercurial > public > sg101
annotate gpp/templates/accounts/password_change.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 | 9a8801fa63d5 |
children | 6a5549c2efb5 |
rev | line source |
---|---|
gremmie@1 | 1 {% extends 'base.html' %} |
gremmie@1 | 2 {% block title %}Change Password{% endblock %} |
gremmie@1 | 3 {% block content %} |
gremmie@1 | 4 <h2>Change Password</h2> |
gremmie@1 | 5 <form method="post" action="."> |
gremmie@1 | 6 <table> |
gremmie@1 | 7 {{ form.as_table }} |
gremmie@1 | 8 <tr><td> </td><td><input type="submit" value="Change Password" /> |
bgneal@4 | 9 <a href="{% url bio-me %}">Cancel</a> |
bgneal@4 | 10 </td></tr> |
gremmie@1 | 11 </table> |
gremmie@1 | 12 </form> |
gremmie@1 | 13 {% endblock %} |