1 {% extends '_base.html' %}
2 {% import '_macros.html' as macros %}
9 <form action="todos" method="GET">
10 from <input name="start" class="date" value="{{start}}" />
11 to <input name="end" class="date" value="{{end}}" /><br />
12 process <input name="process_id" type="text" value="{{process_id or ''}}" list="processes" /><br />
13 in comment <input name="comment_pattern" type="text" value="{{comment_pattern}}" /><br />
14 <input type="submit" value="filter" />
17 <table class="alternating">
19 <th><a href="?sort_by={% if sort_by == "doneness" %}-{% endif %}doneness">done</a></th>
20 <th><a href="?sort_by={% if sort_by == "date" %}-{% endif %}date">date</a></th>
21 <th><a href="?sort_by={% if sort_by == "title" %}-{% endif %}title">title</a></th>
22 <th><a href="?sort_by={% if sort_by == "comment" %}-{% endif %}comment">comment</a></th>
24 {% for todo in todos %}
26 <td>[{% if todo.is_done %}x{% else %} {% endif %}]</td>
27 <td><a href="day?date={{todo.date}}">{{todo.date}}</a></td>
28 <td><a href="todo?id={{todo.id_}}">{{todo.title_then}}</a></td>
29 <td>{{todo.comment}}</td>
33 {{ macros.datalist_of_titles("processes", all_processes) }}