X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/move_up?a=blobdiff_plain;f=templates%2Ftodo.html;h=c2fb01d710d8d9d0081d70e124f3a38d241ec7e3;hb=500958d4d8ec670a3749941572c305e0bb302ca3;hp=a2ef536eaf8230b21be7d3049db878a5a34c7cec;hpb=8542cd471f1aeea1abbe0b237a94f7863fb12dd0;p=plomtask diff --git a/templates/todo.html b/templates/todo.html index a2ef536..c2fb01d 100644 --- a/templates/todo.html +++ b/templates/todo.html @@ -3,61 +3,92 @@ +{% block css %} +select{ font-size: 0.5em; margin: 0; padding: 0; } +{% endblock %} + + + +{% macro draw_tree_row(item, parent_todo, indent=0) %} + + +{% if item.todo %} +{% if not item.process %}+{% else %} {% endif %} 0 %}disabled{% endif %}/> +{% endif %} + + +{% for i in range(indent-1) %}  {%endfor %}{% if indent > 0 %}·{% endif %} +{% if item.todo %} +{{item.todo.title_then|e}} +{% else %} +{{item.process.title.newest|e}} +{% if indent == 0 %} +· fill: +{% endif %} +{% endif %} + + +{% for child in item.children %} +{{ draw_tree_row(child, item, indent+1) }} +{% endfor %} +{% endmacro %} + + + {% block content %}

Todo: {{todo.title_then|e}}

- +
- - - + - - + - - + - - - - - - - - - + + -
day {{todo.date}}
process {{todo.process.title.newest|e}}
done
+{% if not todo.is_doable and todo.is_done %}{% endif %} +
effort
comment
calendarize
conditions {{ macros.simple_checkbox_table("condition", todo.conditions, "condition", "condition_candidates") }}
blockers {{ macros.simple_checkbox_table("blocker", todo.blockers, "condition", "condition_candidates") }}
enables {{ macros.simple_checkbox_table("enables", todo.enables, "condition", "condition_candidates") }}
disables {{ macros.simple_checkbox_table("disables", todo.disables, "condition", "condition_candidates") }}
parents @@ -66,20 +97,26 @@ {% endfor %}
children{{ macros.simple_checkbox_table("adopt", todo.children, "todo", "todo_candidates", "adopt", true) }}descendants +{% if steps_todo_to_process|length > 0 %} + +{% for step in steps_todo_to_process %} +{{ draw_tree_row(step, todo) }} +{% endfor %} +
+{% endif %} +adopt:
+make empty:
+make full: +
+ {{ macros.edit_buttons() }}
- {{ macros.datalist_of_titles("condition_candidates", condition_candidates) }} - -{% for candidate in todo_candidates %} - -{% endfor %} - +{{ macros.datalist_of_titles("process_candidates", process_candidates) }} +{{ macros.datalist_of_titles("todo_candidates", todo_candidates, historical=true, with_comments=true) }} {% endblock %}