<h3>edit todo</h3>
<form action="todo" method="POST">
-<input type="hidden" name="todo_id" value="{{todo.id_}}" />
+<input type="hidden" name="id" value="{{todo.id_}}" />
<input type="hidden" name="importance" step=0.1 size=8 value="{{ todo.importance }}" />
<table>
</td>
</tr>
-{% if todo.dependers %}
<tr class="toplevel">
<th>dependers</th>
<td colspan=2>
+{% if todo.dependers %}
<table>
{% for path in todo.shortened_depender_paths %}
<tr>
<td>
+<input name="depender" type="checkbox" value="{{path[-1].id_}}" checked/>
+</td>
+<td>
{% if not path[0] %}[…]<br />{% endif %}
{% for step in path %}
{% if step %}
</tr>
{% endfor %}
</table>
+{% endif %}
+add: <input name="depender" list="todos" autocomplete="off" />
</td>
</tr>
-{% endif %}
<tr class="toplevel">
<th>sub-todos</th>