annotate gpp/templates/gcalendar/edit.html @ 467:b910cc1460c8
Add the ability to conditionally add model instances to the search index on update. This is not perfect, as some instances should be deleted from the index if they are updated such that they should not be in the index anymore. Will think about and address that later.
author |
Brian Neal <bgneal@gmail.com> |
date |
Sun, 24 Jul 2011 18:12:20 +0000 |
parents |
88b2b9cb8c1f |
children |
|
rev |
line source |
gremmie@1
|
1 {% extends 'base.html' %}
|
bgneal@310
|
2 {% load url from future %}
|
gremmie@1
|
3 {% block title %}Edit Calendar Events{% endblock %}
|
gremmie@1
|
4 {% block custom_js %}
|
bgneal@312
|
5 <script type="text/javascript" src="{{ STATIC_URL }}js/gcalendar_edit.js"></script>
|
gremmie@1
|
6 {% endblock %}
|
gremmie@1
|
7 {% block content %}
|
bgneal@310
|
8 <div class="breadcrumbs"><a href="{% url 'gcalendar-index' %}">Calendar</a> » Edit Events</div>
|
gremmie@1
|
9 <h2>Edit Calendar Events</h2>
|
gremmie@1
|
10 {% if events %}
|
gremmie@1
|
11 <p>You have the following events on our calendar. Click on the event title to edit it, or click the
|
bgneal@312
|
12 <img src="{{ STATIC_URL }}icons/cross.png" alt="Cross" /> to delete it.
|
gremmie@1
|
13 Your changes will be submitted to the site staff for approval, and won't be reflected on the Google
|
gremmie@1
|
14 calendar until then. The approval process usually takes less than 12 hours. Thanks for helping to
|
gremmie@1
|
15 keep our calendar up to date!
|
gremmie@1
|
16 </p>
|
gremmie@1
|
17 <ul>
|
gremmie@1
|
18 {% for event in events %}
|
gremmie@1
|
19 <li>{{ event.start_date|date:"M d, Y"}} •
|
bgneal@310
|
20 <a href="{% url 'gcalendar-edit_event' event.id %}" title="Edit Event">{{ event.what }}</a>
|
bgneal@312
|
21 <a class="gcal-del" id="gcal-{{ event.id }}" href="#"><img src="{{ STATIC_URL }}icons/cross.png" alt="Delete Event" title="Delete Event" /></a>
|
gremmie@1
|
22 </li>
|
gremmie@1
|
23 {% endfor %}
|
gremmie@1
|
24 </ul>
|
gremmie@1
|
25 {% else %}
|
gremmie@1
|
26 <p>You either have no events on our calendar, or all your events have pending changes
|
gremmie@1
|
27 that require admin review.</p>
|
gremmie@1
|
28 {% endif %}
|
gremmie@1
|
29 {% endblock %}
|