|
13 | 13 | <form method="post"> |
14 | 14 | <div asp-validation-summary="ModelOnly" class="text-danger"></div> |
15 | 15 | <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> |
19 | 19 | </div> |
20 | 20 | <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> |
24 | 24 | </div> |
25 | 25 | <div class="form-group"> |
26 | 26 | <label asp-for="Product.UnitPrice" class="control-label"></label> |
27 | 27 | <input asp-for="Product.UnitPrice" class="form-control" /> |
28 | 28 | <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> |
50 | 30 | <div class="form-group"> |
51 | 31 | <label asp-for="Product.CategoryId" class="control-label"></label> |
52 | 32 | <select asp-for="Product.CategoryId" class="form-control" asp-items="ViewBag.CategoryId"></select> |
|
0 commit comments