home · contact · privacy
Add basic sorting features to Condition, Process table views.
[plomtask] / templates / conditions.html
index 88d1cc7244a32e91b7265c4f715af6a9161ebbe8..e8e9fed7fcf5a46b3b39b04ca134a54e94d29f05 100644 (file)
@@ -5,8 +5,8 @@
 
 <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>