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) %} {% endfor %} <[{% if condition.is_active %}x{% else %} {% endif %}] <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
13 {% macro node_with_children(node, indent) %}
14 <li>{% for i in range(indent) %}+{% endfor %}
16 {% if not node.item.is_doable %}<del>{% endif %}[{% if node.item.is_done %}x{% else %} {% endif %}]{% if not node.item.is_doable %}</del>{% endif %}
17 {% if node.seen %}({% else %}{% endif %}<a href="todo?id={{node.item.id_}}">{{node.item.process.title.newest|e}}</a>{% if node.seen %}){% else %}{% endif %}
19 < {% if node.seen %}({% else %}{% endif %}<a href="condition?id={{node.item.id_}}">{{node.item.title.newest|e}}</a>{% if node.seen %}){% else %}{% endif %}
21 {% for child in node.children %}
22 {{ node_with_children(child, indent+1) }}
27 <h3>{{day.date}} / {{day.weekday}}</h3>
29 <a href="day?date={{day.prev_date}}">prev</a> | <a href="day?date={{day.next_date}}">next</a>
31 <form action="day?date={{day.date}}" method="POST">
32 comment: <input name="comment" value="{{day.comment|e}}" />
33 <input type="submit" value="OK" /><br />
34 add todo: <input name="new_todo" list="processes" autocomplete="off" />
35 <datalist id="processes">
36 {% for process in processes %}
37 <option value="{{process.id_}}">{{process.title.newest|e}}</option>
42 {% for node in conditions_nodes %}
43 <li>[{% if node.condition.is_active %}x{% else %} {% endif %}] <a href="condition?id={{node.condition.id_}}">{{node.condition.title.newest|e}}</a>
45 {% for enabler in node.enablers %}
46 <li>< {{enabler.process.title.newest|e}}</li>
48 {% for disabler in node.disablers %}
49 <li>! {{disabler.process.title.newest|e}}</li>
56 {% for node in todo_trees %}
57 {{ node_with_children(node, 0) }}