view sg101/templates/news/submit_news.html @ 1017:21c592cac71c

ManifestStaticFilesStorage: stop using form Media. It's okay for the admin, but not for user facing stuff.
author Brian Neal <bgneal@gmail.com>
date Sun, 06 Dec 2015 14:48:30 -0600
parents 19b86e684cc2
children 5a95815f147c
line wrap: on
line source
{% extends 'news/base.html' %}
{% load script_tags %}
{% load static from staticfiles %}
{% block title %}News: Submit News{% endblock %}
{% if add_form %}
   {% block custom_js %}
      {% script_tags 'jquery-ui markitup' %}
      <script src="{% static "js/jquery.form.min.js" %}"></script>
   {% endblock %}
{% endif %}
{% block submit-class %}class="active"{% endblock %}
{% block news_content %}
<h3>Submit News</h3>
{% if add_form %}
   <p>Here are some guidelines for submitting news items to SG101:</p>
   <ul>
      <li>News items should be significant. Release or show announcements, show
      reports, and music reviews are good examples. Bad examples are wishing
      someone a happy birthday or submitting comments on something you saw on
      TV.</li>
      <li>For-sale or wanted-to-buy ads should go in the forums.</li>
      <li>Please spend some time on your grammar and spelling. Minor issues
      will be corrected by the staff, but major problems may cause a delay in
      publishing or even cause your item to be rejected.</li>
      <li>To add images to your news item, use the forms at the bottom of the
      page.</li>
   </ul>
   <p>Thank you for contributing content to SG101!</p>
   <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>

   {% include 'user_photos/image_forms.html' %}

{% 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 %}