Mercurial > public > sg101
comparison gpp/templates/contact/contact_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 | dbd703f7d63a |
children | daa2916f5b34 |
comparison
equal
deleted
inserted
replaced
193:fa7d82bfb100 | 194:6a5549c2efb5 |
---|---|
2 {% block title %}Contact{% endblock %} | 2 {% block title %}Contact{% endblock %} |
3 {% block content %} | 3 {% block content %} |
4 <h2>Contact Us</h2> | 4 <h2>Contact Us</h2> |
5 <p>Please use the following form to contact the site management. Your feedback and comments are very | 5 <p>Please use the following form to contact the site management. Your feedback and comments are very |
6 important to us.</p> | 6 important to us.</p> |
7 <form action="{% url contact.views.contact_form %}" method="post"> | 7 <form action="{% url contact.views.contact_form %}" method="post">{% csrf_token %} |
8 <table> | 8 <table> |
9 <tr><th>{{ form.name.label }}:</th><td>{{ form.name.errors }}{{ form.name }}</td></tr> | 9 <tr><th>{{ form.name.label }}:</th><td>{{ form.name.errors }}{{ form.name }}</td></tr> |
10 <tr><th>{{ form.email.label }}:</th><td>{{ form.email.errors }}{{ form.email }}</td></tr> | 10 <tr><th>{{ form.email.label }}:</th><td>{{ form.email.errors }}{{ form.email }}</td></tr> |
11 <tr><th>{{ form.subject.label }}:</th><td>{{ form.subject.errors }}{{ form.subject }}</td></tr> | 11 <tr><th>{{ form.subject.label }}:</th><td>{{ form.subject.errors }}{{ form.subject }}</td></tr> |
12 <tr style="display:none"><th>{{ form.honeypot.label }}:</th><td>{{ form.honeypot }}</td></tr> | 12 <tr style="display:none"><th>{{ form.honeypot.label }}:</th><td>{{ form.honeypot }}</td></tr> |