view gpp/templates/news/submit_news.html @ 333:0bf5a5677067

Import from future with_statement for Python 2.5 in import_old_links and podcasts scripts.
author Brian Neal <bgneal@gmail.com>
date Fri, 25 Feb 2011 22:03:08 +0000
parents daa2916f5b34
children
line wrap: on
line source
{% extends 'news/base.html' %}
{% load url from future %}
{% block title %}News: Submit News{% endblock %}
{% if add_form %}
   {% block custom_js %}
      {{ add_form.media }}
   {% endblock %}
{% endif %}
{% block submit-class %}class="active"{% endblock %}
{% block news_content %}
<h3>Submit News</h3>
{% if add_form %}
   <form action="." method="post">{% csrf_token %}
      <table>
         {{ add_form.as_table }}
         <tr><td>&nbsp;</td><td><input type="submit" value="Submit" />
         &nbsp;<a href="{% url 'news-index_page' %}">Cancel</a></td></tr>
      </table>
   </form>
{% else %}
   <p><strong>Thank you for submitting a news item!</strong></p>
   <p>Your news item has been submitted for review to the site staff. Your item may be edited for content,
   grammar, or spelling. If there are any problems or questions, you will receive an email or private message.
   Thank you for contributing to the site!</p>
{% endif %}
<br />
{% endblock %}