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 action="todo" method="POST">
13 <input type="hidden" name="todo_id" value="{{todo.id_}}" />
14 <input type="hidden" name="return_to" value="{{return_to}}" />
16 <tr><th>task</th><td><a href="{{db.prefix}}/task?id={{ todo.task.id_ }}">{{ todo.task.title|e }}</a></td></tr>
17 <tr><th>default effort</th><td>{{ todo.default_effort }}</td></tr>
22 <tr><th>date</th><th>effort</th><th>delete</th>
23 {% for date, effort in todo.efforts.items() %}
25 <td><input name="effort_date" size=10 value="{{date}}"></td>
26 <td><input type="number" name="effort" step=0.1 size=8 value="{{effort}}" placeholder="{{todo.default_effort}}" /></td>
27 <td><input type="checkbox" name="delete_effort" value="{{date}}" />
31 <td><input name="effort_date" size=10 value=""></td>
32 <td><input type="number" name="effort" step=0.1 size=8 value="" placeholder="{{todo.default_effort}}" /></td>
37 <tr><th>importance</th><td class="input"><input type="number" name="importance" step=0.1 size=8 value="{{ todo.importance }}" /></td></tr>
38 <tr><th>comment</th><td class="input"><textarea name="comment">{{todo.comment|e}}</textarea></td></tr>
39 <tr><th>done</th><td class="input"><input type="checkbox" name="done" {% if todo.done %}checked{% endif %}/></td></tr>
42 {% for tag in db.t_tags | sort %}
43 {% if tag in todo.task.tags %} ✓{% else %}<input type="checkbox" name="day_tag_{{tag|e}}"{% if tag in todo.day_tags %} checked{% endif %}/>{% endif %} {{ tag }}<br />
45 add: <input name="joined_day_tags" type="text" value="" >
49 <input type="submit" value="update" />
50 <div style="text-align: right">
51 <input type="submit" name="delete" value="delete" />