comparison gpp/templates/news/send_story.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
comparison
equal deleted inserted replaced
193:fa7d82bfb100 194:6a5549c2efb5
7 Just fill out the form below and click Send.</p> 7 Just fill out the form below and click Send.</p>
8 <ul> 8 <ul>
9 <li>Your name: {{ user.get_full_name }}</li> 9 <li>Your name: {{ user.get_full_name }}</li>
10 <li>Your email: {{ user.email }}</li> 10 <li>Your email: {{ user.email }}</li>
11 </ul> 11 </ul>
12 <form action="." method="post"> 12 <form action="." method="post">{% csrf_token %}
13 <table> 13 <table>
14 {{ send_form.as_table }} 14 {{ send_form.as_table }}
15 <tr><td>&nbsp;</td><td><input type="submit" value="Send" /> 15 <tr><td>&nbsp;</td><td><input type="submit" value="Send" />
16 &nbsp;<a href="{{ story.get_absolute_url }}">Cancel</a> 16 &nbsp;<a href="{{ story.get_absolute_url }}">Cancel</a>
17 </td></tr> 17 </td></tr>