home · contact · privacy
Improve todo accounting.
[misc] / todo_templates / todo.html
index 09aaf452bb260db264624f58b8460113b43695ad..035c9496ddac666e9785c163e1b301e4f097e730 100644 (file)
@@ -45,6 +45,27 @@ textarea { width: 100% };
 add: <input name="joined_day_tags" type="text" value="" >
 </td>
 </tr>
+<tr><th>parent</th><td>{% if todo.parent %}<a href="todo?id={{todo.parent.id_}}">{{todo.parent.title}}</a>{% else %}–{% endif %}</td></tr>
+<tr><th>children</th>
+<td>
+<table>
+{% for todo in linked_todos %}
+<tr>
+<td><input name="link_child" type="checkbox" value="{{todo.id_}}" checked/></td>
+<td><a href="todo?id={{todo.id_}}">{{todo.title}}</a></td>
+</tr>
+{% endfor %}
+<tr>
+<th colspan=2>---</th>
+</tr>
+{% for todo in filtered_todos %}
+<tr>
+<td><input name="link_todo" type="checkbox" value="{{todo.id_}}"/></td>
+<td><a href="todo?id={{todo.id_}}">{{todo.title}}</a></td>
+</tr>
+{% endfor %}
+</table>
+</td>
 </table>
 <input type="submit" value="update" />
 <div style="text-align: right">