1 {% extends '_base.html' %}
2 {% import '_macros.html' as macros %}
7 <h3>Todo: {{todo.title_then|e}}</h3>
8 <form action="todo?id={{todo.id_}}" method="POST">
13 <td><a href="day?date={{todo.date}}">{{todo.date}}</a></td>
18 <td><a href="process?id={{todo.process.id_}}">{{todo.process.title.newest|e}}</a></td>
23 <td><input type="checkbox" name="done" {% if todo.is_done %}checked {% endif %} {% if not todo.is_doable %}disabled {% endif %}/><br /></td>
28 <td><input type="number" name="effort" step=0.1 size=5 placeholder={{todo.effort_then}} value={{todo.effort}} /><br /></td>
33 <td><input name="comment" value="{{todo.comment|e}}"/></td>
38 <td><input type="checkbox" name="calendarize" {% if todo.calendarize %}checked {% endif %}</td>
43 <td>{{ macros.simple_checkbox_table("condition", todo.conditions, "condition", "condition_candidates") }}</td>
48 <td>{{ macros.simple_checkbox_table("blocker", todo.blockers, "condition", "condition_candidates") }}</td>
53 <td>{{ macros.simple_checkbox_table("enables", todo.enables, "condition", "condition_candidates") }}</td>
58 <td>{{ macros.simple_checkbox_table("disables", todo.disables, "condition", "condition_candidates") }}</td>
64 {% for parent in todo.parents %}
65 <a href="todo?id={{parent.id_}}">{{parent.title_then|e}}</a><br />
72 <td>{{ macros.simple_checkbox_table("adopt", todo.children, "todo", "todo_candidates", "adopt", true) }}<br />
73 make: <input name="make" list="process_candidates" autocomplete="off" /></td>
77 {{ macros.edit_buttons() }}
80 {{ macros.datalist_of_titles("condition_candidates", condition_candidates) }}
81 {{ macros.datalist_of_titles("process_candidates", process_candidates) }}
82 <datalist id="todo_candidates">
83 {% for candidate in todo_candidates %}
84 <option value="{{candidate.id_}}">{{candidate.title.newest|e}} {{candidate.comment|e}}</option>