2018-01-28 23:44:48 +01:00
|
|
|
{% load wagtailcore_tags wagtailroutablepage_tags static %}
|
2017-08-20 00:39:19 +02:00
|
|
|
<table class="calendar">
|
|
|
|
<tbody>
|
2018-01-28 23:44:48 +01:00
|
|
|
<tr>
|
|
|
|
<th><a href="javascript:void(0);" cal-dest="{{ prev_month }}" class="cal-btn"><</a></th>
|
|
|
|
<th colspan="5">{{ this_month|date:"F Y" }}</th>
|
|
|
|
<th><a href="javascript:void(0);" cal-dest="{{ next_month }}" class="cal-btn">></a></th>
|
|
|
|
</tr>
|
2017-08-20 00:39:19 +02:00
|
|
|
<tr><th>L</th><th>M</th><th>M</th><th>J</th><th>V</th><th>S</th><th>D</th></tr>
|
|
|
|
{% for week in weeks %}
|
|
|
|
<tr>
|
|
|
|
{% for day in week %}
|
|
|
|
<td class="{{ day.class }}">
|
2018-01-28 23:44:48 +01:00
|
|
|
{% if day.events %}
|
|
|
|
<a href="javascript:void(0)">{{ day.day }}</a>
|
|
|
|
<ul class="cal-events">
|
|
|
|
<li class="datename">Le {{ day.date|date:"d F Y" }}</li>
|
|
|
|
{% for event in day.events %}
|
|
|
|
<li><a href="{% pageurl event %}">{{ event.title }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% else %}{{ day.day }}{% endif %}
|
2017-08-20 00:39:19 +02:00
|
|
|
</td>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|