1 {% extends 'base.html' %}
18 {% macro step_with_steps(step_id, step_node, indent) %}
21 <input type="hidden" name="steps" value="{{step_id}}" />
22 {% if step_node.is_explicit %}
23 <input type="checkbox" name="keep_step" value="{{step_id}}" checked />
24 <input type="hidden" name="step_{{step_id}}_process_id" value="{{step_node.process.id_}}" />
25 <input type="hidden" name="step_{{step_id}}_parent_id" value="{{step_node.parent_id or ''}}" />
28 <td>{% for i in range(indent) %}+{%endfor %}
29 {% if (not step_node.is_explicit) and step_node.seen %}
30 <a href="process?id={{step_node.process.id_}}">({{step_node.process.title.newest|e}})</a>
32 <a href="process?id={{step_node.process.id_}}">{{step_node.process.title.newest|e}}</a>
36 {% if step_node.is_explicit %}
37 add step: <input name="new_step_to_{{step_id}}" list="candidates" autocomplete="off" />
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) }}
52 <form action="process?id={{process.id_ or ''}}" method="POST">
56 <td><input name="title" value="{{process.title.newest|e}}" /></td>
59 <th>default effort</th>
60 <td><input name="effort" type="number" step=0.1 value={{process.effort.newest}} /></td>
64 <td><textarea name="description">{{process.description.newest|e}}</textarea></td>
70 {% for condition in process.conditions %}
73 <input type="checkbox" name="condition" value="{{condition.id_}}" checked />
76 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
81 add condition: <input name="condition" list="condition_candidates" autocomplete="off" />
88 {% for condition in process.enables %}
91 <input type="checkbox" name="enables" value="{{condition.id_}}" checked />
94 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
99 add enables: <input name="enables" list="condition_candidates" autocomplete="off" />
106 {% for condition in process.disables %}
109 <input type="checkbox" name="disables" value="{{condition.id_}}" checked />
112 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
117 add disables: <input name="disables" list="condition_candidates" autocomplete="off" />
124 {% for step_id, step_node in steps.items() %}
125 {{ step_with_steps(step_id, step_node, 0) }}
128 add step: <input name="new_top_step" list="step_candidates" autocomplete="off" />
132 <datalist id="condition_candidates">
133 {% for condition_candidate in condition_candidates %}
134 <option value="{{condition_candidate.id_}}">{{condition_candidate.title.newest|e}}</option>
137 <datalist id="step_candidates">
138 {% for candidate in step_candidates %}
139 <option value="{{candidate.id_}}">{{candidate.title.newest|e}}</option>
142 <input class="btn-harmless" type="submit" name="update" value="update" />
143 <div class="btn-to-right">
144 <input class="btn-dangerous" type="submit" name="delete" value="delete" />
149 {% for owner in owners %}
150 <li><a href="process?id={{owner.id_}}">{{owner.title.newest|e}}</a>