comparison gpp/templates/weblinks/add_link.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
1 {% extends 'weblinks/base.html' %} 1 {% extends 'weblinks/base.html' %}
2 {% block title %}Web Links: Add Link{% endblock %} 2 {% block title %}Web Links: Add Link{% endblock %}
3 {% block weblinks_content %} 3 {% block weblinks_content %}
4 <h3>Add Link</h3> 4 <h3>Add Link</h3>
5 {% if add_form %} 5 {% if add_form %}
6 <form action="." method="post"> 6 <form action="." method="post">{% csrf_token %}
7 <table> 7 <table>
8 {{ add_form.as_table }} 8 {{ add_form.as_table }}
9 <tr><td>&nbsp;</td><td><input type="submit" value="Add Link" /> 9 <tr><td>&nbsp;</td><td><input type="submit" value="Add Link" />
10 &nbsp;<a href="{% url weblinks-main %}">Cancel</a> 10 &nbsp;<a href="{% url weblinks-main %}">Cancel</a>
11 </td></tr> 11 </td></tr>