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) }}
8 {% for condition in todo.conditions %}
9 <li>{% for i in range(indent+1) %}+{% endfor %} [{% if condition.is_active %}x{% else %} {% endif %}] <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
14 <h3>{{day.date}} / {{day.weekday}}</h3>
16 <a href="day?date={{day.prev_date}}">prev</a> | <a href="day?date={{day.next_date}}">next</a>
18 <form action="day?date={{day.date}}" method="POST">
19 comment: <input name="comment" value="{{day.comment|e}}" />
20 <input type="submit" value="OK" /><br />
21 add todo: <input name="new_todo" list="processes" autocomplete="off" />
22 <datalist id="processes">
23 {% for process in processes %}
24 <option value="{{process.id_}}">{{process.title.newest|e}}</option>
29 {% for node in conditions_listing %}
30 <li>[{% if node['condition'].is_active %}x{% else %} {% endif %}] <a href="condition?id={{node['condition'].id_}}">{{node['condition'].title.newest|e}}</a>
32 {% for enabler in node['enablers'] %}
33 <li>[+] {{enabler.process.title.newest|e}}</li>
35 {% for disabler in node['disablers'] %}
36 <li>[-] {{disabler.process.title.newest|e}}</li>
43 {% for todo in todos %}
44 {{ todo_with_children(todo, 0) }}