X-Git-Url: https://plomlompom.com/repos/condition_titles?a=blobdiff_plain;f=templates%2Fprocess.html;h=200c6ea99ebe61bcf51cbee44d98a138ae576ac9;hb=48ed70167c50303f46309c5808f93f2ba169b34f;hp=8731f4b7b12646fb9a4cc44e4726ff543f91ba8a;hpb=b3ff25deb388919c9a205ceb1997ff3c42e93bc8;p=plomtask
diff --git a/templates/process.html b/templates/process.html
index 8731f4b..200c6ea 100644
--- a/templates/process.html
+++ b/templates/process.html
@@ -1,6 +1,9 @@
-{% extends 'base.html' %}
+{% extends '_base.html' %}
+{% import '_macros.html' as macros %}
-{% macro process_with_steps(step_id, step_node, indent) %}
+
+
+{% macro step_with_steps(step_id, step_node, indent) %}
@@ -11,52 +14,108 @@
{% endif %}
{% for i in range(indent) %}+{%endfor %}
-{% if (not step_node.is_explicit) and step_node.seen %}
+{% if step_node.is_suppressed %}{% endif %}
+{% if step_node.seen %}
({{step_node.process.title.newest|e}})
{% else %}
{{step_node.process.title.newest|e}}
{% endif %}
+{% if step_node.is_suppressed %}{% endif %}
{% if step_node.is_explicit %}
-add step:
+add sub-step:
+{% elif step_node.seen %}
+ suppress
{% endif %}
{% if step_node.is_explicit or not step_node.seen %}
{% for substep_id, substep in step_node.steps.items() %}
-{{ process_with_steps(substep_id, substep, indent+1) }}
+{{ step_with_steps(substep_id, substep, indent+1) }}
{% endfor %}
{% endif %}
{% endmacro %}
+
+
{% block content %}
process
+{{ macros.datalist_of_titles("condition_candidates", condition_candidates) }}
+{{ macros.datalist_of_titles("step_candidates", step_candidates) }}
+{% endblock %}