1 {% extends 'base.html' %}
4 th.toplevel { padding-right: 1em; }
5 input[type="submit"].delete { background-color: #ff7777; }
6 div.delete { float: right; }
7 td.center { text-align: center; }
13 <form id="form_to_watch" action="todo" method="POST">
14 <input type="hidden" name="todo_id" value="{{todo.id_}}" />
15 <input type="hidden" name="return_to" value="{{return_to}}" />
19 <th class="toplevel">task</th>
20 <td><a href="task?id={{ todo.task.id_ }}">{{ todo.task.title.then|e }}</a></td>
24 <th class="toplevel">default effort</th>
25 <td>{{ todo.default_effort }}</td>
29 <th class="toplevel">efforts</th>
32 <tr><th>date</th><th>effort</th><th>delete</th></tr>
33 {% for date, effort in todo.efforts.items() %}
36 <input name="effort_date" size=10 value="{{date}}" {% if todo.children and effort %}disabled{% endif %}>
39 <input type="number" name="effort" step=0.1 size=8 value="{{effort}}" placeholder="{{todo.default_effort}}" {% if todo.children and effort %}disabled{% endif %} />
42 {% if not (todo.children and effort) %}<input type="checkbox" name="delete_effort" value="{{date}}" />{% endif %}
48 <input name="effort_date" size=10 value="">
51 <input type="number" name="effort" step=0.1 size=8 value="" {% if todo.children %} disabled {% else %} placeholder="{{todo.default_effort}}" {% endif %} />
59 <th class="toplevel">total effort</th>
60 <td>{{todo.all_days_effort}}</td>
64 <th class="toplevel">importance</th>
66 <input type="number" name="importance" step=0.1 size=8 value="{{ todo.importance }}" />
71 <th class="toplevel">comment</th>
73 <textarea name="comment" rows=3 cols=100>{{todo.comment|e}}</textarea>
80 {% if todo.children %}✓{% else %}<input type="checkbox" name="done" {% if todo.done %}checked{% endif %}/>{% endif %}
85 <th class="toplevel">day tags</th>
87 {% for tag in tags | sort %}
88 {% if tag in todo.task.tags.now %}
91 <input type="checkbox" name="day_tag_{{tag|e}}"{% if tag in todo.day_tags %} checked{% endif %}/>
95 add: <input name="joined_day_tags" value="" size=100 >
100 <th class="toplevel">parents</th>
103 {% for parent in todo.parents %}
104 <li><a href="todo?id={{parent.id_}}">{{parent.title}}</a>
111 <th class="toplevel">children</th>
113 <table class="alternating">
115 <th>adopt</th><th>effort</th><th>title</th><th>comments</th>
117 {% for todo in child_todos %}
119 <td class="center"><input name="adopt_child" type="checkbox" value="{{todo.id_}}" checked/></td>
120 <td class="number">{{ '{:2.1f}'.format(todo.all_days_effort) }} {% if todo.done %}✓{% else %} {% endif %}</td>
121 <td><a href="todo?id={{todo.id_}}">{{todo.day.date}} {{todo.title}}</a></td>
125 <th colspan=4>--------</th>
127 {% for todo in filtered_todos %}
129 <td class="center"><input name="adopt_child" type="checkbox" value="{{todo.id_}}" /></td>
130 <td class="number">{{ '{:2.1f}'.format(todo.all_days_effort) }} {% if todo.done %}✓{% else %} {% endif %}</td>
131 <td><a href="todo?id={{todo.id_}}">{{todo.day.date}} {{todo.title}}</a></td>
139 <input class="update" name="update" type="submit" value="update" />
141 <input class="delete" type="submit" name="delete" value="delete" />
145 {% include 'tagfilters.html' %}
147 from: <input name="start" {% if start_date %}value="{{ start_date }}"{% endif %} placeholder="yesterday" />
148 to: <input name="end" {% if end_date %}value="{{ end_date }}"{% endif %} placeholder="2030-12-31" />
149 search: <input name="search" value="{{search|e}}" />
150 <input type="submit" name="filter" value="filter" />
153 {% include 'watch_form.html' %}
155 mere_filter_inputs = mere_filter_inputs.concat(['search', 'start', 'end']);