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