X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=templates%2Ftodo.html;fp=templates%2Ftodo.html;h=5ffa354e172a83aec7bd016cff07a4917c954200;hb=1ac1d92bba8caeeadf2f853cf15b9158c6024908;hp=f62b0d1e1d3bba3e982533e3466a1eb5a16acb4e;hpb=3bc56075efe4e4409824c7bd99a55593905e960e;p=plomtask diff --git a/templates/todo.html b/templates/todo.html index f62b0d1..5ffa354 100644 --- a/templates/todo.html +++ b/templates/todo.html @@ -3,6 +3,44 @@ +{% 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}}

@@ -59,9 +97,18 @@ -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: + @@ -69,9 +116,5 @@ make: -{% for candidate in todo_candidates %} - -{% endfor %} - +{{ macros.datalist_of_titles("todo_candidates", todo_candidates, historical=true, with_comments=true) }} {% endblock %}