PIbd-23-Salin-O.A.-IceCream.../IceCreamShop/IceCreamShopsApp/Views/Home/MakeSupply.cshtml

34 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2024-04-14 14:57:27 +04:00
@using IceCreamShopContracts.ViewModels;
@using IceCreamShopDataModels.Models;
@{
ViewData["Title"] = "Create";
}
@model Dictionary<int, (IIceCreamModel, int)>
<div class="text-center">
<h2 class="display-4">Добавление мороженого в магазин</h2>
</div>
<form method="post">
<div class="row">
<div class="col-4">Магазин:</div>
<div class="col-8">
<select id="shop" name="shop" class="form-control" asp-items="@(new SelectList(@ViewBag.Shops, "Id", "ShopName"))"></select>
</div>
</div>
<div class="row">
2024-04-14 16:06:36 +04:00
<div class="col-4">Мороженное:</div>
2024-04-14 14:57:27 +04:00
<div class="col-8">
<select id="icecream" name="icecream" class="form-control" asp-items="@(new SelectList(@ViewBag.ListIceCream, "Id", "IceCreamName"))"></select>
</div>
</div>
<div class="row">
<div class="col-4">Количество:</div>
<div class="col-8"><input type="number" id="count" name="count" min="1" class="form-control" /></div>
</div>
<div class="row">
<div class="col-8"></div>
<div class="col-4"><input type="submit" value="Создать" class="btn btn-primary" /></div>
</div>
</form>