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}}_condition_id" value="{{step_node.condition.id_}}" />
11 <input type="hidden" name="step_{{step_id}}_parent_id" value="{{step_node.parent_id or ''}}" />
14 <td>{% for i in range(indent) %}+{%endfor %}
15 {% if (not step_node.is_explicit) and step_node.seen %}
16 <a href="process?id={{step_node.process.id_}}">({{step_node.process.title.newest|e}})</a>
18 <a href="process?id={{step_node.process.id_}}">{{step_node.process.title.newest|e}}</a>
22 {% if step_node.is_explicit %}
23 add step: <input name="new_step_to_{{step_id}}" list="candidates" autocomplete="off" />
27 {% if step_node.is_explicit or not step_node.seen %}
28 {% for substep_id, substep in step_node.steps.items() %}
29 {{ step_with_steps(substep_id, substep, indent+1) }}
36 <form action="process?id={{process.id_ or ''}}" method="POST">
37 title: <input name="title" value="{{process.title.newest|e}}" />
38 description: <input name="description" value="{{process.description.newest|e}}" />
39 default effort: <input name="effort" type="number" step=0.1 value={{process.effort.newest}} />
42 {% for condition in process.conditions %}
45 <input type="checkbox" name="condition" value="{{condition.id_}}" checked />
48 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
53 add condition: <input name="condition" list="condition_candidates" autocomplete="off" />
54 <datalist id="condition_candidates">
55 {% for condition_candidate in condition_candidates %}
56 <option value="{{condition_candidate.id_}}">{{condition_candidate.title.newest|e}}</option>
61 {% for condition in process.fulfills %}
64 <input type="checkbox" name="fulfills" value="{{condition.id_}}" checked />
67 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
72 add fulfills: <input name="fulfills" list="condition_candidates" autocomplete="off" />
75 {% for condition in process.undoes %}
78 <input type="checkbox" name="undoes" value="{{condition.id_}}" checked />
81 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
86 add undoes: <input name="undoes" list="condition_candidates" autocomplete="off" />
89 {% for step_id, step_node in steps.items() %}
90 {{ step_with_steps(step_id, step_node, 0) }}
93 add step: <input name="new_top_step" list="step_candidates" autocomplete="off" />
94 <datalist id="step_candidates">
95 {% for candidate in step_candidates %}
96 <option value="{{candidate.id_}}">{{candidate.title.newest|e}}</option>
100 <input type="submit" value="OK" />
104 {% for owner in owners %}
105 <li><a href="process?id={{owner.id_}}">{{owner.title.newest|e}}</a>