comparison gpp/templates/news/submit_news.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 1246a4f1ab4f
children
comparison
equal deleted inserted replaced
309:8a0bae48b6ca 310:daa2916f5b34
1 {% extends 'news/base.html' %} 1 {% extends 'news/base.html' %}
2 {% load url from future %}
2 {% block title %}News: Submit News{% endblock %} 3 {% block title %}News: Submit News{% endblock %}
3 {% if add_form %} 4 {% if add_form %}
4 {% block custom_js %} 5 {% block custom_js %}
5 {{ add_form.media }} 6 {{ add_form.media }}
6 {% endblock %} 7 {% endblock %}
11 {% if add_form %} 12 {% if add_form %}
12 <form action="." method="post">{% csrf_token %} 13 <form action="." method="post">{% csrf_token %}
13 <table> 14 <table>
14 {{ add_form.as_table }} 15 {{ add_form.as_table }}
15 <tr><td>&nbsp;</td><td><input type="submit" value="Submit" /> 16 <tr><td>&nbsp;</td><td><input type="submit" value="Submit" />
16 &nbsp;<a href="{% url news-index_page %}">Cancel</a></td></tr> 17 &nbsp;<a href="{% url 'news-index_page' %}">Cancel</a></td></tr>
17 </table> 18 </table>
18 </form> 19 </form>
19 {% else %} 20 {% else %}
20 <p><strong>Thank you for submitting a news item!</strong></p> 21 <p><strong>Thank you for submitting a news item!</strong></p>
21 <p>Your news item has been submitted for review to the site staff. Your item may be edited for content, 22 <p>Your news item has been submitted for review to the site staff. Your item may be edited for content,