1 {% extends '_base.html' %}
2 {% import '_macros.html' as macros %}
7 select{ font-size: 0.5em; margin: 0; padding: 0; }
12 {% macro draw_tree_row(item, parent_todo, indent=0) %}
16 {% if not item.process %}+{% else %} {% endif %}<input type="checkbox" name="adopt" value="{{item.todo.id_}}" checked {% if indent > 0 %}disabled{% endif %}/>
20 {% for i in range(indent-1) %} {%endfor %}{% if indent > 0 %}·{% endif %}
22 <a href="todo?id={{item.todo.id_}}">{{item.todo.title_then|e}}</a>
24 {{item.process.title.newest|e}}
26 · fill: <select name="fill_for_{{item.id_}}">
27 <option value="ignore">--</option>
28 <option value="make_{{item.process.id_}}">make</option>
29 {% for adoptable in adoption_candidates_for[item.process.id_] %}
30 <option value="{{adoptable.id_}}">adopt #{{adoptable.id_}}{% if adoptable.comment %} / {{adoptable.comment}}{% endif %}</option>
37 {% for child in item.children %}
38 {{ draw_tree_row(child, item, indent+1) }}
45 <h3>Todo: {{todo.title_then|e}}</h3>
46 <form action="todo?id={{todo.id_}}" method="POST">
48 <table class="edit_table">
51 <td><a href="day?date={{todo.date}}">{{todo.date}}</a></td>
55 <td><a href="process?id={{todo.process.id_}}">{{todo.process.title.newest|e}}</a></td>
59 <td><input type="checkbox" name="done" {% if todo.is_done %}checked {% endif %} {% if not todo.is_doable %}disabled {% endif %}/>
60 {% if not todo.is_doable and todo.is_done %}<input type="hidden" name="done" value="1" />{% endif %}
65 <td><input type="number" name="effort" step=0.1 placeholder={{todo.effort_then}} value={{todo.effort}} /></td>
69 <td><input name="comment" type="text" value="{{todo.comment|e}}"/></td>
73 <td><input type="checkbox" name="calendarize" {% if todo.calendarize %}checked {% endif %}</td>
77 <td>{{ macros.simple_checkbox_table("condition", todo.conditions, "condition", "condition_candidates") }}</td>
81 <td>{{ macros.simple_checkbox_table("blocker", todo.blockers, "condition", "condition_candidates") }}</td>
85 <td>{{ macros.simple_checkbox_table("enables", todo.enables, "condition", "condition_candidates") }}</td>
89 <td>{{ macros.simple_checkbox_table("disables", todo.disables, "condition", "condition_candidates") }}</td>
94 {% for parent in todo.parents %}
95 <a href="todo?id={{parent.id_}}">{{parent.title_then|e}}</a><br />
102 {% if steps_todo_to_process|length > 0 %}
104 {% for step in steps_todo_to_process %}
105 {{ draw_tree_row(step, todo) }}
109 adopt: <input type="text" name="adopt" list="todo_candidates" autocomplete="off" /><br />
110 make: <input type="text" name="make" list="process_candidates" autocomplete="off" />
115 {{ macros.edit_buttons() }}
117 {{ macros.datalist_of_titles("condition_candidates", condition_candidates) }}
118 {{ macros.datalist_of_titles("process_candidates", process_candidates) }}
119 {{ macros.datalist_of_titles("todo_candidates", todo_candidates, historical=true, with_comments=true) }}