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