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.day.date}}">{{todo.day.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.fulfills %}
36 <input type="checkbox" name="fulfills" value="{{condition.id_}}" checked />
39 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
44 add fulfills: <input name="fulfills" list="condition_candidates" autocomplete="off" />
47 {% for condition in todo.undoes%}
50 <input type="checkbox" name="undoes" value="{{condition.id_}}" checked />
53 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
58 add undoes: <input name="undoes" 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><a href="todo?id={{child.id_}}">{{child.process.title.newest|e}}</a>
71 adopt: <input name="adopt" list="todo_candidates" autocomplete="off" />
72 <datalist id="todo_candidates">
73 {% for candidate in todo_candidates %}
74 <option value="{{candidate.id_}}">{{candidate.process.title.newest|e}} ({{candidate.id_}})</option>
77 <input type="submit" value="OK" />