Mercurial > public > sg101
comparison gpp/templates/gcalendar/edit.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 | f408971657b9 |
children | 88b2b9cb8c1f |
comparison
equal
deleted
inserted
replaced
309:8a0bae48b6ca | 310:daa2916f5b34 |
---|---|
1 {% extends 'base.html' %} | 1 {% extends 'base.html' %} |
2 {% load url from future %} | |
2 {% block title %}Edit Calendar Events{% endblock %} | 3 {% block title %}Edit Calendar Events{% endblock %} |
3 {% block custom_js %} | 4 {% block custom_js %} |
4 <script type="text/javascript" src="{{ MEDIA_URL }}js/gcalendar_edit.js"></script> | 5 <script type="text/javascript" src="{{ MEDIA_URL }}js/gcalendar_edit.js"></script> |
5 {% endblock %} | 6 {% endblock %} |
6 {% block content %} | 7 {% block content %} |
7 <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> |
8 <h2>Edit Calendar Events</h2> | 9 <h2>Edit Calendar Events</h2> |
9 {% if events %} | 10 {% if events %} |
10 <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 |
11 <img src="{{ MEDIA_URL }}icons/cross.png" alt="Cross" /> to delete it. | 12 <img src="{{ MEDIA_URL }}icons/cross.png" alt="Cross" /> to delete it. |
12 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 keep our calendar up to date! | 15 keep our calendar up to date! |
15 </p> | 16 </p> |
16 <ul> | 17 <ul> |
17 {% for event in events %} | 18 {% for event in events %} |
18 <li>{{ event.start_date|date:"M d, Y"}} • | 19 <li>{{ event.start_date|date:"M d, Y"}} • |
19 <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> |
20 <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="{{ MEDIA_URL }}icons/cross.png" alt="Delete Event" title="Delete Event" /></a> |
21 </li> | 22 </li> |
22 {% endfor %} | 23 {% endfor %} |
23 </ul> | 24 </ul> |
24 {% else %} | 25 {% else %} |