1 {% extends 'base.html' %}
6 tr.toplevel th { padding-right: 1em; }
7 tr.toplevel td, tr.toplevel th { padding-top: 1em; }
8 tr.lowlevel td, tr.lowlevel th { padding-top: 0em; }
13 {% macro draw_task(task) %}
14 <a href="task?id={{task.id_}}">{{task.title.now}}</a>
19 {% macro task_with_deps(task, indent) %}
20 {% for i in range(indent) %} {% if loop.last %}+{% endif %}{% endfor %}
21 {{ draw_task(task) }}<br />
22 {% for task in task.deps %}
23 {{ task_with_deps(task, indent+1) }}
32 <form action="task" method="POST">
33 <input type="hidden" name="task_id" value="{{ task.id_ }}" />
38 <td><input name="add_as_todo" type="checkbox" /> to <input name="new_todo_date" value="{{ selected_date }}" />
41 {% if task.forks_id %}
44 <td><a href="task?id={{task.forks_id}}">{{ task.forked_task.title.now|e }}</td>
52 <input name="title" type="text" value="{{ task.title.now|e }}" size=100 />
54 <summary>history</summary>
56 {% for k,v in task.title.history.items() | sort(attribute='0', reverse=True) %}
57 <li>{{ k }}: {{ v|e }}
67 <textarea name="comment" cols=100 rows=5>{{task.comment|e}}</textarea>
72 <th>default effort</th>
74 <input type="number" name="default_effort" value="{{ task.default_effort.now }}" step=0.1 size=8 required />
76 <summary>history</summary>
78 {% for k,v in task.default_effort.history.items() | sort(attribute='0', reverse=True) %}
79 <li>{{ k }}: {{ v|e }}
89 add: {{ macros.tagselection(submit_name='tag', selected_tags=task.tags.now, all_tags=tags) }}
91 <summary>history</summary>
93 {% for k,v in task.tags.history.items() | sort(attribute='0', reverse=True) %}
94 <li>{{ k }}: {{ v|e }}
101 <tr class="toplevel">
104 {% if task.dependers %}
106 {% for depender in task.dependers %}
107 <tr class="lowlevel">
109 <input name="depender" type="checkbox" value="{{depender.id_}}" checked/>
112 {{ draw_task(depender)}}
118 add: <input name="depender" list="tasks" autocomplete="off" />
122 <tr class="toplevel">
127 {% for dep in task.deps %}
128 <tr class="lowlevel">
130 <input name="dep" type="checkbox" value="{{dep.id_}}" checked/>
140 {% for s in dep.deps %}
141 {{ task_with_deps(s, 1) }}
150 add: <input name="dep" list="tasks" autocomplete="off" />
153 {{ macros.datalist_tasks(filtered_tasks) }}
156 <tr class="toplevel">
160 {% for dep in task.deps_chain %}
161 <tr class="lowlevel">
162 <td class="number">{{dep.deps_depth}}</td>
163 <td><a href="task?id={{ dep.id_ }}">{{dep.title.now}}</a></td>
172 <input id="update_button" class="update" type="submit" name="update" value="update" />
174 <input class="update" type="submit" name="fork" value="fork" />
175 <input class="delete" type="submit" name="delete" value="delete" />