X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;f=templates%2Fprocess.html;h=064e83da1dae009da6c1c396a978d114d59b2a65;hb=214aeb0f2e29712518dc776b0713bcdbb8945a2f;hp=0a15cc4052a8d61bf1b2d624a90cfbfc7d86a9e8;hpb=0ed752a84400e7e95c469ca6c7384d3c6b027c4f;p=plomtask diff --git a/templates/process.html b/templates/process.html index 0a15cc4..064e83d 100644 --- a/templates/process.html +++ b/templates/process.html @@ -1,6 +1,31 @@ -{% extends 'base.html' %} +{% extends '_base.html' %} +{% import '_macros.html' as macros %} -{% macro process_with_steps(step_id, step_node, indent) %} + + +{% block css %} +input[type="text"] { + width: 100em; +} +details > summary::after { + content: '[+]'; +} +details summary { + list-style: none; +} +details[open] > summary::after { + content: '[-]'; +} +table.main > tbody > tr > td, table.main > tbody > tr > th { + border-bottom: 0.1em solid #bbbbbb; + padding-top: 0.5em; + padding-bottom: 0.5em; +} +{% endblock %} + + + +{% macro step_with_steps(step_id, step_node, indent) %} @@ -10,39 +35,126 @@ {% endif %} -{% for i in range(indent) %}+{%endfor %} + +{% 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 step_node.is_explicit %} -add step: +{% if (not step_node.is_explicit) and (not 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

+

+{% if is_new %} +add NEW process +{% else %} +edit process of ID {{process.id_}} +{% endif %} +

-title: -description: -default effort: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
title{% if process.id_ %} [history]{% endif %}
default 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") }}
steps {% for step_id, step_node in steps.items() %} -{{ process_with_steps(step_id, step_node, 0) }} +{{ step_with_steps(step_id, step_node, 0) }} {% endfor %}
-add step: - -{% for candidate in candidates %} - -{% endfor %} - - - -{% endblock %} +add: +
step of{{ macros.simple_checkbox_table("step_of", owners, "process", "process_candidates") }}
todos +{{n_todos}}
+
+{{ macros.edit_buttons() }} + + +{{ macros.datalist_of_titles("condition_candidates", condition_candidates) }} +{{ macros.datalist_of_titles("process_candidates", process_candidates) }} +{% endblock %}