|
@@ -111,6 +111,7 @@ class RecipeEditor(FocusWidget):
|
|
|
}
|
|
|
self.ingredients = [
|
|
|
(AutoCompleteEdit(('bg', 'product#0')), AutoCompleteEdit(('bg', 'unit#0'))),
|
|
|
+ #(AutoCompleteEdit(('bg', 'product#1')), AutoCompleteEdit(('bg', 'unit#1'))),
|
|
|
]
|
|
|
self.organic = NoTabCheckBox(('bg', "Organic"), state='mixed')
|
|
|
self.instructions = Edit(f'', multiline=True, allow_tab=True)
|
|
@@ -167,6 +168,11 @@ class RecipeEditor(FocusWidget):
|
|
|
) for idx, ingredient in enumerate(self.ingredients)
|
|
|
]
|
|
|
right_pane = [
|
|
|
+ *[ Divider() for _ in itertools.product(
|
|
|
+ range(3), self.ingredients[:-1]
|
|
|
+ )],
|
|
|
+ Divider(),
|
|
|
+ Divider(),
|
|
|
self.buttons['add'],
|
|
|
]
|
|
|
|