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 />
11 comment: <input name="comment" value="{{todo.comment|e}}"/>
15 {% for condition in todo.conditions %}
18 <input type="checkbox" name="condition" value="{{condition.id_}}" checked />
21 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
26 add condition: <input name="condition" list="condition_candidates" autocomplete="off" />
27 <datalist id="condition_candidates">
28 {% for condition_candidate in condition_candidates %}
29 <option value="{{condition_candidate.id_}}">{{condition_candidate.title.newest|e}}</option>
34 {% for condition in todo.enables %}
37 <input type="checkbox" name="enables" value="{{condition.id_}}" checked />
40 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
45 add enables: <input name="enables" list="condition_candidates" autocomplete="off" />
48 {% for condition in todo.disables%}
51 <input type="checkbox" name="disables" value="{{condition.id_}}" checked />
54 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
59 add disables: <input name="disables" list="condition_candidates" autocomplete="off" />
62 {% for parent in todo.parents %}
63 <li><a href="todo?id={{parent.id_}}">{{parent.process.title.newest|e}}</a>
68 {% for child in todo.children %}
69 <li><input type="checkbox" name="adopt" value="{{child.id_}}" checked />
70 <a href="todo?id={{child.id_}}">{{child.process.title.newest|e}}</a>
73 adopt: <input name="adopt" list="todo_candidates" autocomplete="off" />
74 <datalist id="todo_candidates">
75 {% for candidate in todo_candidates %}
76 <option value="{{candidate.id_}}">{{candidate.process.title.newest|e}} ({{candidate.id_}})</option>
80 <input class="btn-harmless" type="submit" name="update" value="update" />
81 <div class="btn-to-right">
82 <input class="btn-dangerous" type="submit" name="delete" value="delete" />