comparison gpp/templates/gcalendar/google_sync.html @ 458:9a4bffdf37c3

Finishing up #220. Updated to GData v2.0 and using the new OAuth access token.
author Brian Neal <bgneal@gmail.com>
date Sat, 02 Jul 2011 03:52:43 +0000
parents 6a5549c2efb5
children bba1782992eb
comparison
equal deleted inserted replaced
457:7b7332037396 458:9a4bffdf37c3
1 {% extends 'admin/base_site.html' %} 1 {% extends 'admin/base_site.html' %}
2 {% load url from future %}
3 {% load core_tags %}
2 {% block title %}Sync Events w/Google Calendar{% endblock %} 4 {% block title %}Sync Events w/Google Calendar{% endblock %}
3 {% block breadcrumbs %} 5 {% block breadcrumbs %}
4 <div class="breadcrumbs"> 6 <div class="breadcrumbs">
5 <a href="../../../">Home</a> &rsaquo; 7 <a href="../../../">Home</a> &rsaquo;
6 <a href="../../">Gcalendar</a> &rsaquo; 8 <a href="../../">Gcalendar</a> &rsaquo;
12 {% if err_msg %} 14 {% if err_msg %}
13 <ul class="errorlist"> 15 <ul class="errorlist">
14 <li>{{ err_msg }}</li> 16 <li>{{ err_msg }}</li>
15 </ul> 17 </ul>
16 {% endif %} 18 {% endif %}
19
20 <p>Access token status: {% bool_icon access_token %} &mdash; <a href="{% url 'admin:gcalendar-fetch_auth' %}">Request new access token</a></p>
21
17 {% if events %} 22 {% if events %}
18 <p>To synchronize the following approved events with the Google calendar, please enter the password for the 23 <p>The following pending events have been approved and are ready to be synchronized with the Google calendar.</p>
19 account and click submit.</p>
20 <ol> 24 <ol>
21 {% for event in events %} 25 {% for event in events %}
22 {% if not event.on_calendar %} 26 {% if not event.on_calendar %}
23 <li><a href="../../{{ event.id }}">{{ event.start_date|date:"M d, Y" }} - {{ event.what }}</a> 27 <li><a href="../../{{ event.id }}">{{ event.start_date|date:"M d, Y" }} - {{ event.what }}</a>
24 &bull; Submitted by {{ event.user.username }} &bull; <strong>{{ event.get_status_display }}</strong></li> 28 &bull; Submitted by {{ event.user.username }} &bull; <strong>{{ event.get_status_display }}</strong></li>
25 {% endif %} 29 {% endif %}
26 {% endfor %} 30 {% endfor %}
27 </ol> 31 </ol>
32
33 {% if access_token %}
28 <form action="." method="POST">{% csrf_token %} 34 <form action="." method="POST">{% csrf_token %}
29 {{ form.as_p }} 35 <p><input type="submit" name="synchronize" value="Synchronize Events" /></p>
30 <p><input type="submit" name="submit" value="Submit" /></p>
31 </form> 36 </form>
37 {% endif %}
32 {% else %} 38 {% else %}
33 <p>No events to synchronize at this time.</p> 39 <p>No events to synchronize at this time.</p>
34 {% endif %} 40 {% endif %}
35 {% endblock %} 41 {% endblock %}