Skip to content

Commit 0c58a3c

Browse files
committed
create page finished
1 parent 83c798d commit 0c58a3c

File tree

1 file changed

+7
-27
lines changed

1 file changed

+7
-27
lines changed

AspNetRunBasic/Pages/Product/Create.cshtml

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,40 +13,20 @@
1313
<form method="post">
1414
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
1515
<div class="form-group">
16-
<label asp-for="Product.ProductName" class="control-label"></label>
17-
<input asp-for="Product.ProductName" class="form-control" />
18-
<span asp-validation-for="Product.ProductName" class="text-danger"></span>
16+
<label asp-for="Product.Name" class="control-label"></label>
17+
<input asp-for="Product.Name" class="form-control" />
18+
<span asp-validation-for="Product.Name" class="text-danger"></span>
1919
</div>
2020
<div class="form-group">
21-
<label asp-for="Product.QuantityPerUnit" class="control-label"></label>
22-
<input asp-for="Product.QuantityPerUnit" class="form-control" />
23-
<span asp-validation-for="Product.QuantityPerUnit" class="text-danger"></span>
21+
<label asp-for="Product.Description" class="control-label"></label>
22+
<input asp-for="Product.Description" class="form-control" />
23+
<span asp-validation-for="Product.Description" class="text-danger"></span>
2424
</div>
2525
<div class="form-group">
2626
<label asp-for="Product.UnitPrice" class="control-label"></label>
2727
<input asp-for="Product.UnitPrice" class="form-control" />
2828
<span asp-validation-for="Product.UnitPrice" class="text-danger"></span>
29-
</div>
30-
<div class="form-group">
31-
<label asp-for="Product.UnitsInStock" class="control-label"></label>
32-
<input asp-for="Product.UnitsInStock" class="form-control" />
33-
<span asp-validation-for="Product.UnitsInStock" class="text-danger"></span>
34-
</div>
35-
<div class="form-group">
36-
<label asp-for="Product.UnitsOnOrder" class="control-label"></label>
37-
<input asp-for="Product.UnitsOnOrder" class="form-control" />
38-
<span asp-validation-for="Product.UnitsOnOrder" class="text-danger"></span>
39-
</div>
40-
<div class="form-group">
41-
<label asp-for="Product.ReorderLevel" class="control-label"></label>
42-
<input asp-for="Product.ReorderLevel" class="form-control" />
43-
<span asp-validation-for="Product.ReorderLevel" class="text-danger"></span>
44-
</div>
45-
<div class="form-group form-check">
46-
<label class="form-check-label">
47-
<input class="form-check-input" asp-for="Product.Discontinued" /> @Html.DisplayNameFor(model => model.Product.Discontinued))
48-
</label>
49-
</div>
29+
</div>
5030
<div class="form-group">
5131
<label asp-for="Product.CategoryId" class="control-label"></label>
5232
<select asp-for="Product.CategoryId" class="form-control" asp-items="ViewBag.CategoryId"></select>

0 commit comments

Comments
 (0)