1 | @model PostgreSqlDotnetCore.Models.ProductsClass
|
---|
2 |
|
---|
3 | @{
|
---|
4 | ViewBag.Title = "Edit";
|
---|
5 | }
|
---|
6 |
|
---|
7 | <h2>Edit</h2>
|
---|
8 |
|
---|
9 |
|
---|
10 | @using (Html.BeginForm())
|
---|
11 | {
|
---|
12 | @Html.AntiForgeryToken()
|
---|
13 |
|
---|
14 | <div class="form-horizontal">
|
---|
15 | <hr />
|
---|
16 | @Html.ValidationSummary(true, "", new { @class = "text-danger" })
|
---|
17 | @Html.HiddenFor(model => model.id)
|
---|
18 |
|
---|
19 | <div class="form-group">
|
---|
20 | @Html.LabelFor(model => model.name, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
21 | <div class="col-md-10">
|
---|
22 | @Html.EditorFor(model => model.name, new { htmlAttributes = new { @class = "form-control" } })
|
---|
23 | @Html.ValidationMessageFor(model => model.name, "", new { @class = "text-danger" })
|
---|
24 | </div>
|
---|
25 | </div>
|
---|
26 |
|
---|
27 | <div class="form-group">
|
---|
28 | @Html.LabelFor(model => model.description, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
29 | <div class="col-md-10">
|
---|
30 | @Html.EditorFor(model => model.description, new { htmlAttributes = new { @class = "form-control" } })
|
---|
31 | @Html.ValidationMessageFor(model => model.description, "", new { @class = "text-danger" })
|
---|
32 | </div>
|
---|
33 | </div>
|
---|
34 |
|
---|
35 | <div class="form-group">
|
---|
36 | @Html.LabelFor(model => model.price, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
37 | <div class="col-md-10">
|
---|
38 | @Html.EditorFor(model => model.price, new { htmlAttributes = new { @class = "form-control" } })
|
---|
39 | @Html.ValidationMessageFor(model => model.price, "", new { @class = "text-danger" })
|
---|
40 | </div>
|
---|
41 | </div>
|
---|
42 | <div class="form-group">
|
---|
43 | @Html.CheckBoxFor(model => model.isactive, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
44 | <div class="col-md-10">
|
---|
45 | @Html.EditorFor(model => model.isactive, new { htmlAttributes = new { @class = "form-control" } })
|
---|
46 | @Html.ValidationMessageFor(model => model.isactive, "", new { @class = "text-danger" })
|
---|
47 | </div>
|
---|
48 | </div>
|
---|
49 | <div class="form-group">
|
---|
50 | @Html.LabelFor(model => model.category, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
51 | <div class="col-md-10">
|
---|
52 | @Html.EditorFor(model => model.category, new { htmlAttributes = new { @class = "form-control" } })
|
---|
53 | @Html.ValidationMessageFor(model => model.category, "", new { @class = "text-danger" })
|
---|
54 | </div>
|
---|
55 | </div>
|
---|
56 | <div class="form-group">
|
---|
57 | @Html.LabelFor(model => model.available_quantity, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
58 | <div class="col-md-10">
|
---|
59 | @Html.EditorFor(model => model.available_quantity, new { htmlAttributes = new { @class = "form-control" } })
|
---|
60 | @Html.ValidationMessageFor(model => model.available_quantity, "", new { @class = "text-danger" })
|
---|
61 | </div>
|
---|
62 | </div>
|
---|
63 |
|
---|
64 | <div class="form-group">
|
---|
65 | <div class="col-md-offset-2 col-md-10">
|
---|
66 | <br/>
|
---|
67 | <input type="submit" value="Save" class="btn btn-dark" />
|
---|
68 | </div>
|
---|
69 | </div>
|
---|
70 | </div>
|
---|
71 | }
|
---|
72 |
|
---|
73 | <div>
|
---|
74 | @Html.ActionLink("Back to List", "Index")
|
---|
75 | </div>
|
---|