Mercurial > public > sg101
annotate gpp/templates/bio/edit_profile.html @ 492:3c48a555298d
Added a custom tag to display a link to a profile. Refactored the avatar tag to optionally display a profile link around the image. Removed the width and height attributes from the avatar image tag. I think this was causing disk hits whenever those properties were not cached. The avatar tag is now an inclusion tag.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 22 Oct 2011 00:07:50 +0000 |
parents | 88b2b9cb8c1f |
children |
rev | line source |
---|---|
gremmie@1 | 1 {% extends 'bio/base.html' %} |
bgneal@310 | 2 {% load url from future %} |
bgneal@492 | 3 {% load bio_tags %} |
bgneal@29 | 4 {% load elsewhere_tags %} |
gremmie@1 | 5 {% block title %}Edit Profile{% endblock %} |
gremmie@1 | 6 {% block custom_js %} |
gremmie@1 | 7 {{ profile_form.media }} |
gremmie@1 | 8 {% endblock %} |
gremmie@1 | 9 {% block content %} |
gremmie@1 | 10 <div class="user_profile"> |
gremmie@1 | 11 <h2>Edit Profile for {{ user.username }}</h2> |
bgneal@310 | 12 <form action="{% url 'bio-edit_profile' %}" method="post">{% csrf_token %} |
gremmie@1 | 13 <table> |
gremmie@1 | 14 <tr> |
gremmie@1 | 15 <td> |
bgneal@312 | 16 <a href="{% url 'bio-change_avatar' %}"><img src="{{ STATIC_URL }}icons/image_edit.png" alt="Change Avatar" /></a> |
bgneal@310 | 17 <a href="{% url 'bio-change_avatar' %}">Change Avatar</a></td> |
bgneal@492 | 18 <td>{% avatar user 0 %}</td> |
gremmie@1 | 19 </tr> |
gremmie@1 | 20 {{ user_form.as_table }} |
gremmie@1 | 21 {{ profile_form.as_table }} |
bgneal@29 | 22 <tr> |
bgneal@29 | 23 <td> |
bgneal@312 | 24 <a href="{% url 'bio-edit_elsewhere' %}"><img src="{{ STATIC_URL }}icons/link_edit.png" alt="Edit Links" /></a> |
bgneal@310 | 25 <a href="{% url 'bio-edit_elsewhere' %}">Edit Elsewhere Links</a></td> |
bgneal@29 | 26 <td>{% elsewhere_links user %}</td> |
bgneal@29 | 27 </tr> |
bgneal@70 | 28 <tr> |
bgneal@70 | 29 <th>Time Zone:</th> |
bgneal@70 | 30 <td><select id="id_tz_area"></select> <select id="id_tz_location"></select></td> |
gremmie@1 | 31 <tr><td> </td><td><input type="submit" name="submit_button" value="Save" /> |
gremmie@1 | 32 <input type="submit" name="submit_button" value="Cancel" /></td></tr> |
gremmie@1 | 33 </table> |
gremmie@1 | 34 </form> |
gremmie@1 | 35 </div> |
gremmie@1 | 36 <br /> |
gremmie@1 | 37 {% endblock %} |