annotate gpp/templates/gcalendar/edit.html @ 6:b6263ac72052

Use DRY principle to manage third party javascript libraries. Created script_tags template tags to generate the correct link and script tags for 3rd party libraries. The settings.py file is the only place where the full path name is specified.
author Brian Neal <bgneal@gmail.com>
date Sat, 11 Apr 2009 22:50:56 +0000
parents dbd703f7d63a
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 %}