annotate gpp/templates/gcalendar/edit.html @ 11:cc8eb028def1

Update jquery-ui and theme version that is hosted on google. In preparation for having jquery on every page (?), make it so that the autocomplete plug is using the 'global' jquery, and not the one that came with it. It seems to work okay with jquery 1.3.2.
author Brian Neal <bgneal@gmail.com>
date Tue, 14 Apr 2009 02:35:35 +0000
parents b6263ac72052
children f408971657b9
rev   line source
gremmie@1 1 {% extends 'base.html' %}
bgneal@6 2 {% load script_tags %}
gremmie@1 3 {% block title %}Edit Calendar Events{% endblock %}
gremmie@1 4 {% block custom_js %}
bgneal@6 5 {% script_tags "jquery" %}
gremmie@1 6 <script type="text/javascript" src="{{ MEDIA_URL }}js/gcalendar_edit.js"></script>
gremmie@1 7 {% endblock %}
gremmie@1 8 {% block content %}
gremmie@1 9 <div class="breadcrumbs"><a href="{% url gcalendar-index %}">Calendar</a> &raquo; Edit Events</div>
gremmie@1 10 <h2>Edit Calendar Events</h2>
gremmie@1 11 {% if events %}
gremmie@1 12 <p>You have the following events on our calendar. Click on the event title to edit it, or click the
gremmie@1 13 <img src="{{ MEDIA_URL }}icons/cross.png" alt="Cross" /> to delete it.
gremmie@1 14 Your changes will be submitted to the site staff for approval, and won't be reflected on the Google
gremmie@1 15 calendar until then. The approval process usually takes less than 12 hours. Thanks for helping to
gremmie@1 16 keep our calendar up to date!
gremmie@1 17 </p>
gremmie@1 18 <ul>
gremmie@1 19 {% for event in events %}
gremmie@1 20 <li>{{ event.start_date|date:"M d, Y"}} &bull;
gremmie@1 21 <a href="{% url gcalendar-edit_event event.id %}" title="Edit Event">{{ event.what }}</a>
gremmie@1 22 <a class="gcal-del" id="gcal-{{ event.id }}" href="#"><img src="{{ MEDIA_URL }}icons/cross.png" alt="Delete Event" title="Delete Event" /></a>
gremmie@1 23 </li>
gremmie@1 24 {% endfor %}
gremmie@1 25 </ul>
gremmie@1 26 {% else %}
gremmie@1 27 <p>You either have no events on our calendar, or all your events have pending changes
gremmie@1 28 that require admin review.</p>
gremmie@1 29 {% endif %}
gremmie@1 30 {% endblock %}