1 {% extends 'base.html' %}
3 tr.week_row td { height: 0.1em; background-color: black; }
4 tr.day_row td { background-color: #f2f2f2 }
5 td.checkbox { width: 0.1em; height: 0.1em; padding: 0em; text-align: center; }
8 <form action="{{action|e}}" method="POST">
10 from: <input name="start" {% if start_date %}value="{{ start_date }}"{% endif %} placeholder="{{ today }}" />
11 to: <input name="end" {% if end_date %}value="{{ end_date }}"{% endif %} placeholder="2030-12-31" />
12 <input type="submit" value="OK" />
15 {% for date, day in days.items() | sort() %}
16 {% if day.weekday == 'Mo' %}<tr class="week_row"><td colspan=3></td></tr>{% endif %}
17 <tr class="day_row"><td colspan=3><a href="{{db.prefix}}/day?selected_date={{date}}&hide_unchosen=1">{{ day.weekday }} {{ date }}</a> |{{ '%04.1f' % day.todos_sum|round(2) }}| {{ day.comment|e }}</td></tr>
18 {% for task, todo in day.todos.items() | sort(attribute='1.title', reverse=True) %}
20 <tr><td class="checkbox">{% if todo.done %}✓{% else %} {% endif %}</td><td><a href="{{db.prefix}}/todo?task={{ todo.task.id_ }}&date={{ date }}">{%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>