annotate gpp/templates/bio/edit_profile.html @ 6:b6263ac72052

Use DRY principle to manage third party javascript libraries. Created script_tags template tags to generate the correct link and script tags for 3rd party libraries. The settings.py file is the only place where the full path name is specified.
author Brian Neal <bgneal@gmail.com>
date Sat, 11 Apr 2009 22:50:56 +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>&nbsp;</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 %}