comparison gpp/templates/bio/avatar.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 3c48a555298d
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 {% block title %}Change My Avatar{% endblock %} 4 {% block title %}Change My Avatar{% endblock %}
4 {% block content %} 5 {% block content %}
5 <h2>Change My Avatar</h2> 6 <h2>Change My Avatar</h2>
6 <p>This is your current avatar:</p> 7 <p>This is your current avatar:</p>
16 image is square. 17 image is square.
17 </p> 18 </p>
18 <form enctype="multipart/form-data" method="POST" action=".">{% csrf_token %} 19 <form enctype="multipart/form-data" method="POST" action=".">{% csrf_token %}
19 {{ form.as_p }} 20 {{ form.as_p }}
20 <input type="submit" value="Update Avatar" /> 21 <input type="submit" value="Update Avatar" />
21 &nbsp;<a href="{% url bio-me %}">Cancel</a> 22 &nbsp;<a href="{% url 'bio-me' %}">Cancel</a>
22 </form> 23 </form>
23 {% endblock %} 24 {% endblock %}