comparison gpp/templates/contact/contact_form.html @ 310:daa2916f5b34

Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author Brian Neal <bgneal@gmail.com>
date Thu, 20 Jan 2011 04:03:48 +0000
parents 6a5549c2efb5
children
comparison
equal deleted inserted replaced
309:8a0bae48b6ca 310:daa2916f5b34
1 {% extends 'base.html' %} 1 {% extends 'base.html' %}
2 {% load url from future %}
2 {% block title %}Contact{% endblock %} 3 {% block title %}Contact{% endblock %}
3 {% block content %} 4 {% block content %}
4 <h2>Contact Us</h2> 5 <h2>Contact Us</h2>
5 <p>Please use the following form to contact the site management. Your feedback and comments are very 6 <p>Please use the following form to contact the site management. Your feedback and comments are very
6 important to us.</p> 7 important to us.</p>
7 <form action="{% url contact.views.contact_form %}" method="post">{% csrf_token %} 8 <form action="{% url 'contact.views.contact_form' %}" method="post">{% csrf_token %}
8 <table> 9 <table>
9 <tr><th>{{ form.name.label }}:</th><td>{{ form.name.errors }}{{ form.name }}</td></tr> 10 <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> 11 <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> 12 <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> 13 <tr style="display:none"><th>{{ form.honeypot.label }}:</th><td>{{ form.honeypot }}</td></tr>