1 | @model PostgreSqlDotnetCore.Models.UsersClass
|
---|
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 | <h4>CustomerClass</h4>
|
---|
16 | <hr />
|
---|
17 | @Html.ValidationSummary(true, "", new { @class = "text-danger" })
|
---|
18 | @Html.HiddenFor(model => model.id)
|
---|
19 |
|
---|
20 | <div class="form-group">
|
---|
21 | @Html.LabelFor(model => model.name, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
22 | <div class="col-md-10">
|
---|
23 | @Html.EditorFor(model => model.name, new { htmlAttributes = new { @class = "form-control" } })
|
---|
24 | @Html.ValidationMessageFor(model => model.name, "", new { @class = "text-danger" })
|
---|
25 | </div>
|
---|
26 | </div>
|
---|
27 |
|
---|
28 | <div class="form-group">
|
---|
29 | @Html.LabelFor(model => model.lastname, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
30 | <div class="col-md-10">
|
---|
31 | @Html.EditorFor(model => model.lastname, new { htmlAttributes = new { @class = "form-control" } })
|
---|
32 | @Html.ValidationMessageFor(model => model.lastname, "", new { @class = "text-danger" })
|
---|
33 | </div>
|
---|
34 | </div>
|
---|
35 |
|
---|
36 | <div class="form-group">
|
---|
37 | @Html.LabelFor(model => model.email, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
38 | <div class="col-md-10">
|
---|
39 | @Html.EditorFor(model => model.email, new { htmlAttributes = new { @class = "form-control" } })
|
---|
40 | @Html.ValidationMessageFor(model => model.email, "", new { @class = "text-danger" })
|
---|
41 | </div>
|
---|
42 | </div>
|
---|
43 |
|
---|
44 |
|
---|
45 |
|
---|
46 | <div class="form-group">
|
---|
47 | @Html.LabelFor(model => model.number, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
48 | <div class="col-md-10">
|
---|
49 | @Html.EditorFor(model => model.number, new { htmlAttributes = new { @class = "form-control" } })
|
---|
50 | @Html.ValidationMessageFor(model => model.number, "", new { @class = "text-danger" })
|
---|
51 | </div>
|
---|
52 | </div>
|
---|
53 | <div class="form-group">
|
---|
54 | @Html.LabelFor(model => model.role_id, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
55 | <div class="col-md-10">
|
---|
56 | @Html.EditorFor(model => model.role_id, new { htmlAttributes = new { @class = "form-control" } })
|
---|
57 | @Html.ValidationMessageFor(model => model.role_id, "", new { @class = "text-danger" })
|
---|
58 | </div>
|
---|
59 | </div>
|
---|
60 | <div class="form-group">
|
---|
61 | @Html.LabelFor(model => model.jobs_id, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
62 | <div class="col-md-10">
|
---|
63 | @Html.EditorFor(model => model.jobs_id, new { htmlAttributes = new { @class = "form-control" } })
|
---|
64 | @Html.ValidationMessageFor(model => model.jobs_id, "", new { @class = "text-danger" })
|
---|
65 | </div>
|
---|
66 | </div>
|
---|
67 |
|
---|
68 | <div class="form-group">
|
---|
69 | <div class="col-md-offset-2 col-md-10">
|
---|
70 | <br/>
|
---|
71 | <input type="submit" value="Save" class="btn btn-dark" />
|
---|
72 | </div>
|
---|
73 | </div>
|
---|
74 | </div>
|
---|
75 | }
|
---|
76 |
|
---|
77 | <div>
|
---|
78 | @Html.ActionLink("Back to List", "Index")
|
---|
79 | </div>
|
---|