home · contact · privacy
4bf83e3cc783d7c70e738972206f65b77372704d
[misc] / todo_templates / todo.html
1 {% extends 'base.html' %}
2 {% block css %}
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% };
9 {% endblock %}
10 {% block content %}
11 <form action="{{action|e}}" method="POST">
12 <h3>edit todo</h3>
13 <input type="hidden" name="task_uuid" value="{{ todo.task.id_ }}" />
14 <input type="hidden" name="date" value="{{ todo.day.date }}" />
15 <table>
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>
18 <tr><th>day</th><td>{{ todo.day.date }}</td></tr>
19 <tr><th>day effort</th><td class="input"><input type="number" name="day_effort" step=0.1 size=8 value="{{ todo.day_effort }}" /></td></tr>
20 <tr><th>importance</th><td class="input"><input type="number" name="importance" step=0.1 size=8 value="{{ todo.importance }}" /></td></tr>
21 <tr><th>comment</th><td class="input"><textarea name="comment">{{todo.comment|e}}</textarea></td></tr>
22 <tr><th>done</th><td class="input"><input type="checkbox" name="done" {% if todo.done %}checked{% endif %}/></td></tr>
23 <tr><th>day tags</th>
24 <td>
25 {% for tag in db.t_tags | sort %}
26 {% if tag in todo.task.tags %}&nbsp;✓{% else %}<input type="checkbox" name="day_tag_{{tag|e}}"{% if tag in todo.day_tags %} checked{% endif %}/>{% endif %} {{ tag }}<br />
27 {% endfor %}
28 add: <input name="joined_day_tags" type="text" value="" >
29 </td>
30 </tr>
31 </table>
32 <input type="submit" value="update" />
33 </form>
34 {% endblock %}