Coursach/Course/ImplementerApp/Views/Home/CreateDetail.cshtml

23 lines
753 B
Plaintext
Raw Normal View History

2024-05-23 20:02:34 +04:00
@using Contracts.ViewModels;
@{
2024-04-28 17:11:40 +04:00
ViewData["Title"] = "CreateDetail";
}
2024-05-23 20:02:34 +04:00
@model DetailViewModel;
2024-04-28 17:11:40 +04:00
<div class="text-center">
2024-05-23 20:02:34 +04:00
<h2 class="display-4">Деталь</h2>
2024-04-28 17:11:40 +04:00
</div>
<form method="post">
2024-05-23 20:02:34 +04:00
<input type="text" name="title" id="title" value="@Model.Id" hidden="hidden"/>
2024-04-28 17:11:40 +04:00
<div class="row">
<div class="col-4">Название:</div>
2024-05-23 20:02:34 +04:00
<div class="col-8"><input type="text" name="name" id="name" value="@Model.Name"/></div>
2024-04-28 17:11:40 +04:00
</div>
<div class="row">
<div class="col-4">Цена:</div>
2024-05-23 20:02:34 +04:00
<div class="col-8"><input type="text" name="cost" id="cost" value="@Model.Cost"/></div>
2024-04-28 17:11:40 +04:00
</div>
<div class="row">
<div class="col-8"></div>
<div class="col-4"><input type="submit" value="Сохранить" class="btn btn-primary" /></div>
</div>
</form>