Mercurial > public > sg101
comparison gpp/templates/bio/avatar.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 | 9a8801fa63d5 |
children | daa2916f5b34 |
comparison
equal
deleted
inserted
replaced
193:fa7d82bfb100 | 194:6a5549c2efb5 |
---|---|
13 Your file must be a recognizable graphic file, such as jpeg, gif, png, etc. | 13 Your file must be a recognizable graphic file, such as jpeg, gif, png, etc. |
14 The maximum size of an avatar is 100 x 100 pixels. If your uploaded file is larger than | 14 The maximum size of an avatar is 100 x 100 pixels. If your uploaded file is larger than |
15 this it will be scaled down to 100 x 100 pixels. For best results, please ensure your | 15 this it will be scaled down to 100 x 100 pixels. For best results, please ensure your |
16 image is square. | 16 image is square. |
17 </p> | 17 </p> |
18 <form enctype="multipart/form-data" method="POST" action="."> | 18 <form enctype="multipart/form-data" method="POST" action=".">{% csrf_token %} |
19 {{ form.as_p }} | 19 {{ form.as_p }} |
20 <input type="submit" value="Update Avatar" /> | 20 <input type="submit" value="Update Avatar" /> |
21 <a href="{% url bio-me %}">Cancel</a> | 21 <a href="{% url bio-me %}">Cancel</a> |
22 </form> | 22 </form> |
23 {% endblock %} | 23 {% endblock %} |