comparison gpp/templates/comments/comment_form.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 b8474ffe76d9
children daa2916f5b34
comparison
equal deleted inserted replaced
193:fa7d82bfb100 194:6a5549c2efb5
1 {% load core_tags %} 1 {% load core_tags %}
2 {% if user.is_authenticated %} 2 {% if user.is_authenticated %}
3 <form action="{% url comments-post %}" method="post" id="comment-form"> 3 <form action="{% url comments-post %}" method="post" id="comment-form">{% csrf_token %}
4 {{ form.as_p }} 4 {{ form.as_p }}
5 {% comment_dialogs %} 5 {% comment_dialogs %}
6 <input type="submit" name="post" value="Post Comment" id="comment-form-post"/> 6 <input type="submit" name="post" value="Post Comment" id="comment-form-post"/>
7 </form> 7 </form>
8 {% else %} 8 {% else %}