1 {% extends 'base.html' %}
4 tr.toplevel th { padding-right: 1em; }
5 td.center { text-align: center; }
6 tr.toplevel td, tr.toplevel th { padding-top: 1em; }
7 tr.lowlevel td, tr.lowlevel th { padding-top: 0em; }
13 <form action="todo" method="POST">
14 <input type="hidden" name="todo_id" value="{{todo.id_}}" />
15 <input type="hidden" name="importance" step=0.1 size=8 value="{{ todo.importance }}" />
21 <a href="task?id={{ todo.task.id_ }}">{{ todo.task.title.then|e }}</a>
22 {% if todo.task.comment %}
23 <pre>{{ todo.task.comment|e }}</pre>
33 <input type="checkbox" name="done" {% if todo.done %}checked{% endif %} {% if todo.deps_done == false %}disabled{% endif %}/>
35 (all days: {{todo.all_days_effort}})<br />
36 (dependencies: {{todo.all_days_effort}})
45 {% for date, effort in todo.efforts.items() %}
48 <input name="effort_date" type="hidden" value="{{date}}">{{date}}
51 <input type="number" name="effort" step=0.1 size=8 value="{{effort}}" placeholder="{{todo.default_effort}}" {% if todo.deps and effort %}disabled{% endif %} />
54 {% if not (todo.deps and effort) %}<input type="checkbox" name="delete_effort" value="{{date}}" />{% endif %}
60 <input name="effort_date" size=10 value="">
63 <input type="number" name="effort" step=0.1 size=8 value="" {% if todo.deps %} disabled {% else %} placeholder="{{todo.default_effort}}" {% endif %} />
72 <td class="input" colspan=2>
73 <input name="comment" size=100 value="{{todo.comment|e}}" />
80 new: <input name="tag" value="" size=15 >
81 {% for tag in todo.task.tags.now | sort %}<select disabled><option>{{ tag }}</option></select>{% endfor %}
82 {{ macros.tagselection(submit_name='tag', selected_tags=todo.day_tags, all_tags=tags) }}
87 {% if todo.dependers %}
92 {% for depender in todo.dependers %}
93 <li><a href="todo?id={{depender.id_}}">{{depender.title}}</a>
100 <tr class="toplevel">
101 <th>dependencies</th>
105 <tr class="lowlevel">
106 <th>adopted</th><th>effort</th><th>title</th><th>comments</th>
108 {% for todo in dep_todos %}
109 <tr class="lowlevel">
110 <td class="center"><input name="adopt_dep" type="checkbox" value="{{todo.id_}}" checked/></td>
111 <td class="number">{{ '{:2.1f}'.format(todo.all_days_effort) }} {% if todo.done %}✓{% else %} {% endif %}</td>
112 <td><a href="todo?id={{todo.id_}}">{{todo.day.date}} {{todo.title}}</a></td>
113 <td>{{todo.comment}}</td>
119 make from task:<br />
120 <input name="birth_dep" list="tasks" size=100><br />
121 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 />
122 <input name="adopt_dep" list="todos" size=100>
123 <datalist id="todos">
124 {% 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>
127 <datalist id="tasks">
128 {% for task in filtered_tasks %}<option value="{{task.id_}}">{{task.title.now}}</option>
135 <input id="update_button" class="update" name="update" type="submit" value="update" />
137 <input class="delete" type="submit" name="delete" value="delete" />