Mercurial > public > sg101
comparison gpp/templates/bio/edit_profile.html @ 194:6a5549c2efb5
Implement #62, add support for CSRF protection.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 03 Apr 2010 20:00:56 +0000 |
parents | c0d3b09c9b95 |
children | daa2916f5b34 |
comparison
equal
deleted
inserted
replaced
193:fa7d82bfb100 | 194:6a5549c2efb5 |
---|---|
6 {{ profile_form.media }} | 6 {{ profile_form.media }} |
7 {% endblock %} | 7 {% endblock %} |
8 {% block content %} | 8 {% block content %} |
9 <div class="user_profile"> | 9 <div class="user_profile"> |
10 <h2>Edit Profile for {{ user.username }}</h2> | 10 <h2>Edit Profile for {{ user.username }}</h2> |
11 <form action="{% url bio-edit_profile %}" method="post"> | 11 <form action="{% url bio-edit_profile %}" method="post">{% csrf_token %} |
12 <table> | 12 <table> |
13 <tr> | 13 <tr> |
14 <td> | 14 <td> |
15 <a href="{% url bio-change_avatar %}"><img src="{{ MEDIA_URL }}icons/image_edit.png" alt="Change Avatar" /></a> | 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 %}">Change Avatar</a></td> | 16 <a href="{% url bio-change_avatar %}">Change Avatar</a></td> |