summaryrefslogtreecommitdiff
path: root/template/tabcalendar.j2
blob: 84b08b6ff10ebe23bba16c300a27afe8aada1e75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<div class="calendar-table">
{%- for month in months %}
<p>{{ month.date.strftime('%B %Y').decode('utf-8') }}</p>
<table class="table table-striped">
<tr>
  <th>Montag</th>
  <th>Dienstag</th>
  <th>Mittwoch</th>
  <th>Donnerstag</th>
  <th>Freitag</th>
  <th>Samstag</th>
  <th>Sonntag</th>
</tr>
{%- for week in month.weeks %}
<tr>
{%- for i in range(week[0].weekday) %}
<td></td>
{%- endfor %}
{%- for day in week %}
<td class="tabcal-cell">
<span class="tabcal-day">{{ day.day }}</span>
{%- for event in day.events %}
<a href="#event-{{ event.id }}">{{ event.name }}</a>
{%- if not loop.last %}
<br/>
{%- endif %}
{%- endfor %}
</td>
{%- endfor %}
</tr>
{%- endfor %}
</table>
{%- endfor %}
</div>
{% set class = 'expanded' %}
{% include 'calendar.j2' %}