{% 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>