home · contact · privacy
Slightly improve and re-organize Condition tests.
[plomtask] / templates / conditions.html
index 88d1cc7244a32e91b7265c4f715af6a9161ebbe8..aa8fcac840c9dbf432c85b143105b3a338a5cc4b 100644 (file)
@@ -3,10 +3,15 @@
 {% block content %}
 <h3>conditions</h3>
 
-<table>
+<form action="conditions" method="GET">
+<input type="submit" value="filter" />
+<input name="pattern" type="text" value="{{pattern}}" />
+</form>
+
+<table class="alternating">
 <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>