home · contact · privacy
b3926da475ac7469608503d831fbfb61dd32a741
[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 weight</th><td>{{ todo.default_weight }}</td></tr>
18 <tr><th>day</th><td>{{ todo.day.date }}</td></tr>
19 <tr><th>day weight</th><td class="input"><input type="number" name="day_weight" step=0.1 size=8 value="{{ todo.day_weight }}" /></td></tr>
20 <tr><th>comment</th><td class="input"><textarea name="comment">{{todo.comment|e}}</textarea></td></tr>
21 <tr><th>done</th><td class="input"><input type="checkbox" name="done" {% if todo.done %}checked{% endif %}/></td></tr>
22 <tr><th>day tags</th>
23 <td>
24 {% for tag in db.t_tags | sort %}
25 {% 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 />
26 {% endfor %}
27 add: <input name="joined_day_tags" type="text" value="" >
28 </td>
29 </tr>
30 </table>
31 <input type="submit" value="update" />
32 </form>
33 {% endblock %}