home · contact · privacy
Improve accounting scripts, start todo.py rewrite.
[misc] / todo_templates / todo.html
index e62a09b8c02547bcfb48dabf7f1b5b73f72163f9..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>