Mercurial > public > sg101
view gpp/templates/gcalendar/edit.html @ 552:9e42e6618168
For bitbucket issue #2, tweak the admin settings for the Post model to
reduce slow queries. Define our own queryset() method so we can control the
select_related(), and not have it cascade from post to topics to forums to
categories. Removed 'topic' from list_display because MySQL still sucked with
2 inner joins. Now it seems to be tolerable with only one join to User.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 25 Jan 2012 20:07:03 -0600 |
parents | 88b2b9cb8c1f |
children |
line wrap: on
line source
{% extends 'base.html' %} {% load url from future %} {% block title %}Edit Calendar Events{% endblock %} {% block custom_js %} <script type="text/javascript" src="{{ STATIC_URL }}js/gcalendar_edit.js"></script> {% endblock %} {% block content %} <div class="breadcrumbs"><a href="{% url 'gcalendar-index' %}">Calendar</a> » Edit Events</div> <h2>Edit Calendar Events</h2> {% if events %} <p>You have the following events on our calendar. Click on the event title to edit it, or click the <img src="{{ STATIC_URL }}icons/cross.png" alt="Cross" /> to delete it. Your changes will be submitted to the site staff for approval, and won't be reflected on the Google calendar until then. The approval process usually takes less than 12 hours. Thanks for helping to keep our calendar up to date! </p> <ul> {% for event in events %} <li>{{ event.start_date|date:"M d, Y"}} • <a href="{% url 'gcalendar-edit_event' event.id %}" title="Edit Event">{{ event.what }}</a> <a class="gcal-del" id="gcal-{{ event.id }}" href="#"><img src="{{ STATIC_URL }}icons/cross.png" alt="Delete Event" title="Delete Event" /></a> </li> {% endfor %} </ul> {% else %} <p>You either have no events on our calendar, or all your events have pending changes that require admin review.</p> {% endif %} {% endblock %}