home · contact · privacy
Improve accounting scripts.
[misc] / todo_templates / tasks.html
1 {% extends 'base.html' %}
2
3 {% block css %}
4 table.alternating tr:nth-child(even) {
5     background-color: #cccccc;
6 }
7 table.alternating tr:nth-child(odd) {
8     background-color: #ffffff;
9 }
10 {% endblock %}
11
12 {% block content %}
13 <h3>review tasks</h3>
14
15 <form action="tasks" method="POST">
16 {% include 'tagfilters.html' %}
17 <br />
18 match: <input name="search" value="{{search|e}}" />
19 <input id="filter_button" type="submit" name="filter" value="match" />
20 </form>
21
22 <table class="alternating">
23 <tr>
24 {{ macros.sort_head(sort, "default_effort", "effort") }}
25 {{ macros.sort_head(sort, "weight", "weight") }}
26 {{ macros.sort_head(sort, "title", "task") }}
27 <th>tags</th>
28 </tr>
29 {% for t in tasks %}
30 {% if t.visible %}
31 <tr>
32 <td class="number">
33 {{ '{:5.1f}'.format(t.default_effort.now) }}
34 </td>
35 <td class="number">
36 {{ '{:5.1f}'.format(t.subtask_weight) }}
37 </td>
38 <td>
39 <a href="task?id={{ t.id_ }}" />{{ t.title.now|e }}</a></td>
40 <td>{% for tag in t.tags.now | sort %}<a href="tasks?and_tag={{tag|e}}">{{ tag }}</a> {% endfor %}</td>
41 </tr>
42 {% endif %}
43 {% endfor %}
44 </table>
45
46 {% endblock %}
47