PIbd-23-Yunusov-N.N.-CarRep.../CarRepairShop/CarRepairShowShopApp/Views/Home/MakeSupply.cshtml
2024-04-24 21:36:26 +04:00

34 lines
1.1 KiB
Plaintext

@using CarRepairShopContracts.ViewModels;
@using CarRepairShopDataModels.Models;
@{
ViewData["Title"] = "Create";
}
@model Dictionary<int, (IRepairModel, 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">
<div class="col-4">Ремонт:</div>
<div class="col-8">
<select id="repair" name="repair" class="form-control" asp-items="@(new SelectList(@ViewBag.ListRepair, "Id", "RepairName"))"></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>