1 {% extends 'base.html' %}
3 {% macro todo_with_children(todo, indent) %}
4 <li>{% for i in range(indent) %}+{% endfor %} [{% if todo.is_done %}x{% else %} {% endif %}] <a href="todo?id={{todo.id_}}">{{todo.process.title.newest|e}}</a>
5 {% for child in todo.children %}
6 {{ todo_with_children(child, indent+1) }}
11 <h3>{{day.date}} / {{day.weekday}}</h3>
13 <a href="day?date={{day.prev_date}}">prev</a> | <a href="day?date={{day.next_date}}">next</a>
15 <form action="day?date={{day.date}}" method="POST">
16 comment: <input name="comment" value="{{day.comment|e}}" />
17 <input type="submit" value="OK" /><br />
18 add todo: <input name="new_todo" list="processes" autocomplete="off" />
19 <datalist id="processes">
20 {% for process in processes %}
21 <option value="{{process.id_}}">{{process.title.newest|e}}</option>
26 {% for todo in todos %}
27 {{ todo_with_children(todo, 0) }}