<h3>pick todos for day</h3>
<form id="form_to_watch" action="pick_tasks" method="POST">
-{% include 'tagfilters.html' %}
-<br />
-<input name="hide_chosen_tasks" type="checkbox" {% if hide_chosen_tasks %}checked{% endif %} /> hide chosen tasks<br />
-search: <input name="search" value="{{search|e}}" />
-<input type="submit" name="filter" value="filter" />
<p>
<a href="pick_tasks?date={{prev_date}}">prev</a> | {{day.date}} | <a href="pick_tasks?date={{next_date}}">next</a> | {{day.comment}}
<input type="hidden" name="date" value="{{day.date}}" />
<input class="update" id="pick_upper" name="update" type="submit" value="pick" />
<input type="hidden" name="search" value="{{search|e}}" />
-<table class="alternating">
+<table>
+
+<tr>
+<th colspan=5>task quick-add: <input name="choose_task" size=50 list="tasks"></th>
+</tr>
+<datalist id="tasks">
+{% for task in all_tasks %}
+<option value="{{task.id_}}">{{task.title.now}}</option>
+{% endfor %}
+</datalist>
+
<tr>
<th>do</th>
<th {% if sort=='effort' %}class="desc"{% endif %}>
{{todo.all_days_effort}}/{{todo.default_effort}}
</td>
<td>
-<a href="todo?id={{todo.id_}}">{{todo.day.date}} {{todo.task.title.then|e}}</a>
+<a href="todo?id={{todo.id_}}">{{todo.dated_title|e}}</a>
</td>
<td>
{{todo.comment|e}}
<th colspan=4>tasks</th>
</tr>
-{% for task in tasks %}
+{% for task in filtered_tasks %}
<tr>
<td class="checkbox">
<input name="choose_task" type="checkbox" value="{{task.id_}}">
{% endfor %}
</table>
-<input class="update" id="pick_lower" name="update" type="submit" value="pick" />
+<input id="update_button" class="update" id="pick_lower" name="update" type="submit" value="pick" />
+<br />
+{% include 'tagfilters.html' %}
+<br />
+<input name="hide_chosen_tasks" type="checkbox" {% if hide_chosen_tasks %}checked{% endif %} /> hide chosen tasks<br />
+search: <input name="search" value="{{search|e}}" />
+<input id="filter_button" type="submit" name="filter" value="filter" />
</form>
{% include 'watch_form.html' %}