Esempio n. 1
0
def print_menu():
    menudb = Menudb()
    menuName = request.form['inputMenuName']
    getDishes = menudb.searchMenu(menuName)
    return render_template('print_menu.html',
                           menuName=menuName,
                           dishes=getDishes)
Esempio n. 2
0
def menuEdit():
    form = addMenuForm()
    menudb = Menudb()
    menuName = request.form['menuEdit']
    getDishes = menudb.searchMenu(menuName)
    items = menudb.getItems()
    return render_template('add_lists.html',
                           form=form,
                           items=items,
                           getDishes=getDishes,
                           menuName=menuName)