comparison gpp/templates/bio/edit_profile.html @ 310:daa2916f5b34

Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author Brian Neal <bgneal@gmail.com>
date Thu, 20 Jan 2011 04:03:48 +0000
parents 6a5549c2efb5
children 88b2b9cb8c1f
comparison
equal deleted inserted replaced
309:8a0bae48b6ca 310:daa2916f5b34
1 {% extends 'bio/base.html' %} 1 {% extends 'bio/base.html' %}
2 {% load url from future %}
2 {% load avatar_tags %} 3 {% load avatar_tags %}
3 {% load elsewhere_tags %} 4 {% load elsewhere_tags %}
4 {% block title %}Edit Profile{% endblock %} 5 {% block title %}Edit Profile{% endblock %}
5 {% block custom_js %} 6 {% block custom_js %}
6 {{ profile_form.media }} 7 {{ profile_form.media }}
7 {% endblock %} 8 {% endblock %}
8 {% block content %} 9 {% block content %}
9 <div class="user_profile"> 10 <div class="user_profile">
10 <h2>Edit Profile for {{ user.username }}</h2> 11 <h2>Edit Profile for {{ user.username }}</h2>
11 <form action="{% url bio-edit_profile %}" method="post">{% csrf_token %} 12 <form action="{% url 'bio-edit_profile' %}" method="post">{% csrf_token %}
12 <table> 13 <table>
13 <tr> 14 <tr>
14 <td> 15 <td>
15 <a href="{% url bio-change_avatar %}"><img src="{{ MEDIA_URL }}icons/image_edit.png" alt="Change Avatar" /></a> 16 <a href="{% url 'bio-change_avatar' %}"><img src="{{ MEDIA_URL }}icons/image_edit.png" alt="Change Avatar" /></a>
16 <a href="{% url bio-change_avatar %}">Change Avatar</a></td> 17 <a href="{% url 'bio-change_avatar' %}">Change Avatar</a></td>
17 <td>{% avatar user %}</td> 18 <td>{% avatar user %}</td>
18 </tr> 19 </tr>
19 {{ user_form.as_table }} 20 {{ user_form.as_table }}
20 {{ profile_form.as_table }} 21 {{ profile_form.as_table }}
21 <tr> 22 <tr>
22 <td> 23 <td>
23 <a href="{% url bio-edit_elsewhere %}"><img src="{{ MEDIA_URL }}icons/link_edit.png" alt="Edit Links" /></a> 24 <a href="{% url 'bio-edit_elsewhere' %}"><img src="{{ MEDIA_URL }}icons/link_edit.png" alt="Edit Links" /></a>
24 <a href="{% url bio-edit_elsewhere %}">Edit Elsewhere Links</a></td> 25 <a href="{% url 'bio-edit_elsewhere' %}">Edit Elsewhere Links</a></td>
25 <td>{% elsewhere_links user %}</td> 26 <td>{% elsewhere_links user %}</td>
26 </tr> 27 </tr>
27 <tr> 28 <tr>
28 <th>Time Zone:</th> 29 <th>Time Zone:</th>
29 <td><select id="id_tz_area"></select> <select id="id_tz_location"></select></td> 30 <td><select id="id_tz_area"></select> <select id="id_tz_location"></select></td>