home · contact · privacy
Template layout and code improvements.
[plomtask] / templates / todos.html
index 6cbf0bc5872917852bc95095a0383075ae3dc548..ac5240ac3488dd333154991d5ebdc93361bcb1eb 100644 (file)
@@ -7,27 +7,26 @@
 <h3>todos</h3>
 
 <form action="todos" method="GET">
+from <input name="start" class="date" value="{{start}}" />
+to <input name="end" class="date" value="{{end}}" /><br />
+process <input name="process_id" type="text" value="{{process_id or ''}}" list="processes" /><br />
+in comment  <input name="comment_pattern" type="text" value="{{comment_pattern}}" /><br />
 <input type="submit" value="filter" />
-process <input name="process_id" value="{{process_id or ''}}" list="processes" />
-from <input name="start" value="{{start}}" />
-to <input name="end" value="{{end}}" />
-in comment  <input name="comment_pattern" value="{{comment_pattern}}" />
-<input type="submit" value="OK" />
 </form>
 
-<table>
+<table class="alternating">
 <tr>
 <th><a href="?sort_by={% if sort_by == "doneness" %}-{% endif %}doneness">done</a></th>
 <th><a href="?sort_by={% if sort_by == "date" %}-{% endif %}date">date</a></th>
-<th><a href="?sort_by={% if sort_by == "process" %}-{% endif %}process">process</a></th>
+<th><a href="?sort_by={% if sort_by == "title" %}-{% endif %}title">title</a></th>
 <th><a href="?sort_by={% if sort_by == "comment" %}-{% endif %}comment">comment</a></th>
 </tr>
 {% for todo in todos %}
 <tr>
 <td>[{% if todo.is_done %}x{% else %} {% endif %}]</td>
-<td><a href="{{todo.date}}">{{todo.date}}</a></td>
-<td><a href="process?id={{todo.process.id_}}">{{todo.title_then}}</a></td>
-<td><a href="{{todo.comment}}">{{todo.comment}}</a></td>
+<td><a href="day?date={{todo.date}}">{{todo.date}}</a></td>
+<td><a href="todo?id={{todo.id_}}">{{todo.title_then}}</a></td>
+<td>{{todo.comment}}</td>
 </tr>
 {% endfor %}
 </table>