Mercurial > public > sg101
annotate gpp/templates/bio/edit_profile.html @ 20:c0d0779b266f
Created a template tag for the latest weblinks: latest_weblinks. This necessitated adding a get_absolute_url function for the Link model along with a new view for it.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 19 Apr 2009 20:41:37 +0000 |
parents | dbd703f7d63a |
children | 74f04122295e |
rev | line source |
---|---|
gremmie@1 | 1 {% extends 'bio/base.html' %} |
gremmie@1 | 2 {% load avatar_tags %} |
gremmie@1 | 3 {% block title %}Edit Profile{% endblock %} |
gremmie@1 | 4 {% block custom_js %} |
gremmie@1 | 5 {{ profile_form.media }} |
gremmie@1 | 6 {% endblock %} |
gremmie@1 | 7 {% block content %} |
gremmie@1 | 8 <div class="user_profile"> |
gremmie@1 | 9 <h2>Edit Profile for {{ user.username }}</h2> |
gremmie@1 | 10 <form action="{% url bio-edit_profile %}" method="post"> |
gremmie@1 | 11 <table> |
gremmie@1 | 12 <tr> |
gremmie@1 | 13 <td> |
gremmie@1 | 14 <a href="{% url bio-change_avatar %}"><img src="{{ MEDIA_URL }}icons/image_edit.png" alt="Change Avatar" /></a> |
gremmie@1 | 15 <a href="{% url bio-change_avatar %}">Change Avatar</a></td> |
gremmie@1 | 16 <td>{% avatar user %}</td> |
gremmie@1 | 17 </tr> |
gremmie@1 | 18 {{ user_form.as_table }} |
gremmie@1 | 19 {{ profile_form.as_table }} |
gremmie@1 | 20 <tr><td> </td><td><input type="submit" name="submit_button" value="Save" /> |
gremmie@1 | 21 <input type="submit" name="submit_button" value="Cancel" /></td></tr> |
gremmie@1 | 22 </table> |
gremmie@1 | 23 </form> |
gremmie@1 | 24 </div> |
gremmie@1 | 25 <br /> |
gremmie@1 | 26 {% endblock %} |