Mercurial > public > sg101
comparison gpp/templates/gcalendar/edit.html @ 312:88b2b9cb8c1f
Fixing #142; cut over to the django.contrib.staticfiles app.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 27 Jan 2011 02:56:10 +0000 |
parents | daa2916f5b34 |
children |
comparison
equal
deleted
inserted
replaced
311:b1c39788e511 | 312:88b2b9cb8c1f |
---|---|
1 {% extends 'base.html' %} | 1 {% extends 'base.html' %} |
2 {% load url from future %} | 2 {% load url from future %} |
3 {% block title %}Edit Calendar Events{% endblock %} | 3 {% block title %}Edit Calendar Events{% endblock %} |
4 {% block custom_js %} | 4 {% block custom_js %} |
5 <script type="text/javascript" src="{{ MEDIA_URL }}js/gcalendar_edit.js"></script> | 5 <script type="text/javascript" src="{{ STATIC_URL }}js/gcalendar_edit.js"></script> |
6 {% endblock %} | 6 {% endblock %} |
7 {% block content %} | 7 {% block content %} |
8 <div class="breadcrumbs"><a href="{% url 'gcalendar-index' %}">Calendar</a> » Edit Events</div> | 8 <div class="breadcrumbs"><a href="{% url 'gcalendar-index' %}">Calendar</a> » Edit Events</div> |
9 <h2>Edit Calendar Events</h2> | 9 <h2>Edit Calendar Events</h2> |
10 {% if events %} | 10 {% if events %} |
11 <p>You have the following events on our calendar. Click on the event title to edit it, or click the | 11 <p>You have the following events on our calendar. Click on the event title to edit it, or click the |
12 <img src="{{ MEDIA_URL }}icons/cross.png" alt="Cross" /> to delete it. | 12 <img src="{{ STATIC_URL }}icons/cross.png" alt="Cross" /> to delete it. |
13 Your changes will be submitted to the site staff for approval, and won't be reflected on the Google | 13 Your changes will be submitted to the site staff for approval, and won't be reflected on the Google |
14 calendar until then. The approval process usually takes less than 12 hours. Thanks for helping to | 14 calendar until then. The approval process usually takes less than 12 hours. Thanks for helping to |
15 keep our calendar up to date! | 15 keep our calendar up to date! |
16 </p> | 16 </p> |
17 <ul> | 17 <ul> |
18 {% for event in events %} | 18 {% for event in events %} |
19 <li>{{ event.start_date|date:"M d, Y"}} • | 19 <li>{{ event.start_date|date:"M d, Y"}} • |
20 <a href="{% url 'gcalendar-edit_event' event.id %}" title="Edit Event">{{ event.what }}</a> | 20 <a href="{% url 'gcalendar-edit_event' event.id %}" title="Edit Event">{{ event.what }}</a> |
21 <a class="gcal-del" id="gcal-{{ event.id }}" href="#"><img src="{{ MEDIA_URL }}icons/cross.png" alt="Delete Event" title="Delete Event" /></a> | 21 <a class="gcal-del" id="gcal-{{ event.id }}" href="#"><img src="{{ STATIC_URL }}icons/cross.png" alt="Delete Event" title="Delete Event" /></a> |
22 </li> | 22 </li> |
23 {% endfor %} | 23 {% endfor %} |
24 </ul> | 24 </ul> |
25 {% else %} | 25 {% else %} |
26 <p>You either have no events on our calendar, or all your events have pending changes | 26 <p>You either have no events on our calendar, or all your events have pending changes |