X-Git-Url: https://plomlompom.com/repos//%22https:/validator.w3.org/check?a=blobdiff_plain;f=templates%2Fprocess.html;h=0f0f0c5a49e5bef9db9b9eb558f7d416afedd4fa;hb=b96a5c72c2decc56ca1706e4929e2e58e4b7b156;hp=1743936f2eb3bca793ff70faf1e0edfd898146f2;hpb=8310bdb39e4f3cba5ac90be1ec57b3df633f436b;p=plomtask diff --git a/templates/process.html b/templates/process.html index 1743936..0f0f0c5 100644 --- a/templates/process.html +++ b/templates/process.html @@ -1,11 +1,37 @@ {% extends 'base.html' %} +{% macro process_with_children(node, indent) %} + + + + + +{% for i in range(indent) %}+{%endfor %} +{{node.process.title.newest|e}} + + +{% for child in node.children %} +{{ process_with_children(child, indent+1) }} +{% endfor %} +{% endmacro %} + {% block content %}

Process

title: description: default effort: + +{% for child in children %} +{{ process_with_children(child, 0) }} +{% endfor %} +
+add child: + +{% for candidate in candidates %} + +{% endfor %} +
{% endblock %}