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="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">
102 <th>fence adoptions</th>
103 <td><input name="fences_adoptions" type="checkbox" {% if task.fences_adoptions.now %}checked{% endif %}/></td>
106 <tr class="toplevel">
109 {% if task.dependers %}
111 {% for depender in task.dependers %}
112 <tr class="lowlevel">
114 <input name="depender" type="checkbox" value="{{depender.id_}}" checked/>
117 {{ draw_task(depender)}}
123 add: <input name="depender" list="tasks" autocomplete="off" />
127 <tr class="toplevel">
132 {% for dep in task.deps %}
133 <tr class="lowlevel">
135 <input name="dep" type="checkbox" value="{{dep.id_}}" checked/>
145 {% for s in dep.deps %}
146 {{ task_with_deps(s, 1) }}
155 add: <input name="dep" list="tasks" autocomplete="off" />
158 {{ macros.datalist_tasks(filtered_tasks) }}
161 <tr class="toplevel">
165 {% for dep in task.deps_chain %}
166 <tr class="lowlevel">
167 <td class="number">{{dep.deps_depth}}</td>
168 <td><a href="task?id={{ dep.id_ }}">{{dep.title.now}}</a></td>
177 <input id="update_button" class="update" type="submit" name="update" value="update" />
179 <input class="update" type="submit" name="fork" value="fork" />
180 <input class="delete" type="submit" name="delete" value="delete" />