process.set_blockers(self.conn, self.form_data.get_all_int('blocker'))
process.set_enables(self.conn, self.form_data.get_all_int('enables'))
process.set_disables(self.conn, self.form_data.get_all_int('disables'))
- process.set_step_suppressions(self.conn,
- self.form_data.get_all_int('suppresses'))
process.calendarize = self.form_data.get_all_str('calendarize') != []
process.save(self.conn)
assert isinstance(process.id_, int)
steps += [ProcessStep(None, process.id_, step_process_id, None)]
process.uncache()
process.set_steps(self.conn, steps)
+ process.set_step_suppressions(self.conn,
+ self.form_data.get_all_int('suppresses'))
process.save(self.conn)
return f'/process?id={process.id_}'
<td>
{% if step_node.is_explicit %}
add sub-step: <input name="new_step_to_{{step_id}}" list="step_candidates" autocomplete="off" />
-{% elif step_node.seen %}
+{% elif not step_node.seen %}
<input type="checkbox" name="suppresses" value="{{step_id}}" {% if step_node.is_suppressed %}checked{% endif %}> suppress
{% endif %}
</td>