예제 #1
0
def show_view_recipe_page(recipeid):
    """Show view recipe page"""

    recipe = Recipe.get_existing_recipe(recipeid)
    ingredients = Ingredient.get_existing_ingredients(recipeid)

    return render_template("/display_recipe.html",
                           recipe_id=recipeid,
                           recipe=recipe,
                           ingredients=ingredients)
예제 #2
0
def show_view_recipe_page(recipeid):
    """Show view recipe page"""

    recipe = Recipe.get_existing_recipe(recipeid)
    ingredients = Ingredient.get_existing_ingredients(recipeid)

    return render_template("/display_recipe.html",
                           recipe_id=recipeid,
                           recipe=recipe,
                           ingredients=ingredients)
예제 #3
0
def show_prefilled_recipe_form(recipeid):
    """Show existing prefilled recipe form"""

    # recipe object
    recipe = Recipe.get_existing_recipe(recipeid)
    db_categories = Category.query.all()
    ingredients = Ingredient.get_existing_ingredients(recipeid)

    return render_template("/edit_recipe_form.html",
                           recipe=recipe,
                           db_categories=db_categories,
                           ingredients=ingredients)
예제 #4
0
def show_prefilled_recipe_form(recipeid):
    """Show existing prefilled recipe form"""

    # recipe object
    recipe = Recipe.get_existing_recipe(recipeid)
    db_categories = Category.query.all()
    ingredients = Ingredient.get_existing_ingredients(recipeid)

    return render_template("/edit_recipe_form.html",
                           recipe=recipe,
                           db_categories=db_categories,
                           ingredients=ingredients)