annotate gpp/templates/gcalendar/event.html @ 228:d77e0dc772ad

Implement #88; add option to create a new forum thread from a new calendar entry.
author Brian Neal <bgneal@gmail.com>
date Sun, 11 Jul 2010 21:03:41 +0000
parents 6a5549c2efb5
children daa2916f5b34
rev   line source
gremmie@1 1 {% extends 'base.html' %}
bgneal@131 2 {% load core_tags %}
gremmie@1 3 {% block title %}{{ title }}{% endblock %}
gremmie@1 4 {% block custom_js %}
gremmie@1 5 {{ form.media }}
gremmie@1 6 {% endblock %}
gremmie@1 7 {% block content %}
gremmie@1 8 <div class="breadcrumbs"><a href="{% url gcalendar-index %}">Calendar</a> &raquo; {{ title }}</div>
gremmie@1 9 <h2>{{ title }}</h2>
gremmie@1 10 <p>Use this form to add or change an event on our calendar. Please note the following:</p>
gremmie@1 11 <ul>
gremmie@1 12 <li>If applicable, please fill out the <strong>Where</strong> field as completely as you can.
gremmie@1 13 Google will generate a Google map from this information.</li>
gremmie@1 14 <li>Currently, images and smilies won't show up correctly on the Google calendar. If you would
gremmie@1 15 like to include an image, add a link to it instead.</li>
gremmie@1 16 <li>Once submitted, your event will be reviewed by the site staff for approval. Normally it will appear on
gremmie@1 17 the calendar within 24 hours.</li>
gremmie@1 18 </ul>
bgneal@194 19 <form id="id_gcal_event_form" action="." method="post">{% csrf_token %}
gremmie@1 20 <table>
gremmie@1 21 {% if form.non_field_errors %}
gremmie@1 22 <tr><td>&nbsp;</td><td>{{ form.non_field_errors }}</td></tr>
gremmie@1 23 {% endif %}
gremmie@1 24 <tr><th>What:</th><td>{{ form.what.errors }}{{ form.what }}</td></tr>
gremmie@1 25 <tr><th>When:</th><td>
gremmie@1 26 {{ form.start_date.errors }}{{ form.start_date }}
gremmie@1 27 {{ form.start_time.errors }}{{ form.start_time }} to
gremmie@1 28 {{ form.end_date.errors }}{{ form.end_date }}
gremmie@1 29 {{ form.end_time.errors }}{{ form.end_time }}
gremmie@1 30 {{ form.all_day.errors }}{{ form.all_day }} <strong>All Day</strong><br />
gremmie@1 31 <div id="id_tz_stuff">
gremmie@1 32 {{ form.time_zone.errors }}
gremmie@1 33 <strong>Time Zone:</strong> <select id="id_tz_area"></select> <select id="id_tz_location"></select>
gremmie@1 34 {{ form.time_zone }}
gremmie@1 35 </div>
gremmie@1 36 </td></tr>
gremmie@1 37 <tr><th>Where:</th><td>{{ form.where.errors }}{{ form.where }}</td></tr>
gremmie@1 38 <tr><th>Details:</th><td>{{ form.description.errors }}{{ form.description }}</td></tr>
bgneal@228 39 {% if form.create_forum_thread %}
bgneal@228 40 <tr><td>&nbsp;</td><td>{{ form.create_forum_thread }} <strong>Create a forum thread for this event?</strong></td></tr>
bgneal@228 41 {% endif %}
bgneal@131 42 <tr><td>&nbsp;</td><td>{% comment_dialogs %}<input type="submit" name="submit_button" value="Submit" /></td></tr>
gremmie@1 43 </table>
gremmie@1 44 </form>
gremmie@1 45 <p><a href="{% url gcalendar-index %}">&laquo; Back to the Event Calendar</a></p>
gremmie@1 46 {% endblock %}