home · contact · privacy
82a9ca2e487e16517ef127f7a41859aedede051f
[misc] / todo_templates / calendar.html
1 {% extends 'base.html' %}
2 {% block css %}
3 tr td { background-color: white; }
4 tr.week_row td { height: 0.1em; background-color: black; }
5 tr.day_row td { background-color: #cccccc }
6 td.checkbox { width: 0.1em; height: 0.1em; padding: 0em; text-align: center; }
7 {% endblock %}
8 {% block content %}
9 <form action="calendar" method="POST">
10 <p>
11 from: <input name="start" {% if start_date %}value="{{ start_date }}"{% endif %} placeholder="yesterday" />
12 to: <input name="end" {% if end_date %}value="{{ end_date }}"{% endif %} placeholder="2030-12-31" />
13 <input type="submit" value="OK" />
14 </p>
15 <table>
16 {% for date, day in days.items() | sort() %}
17 {% if day.weekday == 'Mo' %}<tr class="week_row"><td colspan=3></td></tr>{% endif %}
18 <tr class="day_row"><td colspan=3><a href="do_tasks?date={{date}}&hide_unchosen=1">{{ day.weekday }} {{ date }}</a> |{{ "%5.1f" |format(day.todos_sum)}}| {{ day.comment|e }}</td></tr>
19 {% for todo in day.linked_todos_as_list %}
20
21 {% if todo.visible %}
22 <tr><td class="checkbox">{% if todo.done and not "cancelled" in todo.tags%}✓{% else %}&nbsp;&nbsp;{% endif %}</td><td><a href="todo?id={{todo.id_}}">{% if "cancelled" in todo.tags %}<s>{% endif %}{% if "deadline" in todo.tags %}DEADLINE: {% endif %}{{ todo.title|e }}{%if "cancelled" in todo.tags%}</s>{% endif %}</a></td><td>{{ todo.comment|e }}</td></tr>
23 {% endif %}
24
25 {% endfor %}
26 {% endfor %}
27 </table>
28 </form>
29 {% endblock %}
30