1 {% extends 'base.html' %}
3 th, td { vertical-align: top; text-align: left}
4 td.input { width: 100%; }
5 td.checkbox { width: 0.1em; height: 0.1em; padding: 0em; text-align: center; }
6 input[type="number"] { text-align: right; }
7 input[type="text"] { width: 100% }
8 textarea { width: 100% };
11 <form id="form_to_watch" action="task" method="POST">
13 <input type="hidden" name="id" value="{{ task.id_ }}" />
14 <input type="hidden" name="return_to" value="{{ return_to }}" />
16 <tr><th>title</th><td class="input"><input name="title" type="text" value="{{ task.title|e }}" /><details><summary>history</summary><ul>{% for k,v in task.title_history.items() | sort(attribute='0', reverse=True) %}<li>{{ k }}: {{ v|e }}{% endfor %}</ul></details></td></tr>
17 <tr><th></th><td><input type="checkbox" name="as_todo" {% if selected %}checked{% endif%}> selected for {{db.selected_date}}</td></tr>
18 <tr><th>comment</th><td class="input"><textarea name="comment">{{task.comment|e}}</textarea></td></tr>
19 <tr><th>default effort</th><td class="input"><input type="number" name="default_effort" value="{{ task.default_effort }}" step=0.1 size=8 required /><details><summary>history</summary><ul>{% for k,v in task.default_effort_history.items() | sort(attribute='0', reverse=True) %}<li>{{ k }}: {{ v|e }}{% endfor %}</ul></details></td></tr>
22 {% for tag in db.t_tags | sort %}
23 <input type="checkbox" name="tag_{{tag|e}}"{% if tag in task.tags %} checked{% endif %}/> {{ tag }}<br />
25 add: <input name="joined_tags" type="text" value="" ><br />
26 <details><summary>history</summary><ul>{% for k,v in task.tags_history.items() | sort(attribute='0', reverse=True) %}<li>{{ k }}: {{ v|e }}{% endfor %}</ul></details>
31 {% for task in linked_tasks %}
33 <td><input name="link_task" type="checkbox" value="{{task.id_}}" checked/></td>
34 <td><a href="task?id={{task.id_}}">{{task.title}}</a></td>
38 <th colspan=2>---</th>
40 {% for task in filtered_tasks %}
42 <td><input name="link_task" type="checkbox" value="{{task.id_}}"/></td>
43 <td><a href="task?id={{task.id_}}">{{task.title}}</a></td>
50 <input type="submit" value="update" />
52 <form action="task" method="POST">
53 <input type="hidden" name="id" value="{{task.id_}}" />
54 {% include 'tagfilters.html' %}
56 search: <input name="search" value="{{search|e}}" />
57 <input type="submit" name="filter" value="filter" />
59 {% include 'watch_form.html' %}