28 lines
1.3 KiB
HTML
28 lines
1.3 KiB
HTML
{% load wagtailcore_tags wagtailroutablepage_tags static i18n %}
|
|
<table class="calendar">
|
|
<tbody>
|
|
<tr class="head">
|
|
<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>
|
|
<tr>{% blocktrans %}<th>L</th><th>M</th><th>M</th><th>J</th><th>V</th><th>S</th><th>D</th>{% endblocktrans %}</tr>
|
|
{% for week in weeks %}
|
|
<tr>
|
|
{% for day in week %}
|
|
<td class="{{ day.class }}">
|
|
{% if day.events %}
|
|
<a href="javascript:void(0)">{{ day.day }}</a>
|
|
<ul class="cal-events">
|
|
<li class="datename">{% trans "Le " %}{{ day.date|date }}</li>
|
|
{% for event in day.events %}
|
|
<li><a href="{% pageurl event %}">{{ event.title }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}{{ day.day }}{% endif %}
|
|
</td>
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|