view sg101/templates/gcalendar/edit.html @ 1018:02ae9a4a846a

ManifestStaticFilesStorage: get rid of STATIC_URL in templates.
author Brian Neal <bgneal@gmail.com>
date Sun, 06 Dec 2015 21:49:39 -0600
parents 74e84f5fc948
children 110bbc78a482
line wrap: on
line source
{% extends 'base.html' %}
{% load static from staticfiles %}
{% block title %}Edit Calendar Events{% endblock %}
{% block custom_js %}
<script type="text/javascript" src="{% static "js/gcalendar_edit.js" %}"></script>
{% endblock %}
{% block content %}
<div class="breadcrumbs"><a href="{% url 'gcalendar-index' %}">Calendar</a> &raquo; Edit Events</div>
<h2>Edit Calendar Events</h2>
{% if page.object_list %}
<p>You have the following events on our calendar. Click on the event title to edit it, or click the
<img src="{% static "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 page.object_list %}
<li>{{ event.start_date|date:"M d, Y"}} &bull;
<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 "icons/cross.png" %}" alt="Delete Event" title="Delete Event" /></a>
</li>
{% endfor %}
</ul>
{% include 'core/django_pagination.html' with page_obj=page %}
{% else %}
<p>You either have no events on our calendar, or all your events have pending changes 
that require admin review.</p>
{% endif %}
{% endblock %}