home · contact · privacy
Add text-based search/filter for Conditions and Processes.
[plomtask] / templates / conditions.html
1 {% extends '_base.html' %}
2
3 {% block content %}
4 <h3>conditions</h3>
5
6 <form action="conditions" method="GET">
7 <input type="submit" value="filter" />
8 <input name="pattern" value="{{pattern}}" />
9 </form>
10
11 <table>
12 <tr>
13 <th><a href="?sort_by={% if sort_by == "is_active" %}-{% endif %}is_active">active</a></th>
14 <th><a href="?sort_by={% if sort_by == "title" %}-{% endif %}title">title</a></th>
15 </tr>
16 {% for condition in conditions %}
17 <tr>
18 <td>[{% if condition.is_active %}X{% else %} {% endif %}]</td>
19 <td><a href="condition?id={{condition.id_}}">{{condition.title.newest}}</a></td>
20 </tr>
21 {% endfor %}
22 </table>
23
24 <p>
25 <a href="condition">add</a>
26 </p>
27
28 {% endblock %}