<h3>todos</h3>
<form action="todos" method="GET">
+from <input name="start" class="date" value="{{start}}" />
+to <input name="end" class="date" value="{{end}}" /><br />
+process <input name="process_id" type="text" value="{{process_id or ''}}" list="processes" /><br />
+in comment <input name="comment_pattern" type="text" value="{{comment_pattern}}" /><br />
<input type="submit" value="filter" />
-process <input name="process_id" value="{{process_id or ''}}" list="processes" />
-from <input name="start" value="{{start}}" />
-to <input name="end" value="{{end}}" />
-in comment <input name="comment_pattern" value="{{comment_pattern}}" />
-<input type="submit" value="OK" />
</form>
-<table>
+<table class="alternating">
<tr>
<th><a href="?sort_by={% if sort_by == "doneness" %}-{% endif %}doneness">done</a></th>
<th><a href="?sort_by={% if sort_by == "date" %}-{% endif %}date">date</a></th>
{% for todo in todos %}
<tr>
<td>[{% if todo.is_done %}x{% else %} {% endif %}]</td>
-<td><a href="{{todo.date}}">{{todo.date}}</a></td>
+<td><a href="day?date={{todo.date}}">{{todo.date}}</a></td>
<td><a href="todo?id={{todo.id_}}">{{todo.title_then}}</a></td>
-<td><a href="{{todo.comment}}">{{todo.comment}}</a></td>
+<td>{{todo.comment}}</td>
</tr>
{% endfor %}
</table>