parent
dc7d505937
commit
3be55f23be
|
@ -3,13 +3,15 @@
|
|||
@{
|
||||
if((!String.IsNullOrEmpty(ViewBag.Action))||(!String.IsNullOrWhiteSpace(ViewBag.Action)))
|
||||
{
|
||||
<div class="row">
|
||||
<div class="row">
|
||||
<form asp-action="@ViewBag.Action" enctype="multipart/form-data" method="post">
|
||||
<div class="form-group col-sm-4">
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
@{if (@ViewBag.Action == nameof(ProductController.Edit)){
|
||||
<input type="hidden" asp-for="@Model.id" class="form-control">
|
||||
}}
|
||||
@{
|
||||
if (@ViewBag.Action == nameof(ProductController.Edit)){
|
||||
<input type="hidden" asp-for="@Model.id" class="form-control">
|
||||
}
|
||||
}
|
||||
<div class="form-group">
|
||||
<label asp-for="@Model.Name"></label>
|
||||
<input asp-for="@Model.Name" class="form-control" aria-describedby="product name" placeholder="product name">
|
||||
|
|
Reference in New Issue