35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
@using FlowerShopContracts.ViewModels;
|
|
@using FlowerShopDataModels.Models;
|
|
@{
|
|
ViewData["Title"] = "Create";
|
|
}
|
|
|
|
@model Dictionary<int, (IFlowerModel, 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="flower" name="flower" class="form-control" asp-items="@(new SelectList(@ViewBag.ListFlower, "Id", "FlowerName"))"></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>
|