view gpp/templates/news/submit_news.html @ 197:2baadae33f2e

Got autocomplete working for the member search. Updated django and ran into a bug where url tags with comma separated kwargs starting consuming tons of CPU throughput. The work-around is to cut over to using spaces between arguments. This is now allowed to be consistent with other tags. Did some query optimization for the news app.
author Brian Neal <bgneal@gmail.com>
date Sat, 10 Apr 2010 04:32:24 +0000
parents 6a5549c2efb5
children 1246a4f1ab4f
line wrap: on
line source
{% extends 'news/base.html' %}
{% 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 page=1 %}">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 %}