1 {% extends 'base.html' %}
4 <h3>Todo: {{todo.process.title.newest|e}}</h3>
5 <form action="todo?id={{todo.id_}}" method="POST">
8 day: <a href="day?date={{todo.date}}">{{todo.date}}</a><br />
9 process: <a href="process?id={{todo.process.id_}}">{{todo.process.title.newest|e}}</a><br />
10 done: <input type="checkbox" name="done" {% if todo.is_done %}checked {% endif %} {% if not todo.is_doable %}disabled {% endif %}/><br />
14 {% for condition in todo.conditions %}
17 <input type="checkbox" name="condition" value="{{condition.id_}}" checked />
20 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
25 add condition: <input name="condition" list="condition_candidates" autocomplete="off" />
26 <datalist id="condition_candidates">
27 {% for condition_candidate in condition_candidates %}
28 <option value="{{condition_candidate.id_}}">{{condition_candidate.title.newest|e}}</option>
33 {% for condition in todo.enables %}
36 <input type="checkbox" name="enables" value="{{condition.id_}}" checked />
39 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
44 add enables: <input name="enables" list="condition_candidates" autocomplete="off" />
47 {% for condition in todo.disables%}
50 <input type="checkbox" name="disables" value="{{condition.id_}}" checked />
53 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
58 add disables: <input name="disables" list="condition_candidates" autocomplete="off" />
61 {% for parent in todo.parents %}
62 <li><a href="todo?id={{parent.id_}}">{{parent.process.title.newest|e}}</a>
67 {% for child in todo.children %}
68 <li><input type="checkbox" name="adopt" value="{{child.id_}}" checked />
69 <a href="todo?id={{child.id_}}">{{child.process.title.newest|e}}</a>
72 adopt: <input name="adopt" list="todo_candidates" autocomplete="off" />
73 <datalist id="todo_candidates">
74 {% for candidate in todo_candidates %}
75 <option value="{{candidate.id_}}">{{candidate.process.title.newest|e}} ({{candidate.id_}})</option>
78 <input type="submit" value="OK" />