1 {% extends 'base.html' %}
6 <h3>Todo: {{todo.process.title.newest|e}}</h3>
7 <form action="todo?id={{todo.id_}}" method="POST">
10 day: <a href="day?date={{todo.date}}">{{todo.date}}</a><br />
11 process: <a href="process?id={{todo.process.id_}}">{{todo.process.title.newest|e}}</a><br />
12 done: <input type="checkbox" name="done" {% if todo.is_done %}checked {% endif %} {% if not todo.is_doable %}disabled {% endif %}/><br />
13 comment: <input name="comment" value="{{todo.comment|e}}"/>
17 {% for condition in todo.conditions %}
20 <input type="checkbox" name="condition" value="{{condition.id_}}" checked />
23 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
28 add condition: <input name="condition" list="condition_candidates" autocomplete="off" />
29 <datalist id="condition_candidates">
30 {% for condition_candidate in condition_candidates %}
31 <option value="{{condition_candidate.id_}}">{{condition_candidate.title.newest|e}}</option>
36 {% for condition in todo.enables %}
39 <input type="checkbox" name="enables" value="{{condition.id_}}" checked />
42 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
47 add enables: <input name="enables" list="condition_candidates" autocomplete="off" />
50 {% for condition in todo.disables%}
53 <input type="checkbox" name="disables" value="{{condition.id_}}" checked />
56 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
61 add disables: <input name="disables" list="condition_candidates" autocomplete="off" />
64 {% for parent in todo.parents %}
65 <li><a href="todo?id={{parent.id_}}">{{parent.process.title.newest|e}}</a>
70 {% for child in todo.children %}
71 <li><input type="checkbox" name="adopt" value="{{child.id_}}" checked />
72 <a href="todo?id={{child.id_}}">{{child.process.title.newest|e}}</a>
75 adopt: <input name="adopt" list="todo_candidates" autocomplete="off" />
76 <datalist id="todo_candidates">
77 {% for candidate in todo_candidates %}
78 <option value="{{candidate.id_}}">{{candidate.process.title.newest|e}} ({{candidate.id_}})</option>
82 <input class="btn-harmless" type="submit" name="update" value="update" />
83 <div class="btn-to-right">
84 <input class="btn-dangerous" type="submit" name="delete" value="delete" />