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">
10 <table class="edit_table">
13 <td><a href="day?date={{todo.date}}">{{todo.date}}</a></td>
17 <td><a href="process?id={{todo.process.id_}}">{{todo.process.title.newest|e}}</a></td>
21 <td><input type="checkbox" name="done" {% if todo.is_done %}checked {% endif %} {% if not todo.is_doable %}disabled {% endif %}/><br /></td>
25 <td><input type="number" name="effort" step=0.1 size=5 placeholder={{todo.effort_then}} value={{todo.effort}} /><br /></td>
29 <td><input name="comment" type="text" value="{{todo.comment|e}}"/></td>
33 <td><input type="checkbox" name="calendarize" {% if todo.calendarize %}checked {% endif %}</td>
37 <td>{{ macros.simple_checkbox_table("condition", todo.conditions, "condition", "condition_candidates") }}</td>
41 <td>{{ macros.simple_checkbox_table("blocker", todo.blockers, "condition", "condition_candidates") }}</td>
45 <td>{{ macros.simple_checkbox_table("enables", todo.enables, "condition", "condition_candidates") }}</td>
49 <td>{{ macros.simple_checkbox_table("disables", todo.disables, "condition", "condition_candidates") }}</td>
54 {% for parent in todo.parents %}
55 <a href="todo?id={{parent.id_}}">{{parent.title_then|e}}</a><br />
61 <td>{{ macros.simple_checkbox_table("adopt", todo.children, "todo", "todo_candidates", "adopt", true) }}<br />
62 make: <input type="text" name="make" list="process_candidates" autocomplete="off" /></td>
66 {{ macros.edit_buttons() }}
68 {{ macros.datalist_of_titles("condition_candidates", condition_candidates) }}
69 {{ macros.datalist_of_titles("process_candidates", process_candidates) }}
70 <datalist id="todo_candidates">
71 {% for candidate in todo_candidates %}
72 <option value="{{candidate.id_}}">{{candidate.title.newest|e}} {{candidate.comment|e}}</option>