home · contact · privacy
Add text-based search/filter for Conditions and Processes.
[plomtask] / templates / conditions.html
index 88d1cc7244a32e91b7265c4f715af6a9161ebbe8..5990711b059f1dc94fabcdc17c1a35bf25814f94 100644 (file)
@@ -3,10 +3,15 @@
 {% block content %}
 <h3>conditions</h3>
 
+<form action="conditions" method="GET">
+<input type="submit" value="filter" />
+<input name="pattern" value="{{pattern}}" />
+</form>
+
 <table>
 <tr>
-<th>active</th>
-<th>title</th>
+<th><a href="?sort_by={% if sort_by == "is_active" %}-{% endif %}is_active">active</a></th>
+<th><a href="?sort_by={% if sort_by == "title" %}-{% endif %}title">title</a></th>
 </tr>
 {% for condition in conditions %}
 <tr>