1 {% extends 'base.html' %}
3 {% macro node_with_children(node, indent) %}
4 <li>{% for i in range(indent) %}+{% endfor %}
6 {% if not node.item.is_doable %}<del>{% endif %}[{% if node.item.is_done %}x{% else %} {% endif %}]{% if not node.item.is_doable %}</del>{% endif %}
7 {% if node.seen %}({% else %}{% endif %}<a href="todo?id={{node.item.id_}}">{{node.item.process.title.newest|e}}</a>{% if node.seen %}){% else %}{% endif %}
9 < {% if node.seen %}({% else %}{% endif %}<a href="condition?id={{node.item.id_}}">{{node.item.title.newest|e}}</a>{% if node.seen %}){% else %}{% endif %}
11 {% for child in node.children %}
12 {{ node_with_children(child, indent+1) }}
17 <h3>{{day.date}} / {{day.weekday}}</h3>
19 <a href="day?date={{day.prev_date}}">prev</a> | <a href="day?date={{day.next_date}}">next</a>
21 <form action="day?date={{day.date}}" method="POST">
22 comment: <input name="comment" value="{{day.comment|e}}" />
23 <input type="submit" value="OK" /><br />
24 add todo: <input name="new_todo" list="processes" autocomplete="off" />
25 <datalist id="processes">
26 {% for process in processes %}
27 <option value="{{process.id_}}">{{process.title.newest|e}}</option>
32 {% for node in conditions_nodes %}
33 <li>[{% if node.condition.is_active %}x{% else %} {% endif %}] <a href="condition?id={{node.condition.id_}}">{{node.condition.title.newest|e}}</a>
35 {% for enabler in node.enablers %}
36 <li>< {{enabler.process.title.newest|e}}</li>
38 {% for disabler in node.disablers %}
39 <li>! {{disabler.process.title.newest|e}}</li>
46 {% for node in todo_trees %}
47 {{ node_with_children(node, 0) }}