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