Mercurial > public > sg101
annotate gpp/templates/gcalendar/google_sync.html @ 21:884839ddbfde
Webinks: added a navigation template tag so views don't have to keep constructing the searc form. Also provided a count of search results on the template.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 19 Apr 2009 21:00:06 +0000 |
parents | dbd703f7d63a |
children | 9fb8e804652b |
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> |
gremmie@1 | 12 {% if errors %} |
gremmie@1 | 13 <ul class="errorlist"> |
gremmie@1 | 14 {{ errors|unordered_list }} |
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 %} |