34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
|
@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">
|
||
|
<div class="col-4">Мороженое:</div>
|
||
|
<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>
|