Mercurial > public > sg101
comparison gpp/templates/polls/poll_vote.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 | dbd703f7d63a |
children | daa2916f5b34 |
comparison
equal
deleted
inserted
replaced
193:fa7d82bfb100 | 194:6a5549c2efb5 |
---|---|
4 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/polls.css" /> | 4 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/polls.css" /> |
5 {% endblock %} | 5 {% endblock %} |
6 {% block content %} | 6 {% block content %} |
7 <h2>Poll</h2> | 7 <h2>Poll</h2> |
8 <h3>{{ poll.question }}</h3> | 8 <h3>{{ poll.question }}</h3> |
9 <form action="." method="post"> | 9 <form action="." method="post">{% csrf_token %} |
10 <div class="poll-form"> | 10 <div class="poll-form"> |
11 {{ vote_form.as_p }} | 11 {{ vote_form.as_p }} |
12 <input type="submit" value="Vote" /> | 12 <input type="submit" value="Vote" /> |
13 </div> | 13 </div> |
14 </form> | 14 </form> |