1 {% extends '_base.html' %}
2 {% import '_macros.html' as macros %}
6 {% macro step_with_steps(step_id, step_node, indent) %}
9 <input type="hidden" name="steps" value="{{step_id}}" />
10 {% if step_node.is_explicit %}
11 <input type="checkbox" name="keep_step" value="{{step_id}}" checked />
12 <input type="hidden" name="step_{{step_id}}_process_id" value="{{step_node.process.id_}}" />
13 <input type="hidden" name="step_{{step_id}}_parent_id" value="{{step_node.parent_id or ''}}" />
16 <td>{% for i in range(indent) %}+{%endfor %}
17 {% if (not step_node.is_explicit) and step_node.seen %}
18 <a href="process?id={{step_node.process.id_}}">({{step_node.process.title.newest|e}})</a>
20 <a href="process?id={{step_node.process.id_}}">{{step_node.process.title.newest|e}}</a>
24 {% if step_node.is_explicit %}
25 add: <input name="new_step_to_{{step_id}}" list="candidates" autocomplete="off" />
29 {% if step_node.is_explicit or not step_node.seen %}
30 {% for substep_id, substep in step_node.steps.items() %}
31 {{ step_with_steps(substep_id, substep, indent+1) }}
40 <form action="process?id={{process.id_ or ''}}" method="POST">
45 <td><input name="title" value="{{process.title.newest|e}}" />{% if process.id_ %} [<a href="process_titles?id={{process.id_}}">history</a>]{% endif %}</td>
49 <th>default effort</th>
50 <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>
55 <td><textarea name="description">{{process.description.newest|e}}</textarea><br />{% if process.id_ %} [<a href="process_descriptions?id={{process.id_}}">history</a>]{% endif %}</td>
60 <td><input type="checkbox" name="calendarize" {% if process.calendarize %}checked {% endif %}</td>
65 <td>{{ macros.simple_checkbox_table("condition", process.conditions, "condition", "condition_candidates") }}</td>
70 <td>{{ macros.simple_checkbox_table("enables", process.enables, "condition", "condition_candidates") }}</td>
75 <td>{{ macros.simple_checkbox_table("disables", process.disables, "condition", "condition_candidates") }}</td>
82 {% for step_id, step_node in steps.items() %}
83 {{ step_with_steps(step_id, step_node, 0) }}
86 add: <input name="new_top_step" list="step_candidates" autocomplete="off" />
93 {% for owner in owners %}
94 <a href="process?id={{owner.id_}}">{{owner.title.newest|e}}</a><br />
100 {{ macros.edit_buttons() }}
103 {{ macros.datalist_of_titles("condition_candidates", condition_candidates) }}
104 {{ macros.datalist_of_titles("step_candidates", step_candidates) }}