forked from DGNum/gestioCOF
28 lines
1.3 KiB
HTML
28 lines
1.3 KiB
HTML
{% load wagtailcore_tags wagtailroutablepage_tags static %}
|
|
<table class="calendar">
|
|
<tbody>
|
|
<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>
|
|
<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 }}">
|
|
{% 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 %}
|
|
</td>
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|