28 lines
1.2 KiB
Plaintext
28 lines
1.2 KiB
Plaintext
|
@{
|
||
|
ViewData["Title"] = "Редактирование запчасти";
|
||
|
}
|
||
|
<form method="post">
|
||
|
<div hidden><input type="text" name="Id" value="@ViewBag.Item.Id" /></div>
|
||
|
<div hidden><input type="text" name="WorkerId" value="@ViewBag.Item.WorkerId" /></div>
|
||
|
<div class="row">
|
||
|
<div class="col-4">Название:</div>
|
||
|
<div class="col-8"><input type="text" name="Name" value="@ViewBag.Item.Name" /></div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div class="col-4">Цена:</div>
|
||
|
<div class="col-8"><input type="text" name="Price" value="@ViewBag.Item.Price" /></div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div class="col-4">Количество:</div>
|
||
|
<div class="col-8"><input type="text" name="Count" value="@ViewBag.Item.Count" /></div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div><button asp-controller="Home" asp-action="UpdateItem" class="btn btn-primary">Изменить</button></div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div><button asp-controller="Home" asp-action="DeleteItem" class="btn btn-primary">Удалить</button></div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div><button asp-controller="Home" asp-action="Items" type="submit" class="btn btn-primary">Отмена</button></div>
|
||
|
</div>
|
||
|
</form>
|