Y3S1-Cloud_Systems_DevOps/ThAmCo-Stock/ThAmCo.Stock/Views/Stock/Edit.cshtml

45 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

2020-06-09 20:21:37 +00:00
@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");}
}