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_id, step_node, indent) %}
23 <input type="hidden" name="steps" value="{{step_id}}" />
24 {% if step_node.is_explicit %}
25 <input type="checkbox" name="keep_step" value="{{step_id}}" checked />
26 <input type="hidden" name="step_{{step_id}}_process_id" value="{{step_node.process.id_}}" />
27 <input type="hidden" name="step_{{step_id}}_parent_id" value="{{step_node.parent_id or ''}}" />
31 {% if step_node.is_explicit and not step_node.seen %}
39 {% for i in range(indent) %}+{%endfor %}
40 {% if step_node.is_suppressed %}<del>{% endif %}
41 {% if step_node.seen %}
42 <a href="process?id={{step_node.process.id_}}">({{step_node.process.title.newest|e}})</a>
44 <a href="process?id={{step_node.process.id_}}">{{step_node.process.title.newest|e}}</a>
46 {% if step_node.is_suppressed %}</del>{% endif %}
49 {% if step_node.is_explicit and not step_node.seen %}
51 <div>add sub-step: <input name="new_step_to_{{step_id}}" list="process_candidates" autocomplete="off" size="100" /></div>
56 {% if (not step_node.is_explicit) and (not step_node.seen) %}
58 <input type="checkbox" name="suppresses" value="{{step_id}}" {% if step_node.is_suppressed %}checked{% endif %}> suppress
62 {% if step_node.is_explicit or not step_node.seen %}
63 {% for substep_id, substep in step_node.steps.items() %}
64 {{ step_with_steps(substep_id, substep, indent+1) }}
76 edit process of ID {{process.id_}}
79 <form action="process?id={{process.id_ or ''}}" method="POST">
81 <table class="edit_table">
84 <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>
88 <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>
92 <td><textarea name="description">{{process.description.newest|e}}</textarea><br />{% if process.id_ %} [<a href="process_descriptions?id={{process.id_}}">history</a>]{% endif %}</td>
96 <td><input type="checkbox" name="calendarize" {% if process.calendarize %}checked {% endif %}</td>
100 <td>{{ macros.simple_checkbox_table("condition", process.conditions, "condition", "condition_candidates") }}</td>
104 <td>{{ macros.simple_checkbox_table("blocker", process.blockers, "condition", "condition_candidates") }}</td>
108 <td>{{ macros.simple_checkbox_table("enables", process.enables, "condition", "condition_candidates") }}</td>
112 <td>{{ macros.simple_checkbox_table("disables", process.disables, "condition", "condition_candidates") }}</td>
119 {% for step_id, step_node in steps.items() %}
120 {{ step_with_steps(step_id, step_node, 0) }}
124 add: <input type="text" name="new_top_step" list="process_candidates" autocomplete="off" value="{{preset_top_step or ''}}" />
129 <td>{{ macros.simple_checkbox_table("step_of", owners, "process", "process_candidates") }}</td>
134 <a href="todos?process_id={{process.id_}}">{{n_todos}}</a><br />
139 {{ macros.edit_buttons() }}
141 {{ macros.datalist_of_titles("condition_candidates", condition_candidates) }}
142 {{ macros.datalist_of_titles("process_candidates", process_candidates) }}