home · contact · privacy
Slightly improve and re-organize Condition tests.
[plomtask] / templates / todos.html
1 {% extends '_base.html' %}
2 {% import '_macros.html' as macros %}
3
4
5
6 {% block content %}
7 <h3>todos</h3>
8
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" />
15 </form>
16
17 <table class="alternating">
18 <tr>
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>
23 </tr>
24 {% for todo in todos %}
25 <tr>
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>
30 </tr>
31 {% endfor %}
32 </table>
33 {{ macros.datalist_of_titles("processes", all_processes) }}
34 {% endblock %}
35