1 {% extends '_base.html' %}
2 {% import '_macros.html' as macros %}
14 {% macro step_with_steps(step_id, step_node, indent) %}
17 <input type="hidden" name="steps" value="{{step_id}}" />
18 {% if step_node.is_explicit %}
19 <input type="checkbox" name="keep_step" value="{{step_id}}" checked />
20 <input type="hidden" name="step_{{step_id}}_process_id" value="{{step_node.process.id_}}" />
21 <input type="hidden" name="step_{{step_id}}_parent_id" value="{{step_node.parent_id or ''}}" />
24 <td>{% for i in range(indent) %}+{%endfor %}
25 {% if step_node.is_suppressed %}<del>{% endif %}
26 {% if step_node.seen %}
27 <a href="process?id={{step_node.process.id_}}">({{step_node.process.title.newest|e}})</a>
29 <a href="process?id={{step_node.process.id_}}">{{step_node.process.title.newest|e}}</a>
31 {% if step_node.is_suppressed %}<del>{% endif %}
34 {% if step_node.is_explicit %}
35 add sub-step: <input name="new_step_to_{{step_id}}" list="process_candidates" autocomplete="off" />
36 {% elif not step_node.seen %}
37 <input type="checkbox" name="suppresses" value="{{step_id}}" {% if step_node.is_suppressed %}checked{% endif %}> suppress
41 {% if step_node.is_explicit or not step_node.seen %}
42 {% for substep_id, substep in step_node.steps.items() %}
43 {{ step_with_steps(substep_id, substep, indent+1) }}
51 <h3>{% if is_new %}NEW {% endif %}process</h3>
52 <form action="process?id={{process.id_ or ''}}" method="POST">
57 <td><input name="title" value="{{process.title.newest|e}}" />{% if process.id_ %} [<a href="process_titles?id={{process.id_}}">history</a>]{% endif %}</td>
61 <th>default effort</th>
62 <td><input name="effort" type="number" step=0.1 value={{process.effort.newest}} />{% if process.id_ %} [<a href="process_efforts?id={{process.id_}}">history</a>]{% endif %}</td>
67 <td><textarea name="description">{{process.description.newest|e}}</textarea><br />{% if process.id_ %} [<a href="process_descriptions?id={{process.id_}}">history</a>]{% endif %}</td>
72 <td><input type="checkbox" name="calendarize" {% if process.calendarize %}checked {% endif %}</td>
77 <td>{{ macros.simple_checkbox_table("condition", process.conditions, "condition", "condition_candidates") }}</td>
82 <td>{{ macros.simple_checkbox_table("blocker", process.blockers, "condition", "condition_candidates") }}</td>
87 <td>{{ macros.simple_checkbox_table("enables", process.enables, "condition", "condition_candidates") }}</td>
92 <td>{{ macros.simple_checkbox_table("disables", process.disables, "condition", "condition_candidates") }}</td>
99 {% for step_id, step_node in steps.items() %}
100 {{ step_with_steps(step_id, step_node, 0) }}
103 add: <input name="new_top_step" list="process_candidates" autocomplete="off" value="{{preset_top_step or ''}}" />
109 <td>{{ macros.simple_checkbox_table("step_of", owners, "process", "process_candidates") }}</td>
115 <a href="todos?process_id={{process.id_}}">{{n_todos}}</a><br />
120 {{ macros.edit_buttons() }}
123 {{ macros.datalist_of_titles("condition_candidates", condition_candidates) }}
124 {{ macros.datalist_of_titles("process_candidates", process_candidates) }}