45 lines
1.4 KiB
Plaintext
45 lines
1.4 KiB
Plaintext
|
@model ThAmCo.Stock.Data.ProductStock
|
||
|
|
||
|
@{
|
||
|
ViewData["Title"] = "Edit";
|
||
|
}
|
||
|
|
||
|
<h1>Edit</h1>
|
||
|
|
||
|
<h4>ProductStock</h4>
|
||
|
<hr />
|
||
|
<div class="row">
|
||
|
<div class="col-md-4">
|
||
|
<form asp-action="Edit">
|
||
|
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||
|
<input type="hidden" asp-for="Id" />
|
||
|
<div class="form-group">
|
||
|
<label asp-for="ProductId" class="control-label"></label>
|
||
|
<input asp-for="ProductId" class="form-control" />
|
||
|
<span asp-validation-for="ProductId" class="text-danger"></span>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label asp-for="Stock" class="control-label"></label>
|
||
|
<input asp-for="Stock" class="form-control" />
|
||
|
<span asp-validation-for="Stock" class="text-danger"></span>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label asp-for="PriceId" class="control-label"></label>
|
||
|
<input asp-for="PriceId" class="form-control" />
|
||
|
<span asp-validation-for="PriceId" class="text-danger"></span>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<input type="submit" value="Save" class="btn btn-primary" />
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div>
|
||
|
<a asp-action="Index">Back to List</a>
|
||
|
</div>
|
||
|
|
||
|
@section Scripts {
|
||
|
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
|
||
|
}
|