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 {{ selected_date }}</td>
39 <input name="selected_date" type="hidden" value="{{ selected_date }}" />
45 <input name="title" type="text" value="{{ task.title.now|e }}" size=100 />
47 <summary>history</summary>
49 {% for k,v in task.title.history.items() | sort(attribute='0', reverse=True) %}
50 <li>{{ k }}: {{ v|e }}
60 <textarea name="comment" cols=100 rows=5>{{task.comment|e}}</textarea>
65 <th>default effort</th>
67 <input type="number" name="default_effort" value="{{ task.default_effort.now }}" step=0.1 size=8 required />
69 <summary>history</summary>
71 {% for k,v in task.default_effort.history.items() | sort(attribute='0', reverse=True) %}
72 <li>{{ k }}: {{ v|e }}
82 add: {{ macros.tagselection(submit_name='tag', selected_tags=task.tags.now, all_tags=tags) }}
84 <summary>history</summary>
86 {% for k,v in task.tags.history.items() | sort(attribute='0', reverse=True) %}
87 <li>{{ k }}: {{ v|e }}
94 {% if task.dependers %}
99 {% for parent in task.dependers %}
100 <li><a href="task?id={{parent.id_}}">{{parent.title.now}}</a>
107 <tr class="toplevel">
112 {% for dep in task.deps %}
113 <tr class="lowlevel">
115 <input name="dep" type="checkbox" value="{{dep.id_}}" checked/>
125 {% for s in dep.deps %}
126 {{ task_with_deps(s, 1) }}
135 add: <input name="dep" list="tasks" autocomplete="off" />
138 {{ macros.datalist_tasks(filtered_tasks) }}
141 <tr class="toplevel">
145 {% for dep in task.deps_chain %}
146 <tr class="lowlevel">
147 <td class="number">{{dep.deps_depth}}</td>
148 <td><a href="task?id={{ dep.id_ }}">{{dep.title.now}}</a></td>
157 <input id="update_button" class="update" type="submit" name="update" value="update" />
159 <input class="delete" type="submit" name="delete" value="delete" />