X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/task?a=blobdiff_plain;f=templates%2Fprocess.html;h=7bb503eeafd2a68e21987021a7db0a110c4e548b;hb=HEAD;hp=60687d8b96ef3ed9245ccb46671bb346494a6cb9;hpb=3bc56075efe4e4409824c7bd99a55593905e960e;p=plomtask
diff --git a/templates/process.html b/templates/process.html
index 60687d8..a4029dc 100644
--- a/templates/process.html
+++ b/templates/process.html
@@ -17,14 +17,12 @@ details[open] > summary::after {
-{% macro step_with_steps(step_id, step_node, indent) %}
+{% macro step_with_steps(step_node, indent) %}
-
+
{% if step_node.is_explicit %}
-
-
-
+
{% endif %}
@@ -60,8 +58,8 @@ details[open] > summary::after {
{% endif %}
{% if step_node.is_explicit or not step_node.seen %}
-{% for substep_id, substep in step_node.steps.items() %}
-{{ step_with_steps(substep_id, substep, indent+1) }}
+{% for substep in step_node.steps %}
+{{ step_with_steps(substep, indent+1) }}
{% endfor %}
{% endif %}
{% endmacro %}
@@ -97,11 +95,11 @@ edit process of ID {{process.id_}}
conditions
-{{ macros.simple_checkbox_table("condition", process.conditions, "condition", "condition_candidates") }}
+{{ macros.simple_checkbox_table("conditions", process.conditions, "condition", "condition_candidates") }}
blockers
-{{ macros.simple_checkbox_table("blocker", process.blockers, "condition", "condition_candidates") }}
+{{ macros.simple_checkbox_table("blockers", process.blockers, "condition", "condition_candidates") }}
enables
@@ -116,8 +114,8 @@ edit process of ID {{process.id_}}
{% if steps %}
-{% for step_id, step_node in steps.items() %}
-{{ step_with_steps(step_id, step_node, 0) }}
+{% for step_node in steps %}
+{{ step_with_steps(step_node, 0) }}
{% endfor %}
{% endif %}