home · contact · privacy
Add foreign key restraints, expand and fix tests, add deletion and forking.
[misc] / todo_templates / todo.html
index 5aaf8a0bd71165ef5b36aeeb50cbe728f44d2f0b..5c6e40b44a96e0641ac229eb4c5be2f771d644c4 100644 (file)
@@ -68,7 +68,7 @@ tr.grey td { background-color: #cccccc; }
 <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>
 
@@ -140,14 +140,17 @@ new: {{ macros.tagselection(submit_name='tag', selected_tags=todo.day_tags, all_
 </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 %}
@@ -157,9 +160,10 @@ new: {{ macros.tagselection(submit_name='tag', selected_tags=todo.day_tags, all_
 </tr>
 {% endfor %}
 </table>
+{% endif %}
+add: <input name="depender" list="todos" autocomplete="off" />
 </td>
 </tr>
-{% endif %}
 
 <tr class="toplevel">
 <th>sub-todos</th>
@@ -223,7 +227,7 @@ new: {{ macros.tagselection(submit_name='tag', selected_tags=todo.day_tags, all_
 <tr class="toplevel">
 <th>free add</th>
 <td colspan=2>
-make from task:<br />
+make from task ({{ macros.parenthood_selector(parenthood) }}):<br />
 <input name="birth_dep" list="tasks" size=100 autocomplete="off"><br />
 adopt:<br />
 <input name="adopt_dep" list="todos" size=100 autocomplete="off">