23 lines
801 B
Plaintext
23 lines
801 B
Plaintext
@{
|
|
ViewData["Title"] = "Создание запчасти";
|
|
}
|
|
<form method="post">
|
|
<div hidden><input type="text" name="Id" /></div>
|
|
<div hidden><input type="text" name="WorkerId" value="@CurrentUser.UserId" /></div>
|
|
<div class="row">
|
|
<div class="col-4">Название:</div>
|
|
<div class="col-8"><input type="text" name="Name" /></div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-4">Цена:</div>
|
|
<div class="col-8"><input type="text" name="Price" /></div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-4">Количество:</div>
|
|
<div class="col-8"><input type="text" name="Count" /></div>
|
|
</div>
|
|
<div class="row">
|
|
<div><button asp-controller="Home" asp-action="CreateItem" class="btn btn-primary">Добавить</button></div>
|
|
</div>
|
|
</form>
|
|
<div>@ViewBag.Exception</div> |