id_ = self.params.get_int('id')
todo = Todo.by_id(self.conn, id_)
return {'todo': todo,
+ 'process_candidates': Process.all(self.conn),
'todo_candidates': Todo.by_date(self.conn, todo.date),
'condition_candidates': Condition.all(self.conn)}
continue
child = Todo.by_id(self.conn, child_id)
todo.add_child(child)
+ for process_id in self.form_data.get_all_int('make'):
+ made = Todo.create_with_children(self.conn, process_id, todo.date)
+ todo.add_child(made)
effort = self.form_data.get_str('effort', ignore_strict=True)
todo.effort = float(effort) if effort else None
todo.set_conditions(self.conn, self.form_data.get_all_int('condition'))
<tr>
<th>children</th>
-<td>{{ macros.simple_checkbox_table("adopt", todo.children, "todo", "todo_candidates", "adopt", true) }}</td>
+<td>{{ macros.simple_checkbox_table("adopt", todo.children, "todo", "todo_candidates", "adopt", true) }}<br />
+make: <input name="make" list="process_candidates" autocomplete="off" /></td>
</tr>
</table>
</form>
{{ macros.datalist_of_titles("condition_candidates", condition_candidates) }}
+{{ macros.datalist_of_titles("process_candidates", process_candidates) }}
<datalist id="todo_candidates">
{% for candidate in todo_candidates %}
<option value="{{candidate.id_}}">{{candidate.title.newest|e}} {{candidate.comment|e}}</option>