Exemplo n.º 1
0
def show_vegetable_dishes():
    session['title'], session['selected_dish'] = TypesOfDish.VEGETABLE_DISHES, 'Блюда из овощей'
    dishes_info = get_dish_info(TypesOfDish.VEGETABLE_DISHES)
    return render_template('dish_page.html', title='Блюда из овощей', types_of_dish=TypesOfDish,
                           units_of_measurement=UnitsOfMeasurement,
                           selected_dish='Блюда из овощей', dishes_info=dishes_info)
Exemplo n.º 2
0
def show_fish_and_seafood():
    session['title'], session['selected_dish'] = TypesOfDish.FISH_AND_SEAFOOD, 'Рыба и морепродукты'
    dishes_info = get_dish_info(TypesOfDish.FISH_AND_SEAFOOD)
    return render_template('dish_page.html', title='Рыба и морепродукты', types_of_dish=TypesOfDish,
                           units_of_measurement=UnitsOfMeasurement,
                           selected_dish='Рыба и морепродукты', dishes_info=dishes_info)
Exemplo n.º 3
0
def show_sauces_and_marinades():
    session['title'], session['selected_dish'] = TypesOfDish.SAUCES_AND_MARINADES, 'Соусы и маринады'
    dishes_info = get_dish_info(TypesOfDish.SAUCES_AND_MARINADES)
    return render_template('dish_page.html', title='Соусы и маринады', types_of_dish=TypesOfDish,
                           units_of_measurement=UnitsOfMeasurement,
                           selected_dish='Соусы и маринады', dishes_info=dishes_info)
Exemplo n.º 4
0
def show_sandwiches():
    session['title'], session['selected_dish'] = TypesOfDish.SANDWICHES, 'Бутерброды и сэндвичи'
    dishes_info = get_dish_info(TypesOfDish.SANDWICHES)
    return render_template('dish_page.html', title='Бутерброды и сэндвичи', types_of_dish=TypesOfDish,
                           units_of_measurement=UnitsOfMeasurement,
                           selected_dish='Бутерброды и сэндвичи', dishes_info=dishes_info)
Exemplo n.º 5
0
def show_meat_dishes():
    session['title'], session['selected_dish'] = TypesOfDish.MEAT_DISHES, 'Блюда из мяса'
    dishes_info = get_dish_info(TypesOfDish.MEAT_DISHES)
    return render_template('dish_page.html', title='Блюда из мяса', types_of_dish=TypesOfDish,
                           units_of_measurement=UnitsOfMeasurement,
                           selected_dish='Блюда из мяса', dishes_info=dishes_info)
Exemplo n.º 6
0
def show_salads_and_appetizers():
    session['title'], session['selected_dish'] = TypesOfDish.SALADS_AND_APPETIZERS, 'Салаты и закуски'
    dishes_info = get_dish_info(TypesOfDish.SALADS_AND_APPETIZERS)
    return render_template('dish_page.html', title='Салаты и закуски', types_of_dish=TypesOfDish,
                           units_of_measurement=UnitsOfMeasurement,
                           selected_dish='Салаты и закуски', dishes_info=dishes_info)
Exemplo n.º 7
0
def show_sweet_food_and_drinks():
    session['title'], session['selected_dish'] = TypesOfDish.SWEET_FOOD_AND_DRINKS, 'Сладкие блюда и напитки'
    dishes_info = get_dish_info(TypesOfDish.SWEET_FOOD_AND_DRINKS)
    return render_template('dish_page.html', title='Сладкие блюда', types_of_dish=TypesOfDish,
                           units_of_measurement=UnitsOfMeasurement,
                           selected_dish='Сладкие блюда', dishes_info=dishes_info)
Exemplo n.º 8
0
def show_lean_dishes():
    session['title'], session['selected_dish'] = TypesOfDish.LEAN_DISHES, 'Постные блюда'
    dishes_info = get_dish_info(TypesOfDish.LEAN_DISHES)
    return render_template('dish_page.html', title='Постные блюда', types_of_dish=TypesOfDish,
                           units_of_measurement=UnitsOfMeasurement,
                           selected_dish='Постные блюда', dishes_info=dishes_info)
Exemplo n.º 9
0
def show_cakes_and_pastries():
    session['title'], session['selected_dish'] = TypesOfDish.CAKES_AND_PASTRIES, 'Торты и выпечка'
    dishes_info = get_dish_info(TypesOfDish.CAKES_AND_PASTRIES)
    return render_template('dish_page.html', title='Торты и выпечка', types_of_dish=TypesOfDish,
                           units_of_measurement=UnitsOfMeasurement,
                           selected_dish='Торты и выпечка', dishes_info=dishes_info)
Exemplo n.º 10
0
def show_cereals_and_pasta():
    session['title'], session['selected_dish'] = TypesOfDish.CEREALS_AND_PASTA, 'Крупы и макароны'
    dishes_info = get_dish_info(TypesOfDish.CEREALS_AND_PASTA)
    return render_template('dish_page.html', title='Крупы и макароны', types_of_dish=TypesOfDish,
                           units_of_measurement=UnitsOfMeasurement,
                           selected_dish='Крупы и макароны', dishes_info=dishes_info)