X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=templates%2Ftodo.html;h=fea931ab83ddf57536ab375ce3773a3f656204ce;hb=HEAD;hp=05e5b62c8aebfd0224ca3655b40e5dae906e3984;hpb=83c31bdf2a1b2cd1f3beadee482feb91c64759f9;p=plomtask diff --git a/templates/todo.html b/templates/todo.html index 05e5b62..fea931a 100644 --- a/templates/todo.html +++ b/templates/todo.html @@ -3,6 +3,45 @@ +{% 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}}

@@ -18,11 +57,13 @@ done -
+ +{% if not todo.is_doable and todo.is_done %}{% endif %} + effort -
+ comment @@ -34,11 +75,11 @@ conditions -{{ macros.simple_checkbox_table("condition", todo.conditions, "condition", "condition_candidates") }} +{{ macros.simple_checkbox_table("conditions", todo.conditions, "condition", "condition_candidates") }} blockers -{{ macros.simple_checkbox_table("blocker", todo.blockers, "condition", "condition_candidates") }} +{{ macros.simple_checkbox_table("blockers", todo.blockers, "condition", "condition_candidates") }} enables @@ -57,9 +98,19 @@ -children -{{ macros.simple_checkbox_table("adopt", todo.children, "todo", "todo_candidates", "adopt", true) }}
-make: +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: + @@ -67,9 +118,5 @@ make: -{% for candidate in todo_candidates %} - -{% endfor %} - +{{ macros.datalist_of_titles("todo_candidates", todo_candidates, historical=true, with_comments=true) }} {% endblock %}