home · contact · privacy
Refactor remaining test.utils helpers into actual tests.
[plomtask] / templates / processes.html
1 {% extends '_base.html' %}
2
3 {% block content %}
4 <h3>processes</h3>
5
6 <form action="processes" method="GET">
7 <input type="submit" value="filter" />
8 <input name="pattern" type="text" value="{{pattern}}" />
9 </form>
10
11 <table class="alternating">
12 <tr>
13 <th><a href="?sort_by={% if sort_by == "steps" %}-{% endif %}steps">steps</a></th>
14 <th><a href="?sort_by={% if sort_by == "owners" %}-{% endif %}owners">owners</a></th>
15 <th><a href="?sort_by={% if sort_by == "effort" %}-{% endif %}effort">effort</a></th>
16 <th><a href="?sort_by={% if sort_by == "title" %}-{% endif %}title">title</a></th>
17 </tr>
18 {% for process in processes %}
19 <tr>
20 <td class="number">{{ process.explicit_steps|count }}</td>
21 <td class="number">{{ process.n_owners }}</td>
22 <td class="number">{{ process.effort.newest }}</td>
23 <td><a href="process?id={{process.id_}}">{{process.title.newest}}</a></td>
24 </tr>
25 {% endfor %}
26 </table>
27
28 <p>
29 <a href="process">add</a>
30 </p>
31 {% endblock %}