home · contact · privacy
Improve InputsParser tests.
[plomtask] / templates / calendar.html
1 {% extends '_base.html' %}
2
3
4
5 {% block css %}
6 tr.week_row td {
7   height: 0.3em;
8   background-color: black;
9   padding: 0;
10   margin: 0;
11   border-top: 0.2em solid white;
12 }
13 tr.month_row td {
14   border-top: 0.2em solid white;
15   color: white;
16   background-color: #555555;
17 }
18 table {
19   width: 100%;
20 }
21 tr.day_row td {
22   background-color: #cccccc;
23   border-top: 0.2em solid white;
24 }
25 td.day_name {
26   padding-right: 0.5em;
27 }
28 td.today {
29   font-weight: bold;
30 }
31 {% endblock %}
32
33
34
35 {% block content %}
36 <h3>calendar</h3>
37
38 <p><a href="/calendar_txt">basic view</a></p>
39
40 <form action="calendar" method="GET">
41 from <input name="start" class="date" value="{{start}}" />
42 to <input name="end" class="date" value="{{end}}" />
43 <input type="submit" value="OK" />
44 </form>
45 <table>
46 {% for day in days %}
47
48 {% if day.first_of_month %}
49 <tr class="month_row">
50 <td colspan=2>{{ day.month_name }}</td>
51 </tr>
52 {% endif %}
53
54 {% if day.weekday == "Monday" %}
55 <tr class="week_row">
56 <td colspan=2></td>
57 </tr>
58 {% endif %}
59
60 <tr class="day_row">
61 <td class="day_name {% if day.date == today %}today{% endif %}"><a href="day?date={{day.date}}">{{day.weekday|truncate(2,True,'',0)}} {% if day.date == today %} {% endif %}{{day.date}}</a> {{day.comment|e}}</td>
62 </tr>
63
64 {% for todo in day.calendarized_todos %}
65 <tr>
66 <td>[{% if todo.is_done %}X{% else %} {% endif %}] <a href="todo?id={{todo.id_}}">{{todo.title_then|e}}</a>{% if todo.comment %} · {{todo.comment|e}}{% endif %}</td>
67 </tr>
68 {% endfor %}
69
70 {% endfor %}
71 </table>
72 {% endblock %}