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 %}/>
22 {% if not todo.is_doable and todo.is_done %}<input type="hidden" name="done" value="1" />{% endif %}
27 <td><input type="number" name="effort" step=0.1 size=5 placeholder={{todo.effort_then}} value={{todo.effort}} /></td>
31 <td><input name="comment" type="text" value="{{todo.comment|e}}"/></td>
35 <td><input type="checkbox" name="calendarize" {% if todo.calendarize %}checked {% endif %}</td>
39 <td>{{ macros.simple_checkbox_table("condition", todo.conditions, "condition", "condition_candidates") }}</td>
43 <td>{{ macros.simple_checkbox_table("blocker", todo.blockers, "condition", "condition_candidates") }}</td>
47 <td>{{ macros.simple_checkbox_table("enables", todo.enables, "condition", "condition_candidates") }}</td>
51 <td>{{ macros.simple_checkbox_table("disables", todo.disables, "condition", "condition_candidates") }}</td>
56 {% for parent in todo.parents %}
57 <a href="todo?id={{parent.id_}}">{{parent.title_then|e}}</a><br />
63 <td>{{ macros.simple_checkbox_table("adopt", todo.children, "todo", "todo_candidates", "adopt", true) }}<br />
64 make: <input type="text" name="make" list="process_candidates" autocomplete="off" /></td>
68 {{ macros.edit_buttons() }}
70 {{ macros.datalist_of_titles("condition_candidates", condition_candidates) }}
71 {{ macros.datalist_of_titles("process_candidates", process_candidates) }}
72 <datalist id="todo_candidates">
73 {% for candidate in todo_candidates %}
74 <option value="{{candidate.id_}}">{{candidate.title.newest|e}} {{candidate.comment|e}}</option>