feat: adding edit feature for recipe

This commit is contained in:
Aerex
2019-04-01 00:16:32 -05:00
parent 3d8b209fd8
commit e5e9ddd836
10 changed files with 205 additions and 7 deletions

18
templates/recipe.yml Normal file
View File

@@ -0,0 +1,18 @@
name: {{ name }}
description: {{ description }}
recipe_id: {{ recipe_id }
picture_file_name: {{ picture_file_name | null }}
base_serving: {{ base_serving | "1" }}
desired_serving: {{ desired_serving | "1" }}
not_checking_shopping_list: {{ not_checking_shopping_list | "1" }}
{% for product in products }
products:
- id: {{ product.id }}
amount: {{ product.amount }}
note: {{ product.note }}
qu_id:
only_check_single_unit_in_stock: {{ product.only_check_single_unit_in_stock }}
ingredient_group: {{ product.ingredient_group | null }}
not_checking_shopping_list: {{ product.not_checking_shopping_list }}
{% endfor }