1 {% extends 'base.html' %}
3 {% macro step_with_steps(step_id, step_node, indent) %}
6 <input type="hidden" name="steps" value="{{step_id}}" />
7 {% if step_node.is_explicit %}
8 <input type="checkbox" name="keep_step" value="{{step_id}}" checked />
9 <input type="hidden" name="step_{{step_id}}_process_id" value="{{step_node.process.id_}}" />
10 <input type="hidden" name="step_{{step_id}}_parent_id" value="{{step_node.parent_id or ''}}" />
13 <td>{% for i in range(indent) %}+{%endfor %}
14 {% if (not step_node.is_explicit) and step_node.seen %}
15 <a href="process?id={{step_node.process.id_}}">({{step_node.process.title.newest|e}})</a>
17 <a href="process?id={{step_node.process.id_}}">{{step_node.process.title.newest|e}}</a>
21 {% if step_node.is_explicit %}
22 add step: <input name="new_step_to_{{step_id}}" list="candidates" autocomplete="off" />
26 {% if step_node.is_explicit or not step_node.seen %}
27 {% for substep_id, substep in step_node.steps.items() %}
28 {{ step_with_steps(substep_id, substep, indent+1) }}
35 <form action="process?id={{process.id_ or ''}}" method="POST">
36 title: <input name="title" value="{{process.title.newest|e}}" />
37 description: <input name="description" value="{{process.description.newest|e}}" />
38 default effort: <input name="effort" type="number" step=0.1 value={{process.effort.newest}} />
41 {% for condition in process.conditions %}
44 <input type="checkbox" name="condition" value="{{condition.id_}}" checked />
47 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
52 add condition: <input name="condition" list="condition_candidates" autocomplete="off" />
53 <datalist id="condition_candidates">
54 {% for condition_candidate in condition_candidates %}
55 <option value="{{condition_candidate.id_}}">{{condition_candidate.title.newest|e}}</option>
60 {% for condition in process.enables %}
63 <input type="checkbox" name="enables" value="{{condition.id_}}" checked />
66 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
71 add enables: <input name="enables" list="condition_candidates" autocomplete="off" />
74 {% for condition in process.disables %}
77 <input type="checkbox" name="disables" value="{{condition.id_}}" checked />
80 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
85 add disables: <input name="disables" list="condition_candidates" autocomplete="off" />
88 {% for step_id, step_node in steps.items() %}
89 {{ step_with_steps(step_id, step_node, 0) }}
92 add step: <input name="new_top_step" list="step_candidates" autocomplete="off" />
93 <datalist id="step_candidates">
94 {% for candidate in step_candidates %}
95 <option value="{{candidate.id_}}">{{candidate.title.newest|e}}</option>
99 <input type="submit" value="OK" />
103 {% for owner in owners %}
104 <li><a href="process?id={{owner.id_}}">{{owner.title.newest|e}}</a>