X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/static/gitweb.js?a=blobdiff_plain;f=templates%2Fprocess.html;h=60687d8b96ef3ed9245ccb46671bb346494a6cb9;hb=3bc56075efe4e4409824c7bd99a55593905e960e;hp=f8f7baf1eefff07564c49d124c4d7b771acb587d;hpb=951d8ad55c0d54286f9c986257a67dfa9710fcf2;p=plomtask
diff --git a/templates/process.html b/templates/process.html
index f8f7baf..60687d8 100644
--- a/templates/process.html
+++ b/templates/process.html
@@ -1,4 +1,21 @@
-{% extends 'base.html' %}
+{% extends '_base.html' %}
+{% import '_macros.html' as macros %}
+
+
+
+{% block css %}
+details > summary::after {
+ content: '[+]';
+}
+details summary {
+ list-style: none;
+}
+details[open] > summary::after {
+ content: '[-]';
+}
+{% endblock %}
+
+
{% macro step_with_steps(step_id, step_node, indent) %}
@@ -7,22 +24,40 @@
{% if step_node.is_explicit %}
-
{% endif %}
-{% for i in range(indent) %}+{%endfor %}
-{% if (not step_node.is_explicit) and step_node.seen %}
+
+{% if step_node.is_explicit and not step_node.seen %}
+
+
+
+{% else %}
+
+{% endif %}
+
+{% for i in range(indent) %}+{%endfor %}
+{% 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 and not step_node.seen %}
+
+add sub-step:
+
+{% endif %}
+
+{% if (not step_node.is_explicit) and (not step_node.seen) %}
-{% if step_node.is_explicit %}
-add step:
-{% endif %}
+ suppress
+{% endif %}
{% if step_node.is_explicit or not step_node.seen %}
{% for substep_id, substep in step_node.steps.items() %}
@@ -31,78 +66,78 @@ add step:
-title:
-description:
-default effort:
-conditions
-
-{% for condition in process.conditions %}
+
+
-add condition:
-
-{% for condition_candidate in condition_candidates %}
-{{condition_candidate.title.newest|e}}
-{% endfor %}
-
-enables
-
-{% for condition in process.enables %}
-
-
-
-
-{{condition.title.newest|e}}
-
+effort
+ {% if process.id_ %} [history ]{% endif %}
+
+
+description
+ {% if process.id_ %} [history ]{% endif %}
+
+
+calendarize
+
+
+
+conditions
+{{ macros.simple_checkbox_table("condition", process.conditions, "condition", "condition_candidates") }}
+
+
+blockers
+{{ macros.simple_checkbox_table("blocker", process.blockers, "condition", "condition_candidates") }}
+
+
+enables
+{{ macros.simple_checkbox_table("enables", process.enables, "condition", "condition_candidates") }}
+
+
+disables
+{{ macros.simple_checkbox_table("disables", process.disables, "condition", "condition_candidates") }}
-{% endfor %}
-
-add enables:
-conditions
-
-add disables:
-steps
-
-{% for step_node in steps %}
-{{ step_with_steps(step_id, step_node, 0) }}
-{% endfor %}
-add step:
-
-{% for candidate in step_candidates %}
-{{candidate.title.newest|e}}
-{% endfor %}
-
-save
-
+
+{{ macros.edit_buttons() }}
-step of
-
+{{ macros.datalist_of_titles("condition_candidates", condition_candidates) }}
+{{ macros.datalist_of_titles("process_candidates", process_candidates) }}
{% endblock %}