home · contact · privacy
Improve day done tree display.
[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 <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" />
16 </form>
17
18 <table>
19 <tr>
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 == "title" %}-{% endif %}title">title</a></th>
23 <th><a href="?sort_by={% if sort_by == "comment" %}-{% endif %}comment">comment</a></th>
24 </tr>
25 {% for todo in todos %}
26 <tr>
27 <td>[{% if todo.is_done %}x{% else %} {% endif %}]</td>
28 <td><a href="day?date={{todo.date}}">{{todo.date}}</a></td>
29 <td><a href="todo?id={{todo.id_}}">{{todo.title_then}}</a></td>
30 <td>{{todo.comment}}</td>
31 </tr>
32 {% endfor %}
33 </table>
34 {{ macros.datalist_of_titles("processes", all_processes) }}
35 {% endblock %}
36