Mercurial > public > sg101
annotate gpp/templates/gcalendar/google_sync.html @ 193:fa7d82bfb100
Implement #68: add a denormalized count field to weblinks Category model to reduce database queries.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 03 Apr 2010 02:15:04 +0000 |
parents | 9fb8e804652b |
children | 6a5549c2efb5 |
rev | line source |
---|---|
gremmie@1 | 1 {% extends 'admin/base_site.html' %} |
gremmie@1 | 2 {% block title %}Sync Events w/Google Calendar{% endblock %} |
gremmie@1 | 3 {% block breadcrumbs %} |
gremmie@1 | 4 <div class="breadcrumbs"> |
gremmie@1 | 5 <a href="../../../">Home</a> › |
gremmie@1 | 6 <a href="../../">Gcalendar</a> › |
gremmie@1 | 7 <a href="../">Events</a> › Google Sync |
gremmie@1 | 8 </div> |
gremmie@1 | 9 {% endblock %} |
gremmie@1 | 10 {% block content %} |
gremmie@1 | 11 <h1>Synchronize Approved Events with Google Calendar</h1> |
bgneal@69 | 12 {% if err_msg %} |
gremmie@1 | 13 <ul class="errorlist"> |
bgneal@69 | 14 <li>{{ err_msg }}</li> |
gremmie@1 | 15 </ul> |
gremmie@1 | 16 {% endif %} |
gremmie@1 | 17 {% if events %} |
gremmie@1 | 18 <p>To synchronize the following approved events with the Google calendar, please enter the password for the |
gremmie@1 | 19 account and click submit.</p> |
gremmie@1 | 20 <ol> |
gremmie@1 | 21 {% for event in events %} |
gremmie@1 | 22 {% if not event.on_calendar %} |
gremmie@1 | 23 <li><a href="../../{{ event.id }}">{{ event.start_date|date:"M d, Y" }} - {{ event.what }}</a> |
gremmie@1 | 24 • Submitted by {{ event.user.username }} • <strong>{{ event.get_status_display }}</strong></li> |
gremmie@1 | 25 {% endif %} |
gremmie@1 | 26 {% endfor %} |
gremmie@1 | 27 </ol> |
gremmie@1 | 28 <form action="." method="POST"> |
gremmie@1 | 29 {{ form.as_p }} |
gremmie@1 | 30 <p><input type="submit" name="submit" value="Submit" /></p> |
gremmie@1 | 31 </form> |
gremmie@1 | 32 {% else %} |
gremmie@1 | 33 <p>No events to synchronize at this time.</p> |
gremmie@1 | 34 {% endif %} |
gremmie@1 | 35 {% endblock %} |