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_empty_{{item.process.id_}}">make empty</option>
29 <option value="make_full_{{item.process.id_}}">make full</option>
30 {% for adoptable in adoption_candidates_for[item.process.id_] %}
31 <option value="{{adoptable.id_}}">adopt #{{adoptable.id_}}{% if adoptable.comment %} / {{adoptable.comment}}{% endif %}</option>
38 {% for child in item.children %}
39 {{ draw_tree_row(child, item, indent+1) }}
46 <h3>Todo: {{todo.title_then|e}}</h3>
47 <form action="todo?id={{todo.id_}}" method="POST">
49 <table class="edit_table">
52 <td><a href="day?date={{todo.date}}">{{todo.date}}</a></td>
56 <td><a href="process?id={{todo.process.id_}}">{{todo.process.title.newest|e}}</a></td>
60 <td><input type="checkbox" name="done" {% if todo.is_done %}checked {% endif %} {% if not todo.is_doable %}disabled {% endif %}/>
61 {% if not todo.is_doable and todo.is_done %}<input type="hidden" name="done" value="1" />{% endif %}
66 <td><input type="number" name="effort" step=0.1 placeholder={{todo.effort_then}} value={{todo.effort}} /></td>
70 <td><input name="comment" type="text" value="{{todo.comment|e}}"/></td>
74 <td><input type="checkbox" name="calendarize" {% if todo.calendarize %}checked {% endif %}</td>
78 <td>{{ macros.simple_checkbox_table("conditions", todo.conditions, "condition", "condition_candidates") }}</td>
82 <td>{{ macros.simple_checkbox_table("blockers", todo.blockers, "condition", "condition_candidates") }}</td>
86 <td>{{ macros.simple_checkbox_table("enables", todo.enables, "condition", "condition_candidates") }}</td>
90 <td>{{ macros.simple_checkbox_table("disables", todo.disables, "condition", "condition_candidates") }}</td>
95 {% for parent in todo.parents %}
96 <a href="todo?id={{parent.id_}}">{{parent.title_then|e}}</a><br />
103 {% if steps_todo_to_process|length > 0 %}
105 {% for step in steps_todo_to_process %}
106 {{ draw_tree_row(step, todo) }}
110 adopt: <input type="text" name="adopt" list="todo_candidates" autocomplete="off" /><br />
111 make empty: <input type="text" name="make_empty" list="process_candidates" autocomplete="off" /><br />
112 make full: <input type="text" name="make_full" list="process_candidates" autocomplete="off" />
117 {{ macros.edit_buttons() }}
119 {{ macros.datalist_of_titles("condition_candidates", condition_candidates) }}
120 {{ macros.datalist_of_titles("process_candidates", process_candidates) }}
121 {{ macros.datalist_of_titles("todo_candidates", todo_candidates, historical=true, with_comments=true) }}