home · contact · privacy
f6208bbc79d08bdad6301480293d548d89a09923
[plomtask] / templates / calendar.html
1 {% extends '_base.html' %}
2
3
4
5 {% block css %}
6 tr.week_row td {
7   height: 0.1em;
8   background-color: black;
9   padding: 0;
10   margin: 0;
11 }
12 tr.month_row td {
13   border: 0.1em solid black;
14   text-align: center;
15 }
16 td.day_name {
17   padding-right: 0.5em;
18 }
19 {% endblock %}
20
21
22
23 {% block content %}
24 <form action="calendar" method="GET">
25 from <input name="start" value="{{start}}" />
26 to <input name="end" value="{{end}}" />
27 <input type="submit" value="OK" />
28 </form>
29 <table>
30 {% for day in days %}
31
32 {% if day.first_of_month %}
33 <tr class="month_row">
34 <td colspan=3>{{ day.month_name }}</td>
35 </tr>
36 {% endif %}
37
38 {% if day.weekday == "Monday" %}
39 <tr class="week_row">
40 <td colspan=3></td>
41 </tr>
42 {% endif %}
43
44 <tr>
45 <td class="day_name">{{day.weekday|truncate(2,True,'',0)}}</td>
46 <td><a href="day?date={{day.date}}">{{day.date}}</a></td>
47 <td>{{day.comment|e}}</td>
48 </tr>
49
50 {% endfor %}
51 </table>
52 {% endblock %}