<tr class="toplevel">
<th>work</th>
<td>
-{% if todo.children %}
-[{% if todo.done %}✓{% else %} {% endif %}]
-{% else %}
-<input type="checkbox" name="done" {% if todo.done %}checked{% endif %}/>
-{% endif %}
+<input type="checkbox" name="done" {% if todo.done %}checked{% endif %} {% if todo.deps_done == false %}disabled{% endif %}/>
done<br />
-(sum: {{todo.all_days_effort}})
+(all days: {{todo.all_days_effort}})<br />
+(dependencies: {{todo.all_days_effort}})
</td>
<td>
<table>
<input name="effort_date" type="hidden" value="{{date}}">{{date}}
</td>
<td>
-<input type="number" name="effort" step=0.1 size=8 value="{{effort}}" placeholder="{{todo.default_effort}}" {% if todo.children and effort %}disabled{% endif %} />
+<input type="number" name="effort" step=0.1 size=8 value="{{effort}}" placeholder="{{todo.default_effort}}" {% if todo.deps and effort %}disabled{% endif %} />
</td>
<td>
-{% if not (todo.children and effort) %}<input type="checkbox" name="delete_effort" value="{{date}}" />{% endif %}
+{% if not (todo.deps and effort) %}<input type="checkbox" name="delete_effort" value="{{date}}" />{% endif %}
</td>
</tr>
{% endfor %}
<input name="effort_date" size=10 value="">
</td>
<td>
-<input type="number" name="effort" step=0.1 size=8 value="" {% if todo.children %} disabled {% else %} placeholder="{{todo.default_effort}}" {% endif %} />
+<input type="number" name="effort" step=0.1 size=8 value="" {% if todo.deps %} disabled {% else %} placeholder="{{todo.default_effort}}" {% endif %} />
</td>
</tr>
</table>
</td>
</tr>
-{% if todo.parents %}
+{% if todo.dependers %}
<tr class="toplevel">
-<th>parents</th>
+<th>dependers</th>
<td colspan=2>
<ul>
-{% for parent in todo.parents %}
-<li><a href="todo?id={{parent.id_}}">{{parent.title}}</a>
+{% for depender in todo.dependers %}
+<li><a href="todo?id={{depender.id_}}">{{depender.title}}</a>
{% endfor %}
</ul>
</td>
{% endif %}
<tr class="toplevel">
-<th>children</th>
+<th>dependencies</th>
<td colspan=2>
-{% if todo.children %}
+{% if todo.deps %}
<table>
<tr class="lowlevel">
<th>adopted</th><th>effort</th><th>title</th><th>comments</th>
</tr>
-{% for todo in child_todos %}
+{% for todo in dep_todos %}
<tr class="lowlevel">
-<td class="center"><input name="adopt_child" type="checkbox" value="{{todo.id_}}" checked/></td>
+<td class="center"><input name="adopt_dep" type="checkbox" value="{{todo.id_}}" checked/></td>
<td class="number">{{ '{:2.1f}'.format(todo.all_days_effort) }} {% if todo.done %}✓{% else %} {% endif %}</td>
<td><a href="todo?id={{todo.id_}}">{{todo.day.date}} {{todo.title}}</a></td>
<td>{{todo.comment}}</td>
{% endif %}
<br />
make from task:<br />
-<input name="birth_child" list="tasks" size=100><br />
+<input name="birth_dep" list="tasks" size=100><br />
adopt (from <input name="start" {% if start_date %}value="{{ start_date }}"{% endif %} placeholder="yesterday" /> to <input name="end" {% if end_date %}value="{{ end_date }}"{% endif %} placeholder="2030-12-31" />):<br />
-<input name="adopt_child" list="todos" size=100>
+<input name="adopt_dep" list="todos" size=100>
<datalist id="todos">
-{% for todo in filtered_todos %}<option value="{{todo.id_}}">{{ '{:2.1f}'.format(todo.all_days_effort) }} {% if todo.done %}✓{% else %} {% endif %} {{todo.day.date}} {{todo.title}}</option>
+{% for todo in filtered_todos %}<option value="{{todo.id_}}">{{ '{:2.1f}'.format(todo.all_days_effort) }} {% if todo.done %}✓{% else %} {% endif %} {{todo.day.date}} {{todo.title}} {{todo.comment}}</option>
{% endfor %}
</datalist>
<datalist id="tasks">