Mercurial > public > sg101
comparison gpp/templates/news/submit_news.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 | 1246a4f1ab4f |
comparison
equal
deleted
inserted
replaced
193:fa7d82bfb100 | 194:6a5549c2efb5 |
---|---|
7 {% endif %} | 7 {% endif %} |
8 {% block submit-class %}class="active"{% endblock %} | 8 {% block submit-class %}class="active"{% endblock %} |
9 {% block news_content %} | 9 {% block news_content %} |
10 <h3>Submit News</h3> | 10 <h3>Submit News</h3> |
11 {% if add_form %} | 11 {% if add_form %} |
12 <form action="." method="post"> | 12 <form action="." method="post">{% csrf_token %} |
13 <table> | 13 <table> |
14 {{ add_form.as_table }} | 14 {{ add_form.as_table }} |
15 <tr><td> </td><td><input type="submit" value="Submit" /> | 15 <tr><td> </td><td><input type="submit" value="Submit" /> |
16 <a href="{% url news-index_page page=1 %}">Cancel</a></td></tr> | 16 <a href="{% url news-index_page page=1 %}">Cancel</a></td></tr> |
17 </table> | 17 </table> |