1 {% extends '_base.html' %}
2 {% import '_macros.html' as macros %}
7 details > summary::after {
13 details[open] > summary::after {
20 {% macro step_with_steps(step_node, indent) %}
23 <input type="hidden" name="steps" value="{{step_node.step.id_}}" />
24 {% if step_node.is_explicit %}
25 <input type="checkbox" name="kept_steps" value="{{step_node.step.id_}}" checked />
29 {% if step_node.is_explicit and not step_node.seen %}
37 {% for i in range(indent) %}+{%endfor %}
38 {% if step_node.is_suppressed %}<del>{% endif %}
39 {% if step_node.seen %}
40 <a href="process?id={{step_node.process.id_}}">({{step_node.process.title.newest|e}})</a>
42 <a href="process?id={{step_node.process.id_}}">{{step_node.process.title.newest|e}}</a>
44 {% if step_node.is_suppressed %}</del>{% endif %}
47 {% if step_node.is_explicit and not step_node.seen %}
49 <div>add sub-step: <input name="new_step_to_{{step_id}}" list="process_candidates" autocomplete="off" size="100" /></div>
54 {% if (not step_node.is_explicit) and (not step_node.seen) %}
56 <input type="checkbox" name="suppresses" value="{{step_id}}" {% if step_node.is_suppressed %}checked{% endif %}> suppress
60 {% if step_node.is_explicit or not step_node.seen %}
61 {% for substep in step_node.steps %}
62 {{ step_with_steps(substep, indent+1) }}
74 edit process of ID {{process.id_}}
77 <form action="process?id={{process.id_ or ''}}" method="POST">
79 <table class="edit_table">
82 <td><input name="title" type="text" value="{{process.title.newest|e}}" />{% if process.id_ %} [<a href="process_titles?id={{process.id_}}">history</a>]{% endif %}</td>
86 <td><input type="number" name="effort" step=0.1 value={{process.effort.newest}} />{% if process.id_ %} [<a href="process_efforts?id={{process.id_}}">history</a>]{% endif %}</td>
90 <td><textarea name="description">{{process.description.newest|e}}</textarea><br />{% if process.id_ %} [<a href="process_descriptions?id={{process.id_}}">history</a>]{% endif %}</td>
94 <td><input type="checkbox" name="calendarize" {% if process.calendarize %}checked {% endif %}</td>
98 <td>{{ macros.simple_checkbox_table("conditions", process.conditions, "condition", "condition_candidates") }}</td>
102 <td>{{ macros.simple_checkbox_table("blockers", process.blockers, "condition", "condition_candidates") }}</td>
106 <td>{{ macros.simple_checkbox_table("enables", process.enables, "condition", "condition_candidates") }}</td>
110 <td>{{ macros.simple_checkbox_table("disables", process.disables, "condition", "condition_candidates") }}</td>
117 {% for step_node in steps %}
118 {{ step_with_steps(step_node, 0) }}
122 add: <input type="text" name="new_top_step" list="process_candidates" autocomplete="off" value="{{preset_top_step or ''}}" />
127 <td>{{ macros.simple_checkbox_table("step_of", owners, "process", "process_candidates") }}</td>
132 <a href="todos?process_id={{process.id_}}">{{n_todos}}</a><br />
137 {{ macros.edit_buttons() }}
139 {{ macros.datalist_of_titles("condition_candidates", condition_candidates) }}
140 {{ macros.datalist_of_titles("process_candidates", process_candidates) }}