[2aea0fd] | 1 | @model PostgreSqlDotnetCore.Models.UsersClass
|
---|
| 2 |
|
---|
| 3 | @{
|
---|
| 4 | ViewBag.Title = "Create";
|
---|
| 5 | }
|
---|
| 6 |
|
---|
| 7 | <h2>Create</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 | <div class="form-group">
|
---|
| 19 | @Html.LabelFor(model => model.name, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 20 | <div class="col-md-10">
|
---|
| 21 | @Html.EditorFor(model => model.name, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 22 | @Html.ValidationMessageFor(model => model.name, "", new { @class = "text-danger" })
|
---|
| 23 | </div>
|
---|
| 24 | </div>
|
---|
| 25 |
|
---|
| 26 | <div class="form-group">
|
---|
| 27 | @Html.LabelFor(model => model.lastname, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 28 | <div class="col-md-10">
|
---|
| 29 | @Html.EditorFor(model => model.lastname, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 30 | @Html.ValidationMessageFor(model => model.lastname, "", new { @class = "text-danger" })
|
---|
| 31 | </div>
|
---|
| 32 | </div>
|
---|
| 33 |
|
---|
| 34 | <div class="form-group">
|
---|
| 35 | @Html.LabelFor(model => model.email, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 36 | <div class="col-md-10">
|
---|
| 37 | @Html.EditorFor(model => model.email, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 38 | @Html.ValidationMessageFor(model => model.email, "", new { @class = "text-danger" })
|
---|
| 39 | </div>
|
---|
| 40 | </div>
|
---|
| 41 |
|
---|
| 42 | <div class="form-group">
|
---|
| 43 | @Html.LabelFor(model => model.password, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 44 | <div class="col-md-10">
|
---|
| 45 | @Html.EditorFor(model => model.password, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 46 | @Html.ValidationMessageFor(model => model.password, "", new { @class = "text-danger" })
|
---|
| 47 | </div>
|
---|
| 48 | </div>
|
---|
| 49 |
|
---|
| 50 | <div class="form-group">
|
---|
| 51 | @Html.LabelFor(model => model.number, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 52 | <div class="col-md-10">
|
---|
| 53 | @Html.EditorFor(model => model.number, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 54 | @Html.ValidationMessageFor(model => model.number, "", new { @class = "text-danger" })
|
---|
| 55 | </div>
|
---|
| 56 | </div>
|
---|
| 57 | @*<div class="form-group">
|
---|
| 58 | @Html.LabelFor(model => model.role_id, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 59 | <div class="col-md-10">
|
---|
| 60 | @Html.EditorFor(model => model.role_id, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 61 | @Html.ValidationMessageFor(model => model.role_id, "", new { @class = "text-danger" })
|
---|
| 62 | </div>
|
---|
| 63 | </div>*@
|
---|
| 64 | <div class="form-group">
|
---|
| 65 | <label class="control-label col-md-2" for="role_id">Role:</label>
|
---|
| 66 | <div class="col-md-10">
|
---|
| 67 | <select class="form-control" id="role_id" name="role_id">
|
---|
| 68 | <option value="1">Admin</option>
|
---|
| 69 | <option value="2">Standard</option>
|
---|
| 70 | <option value="3">Manager</option>
|
---|
| 71 | <option value="4" selected>Employee</option>
|
---|
| 72 | <!-- Додадете ги другите улоги како опции според вашата апликација -->
|
---|
| 73 | </select>
|
---|
| 74 | </div>
|
---|
| 75 | </div>
|
---|
| 76 | <div class="form-group">
|
---|
| 77 | <label class="control-label col-md-2" for="jobs_id">Jobs:</label>
|
---|
| 78 | <div class="col-md-10 ">
|
---|
| 79 |
|
---|
| 80 | <select class="form-control" id="jobs_id" name="jobs_id">
|
---|
| 81 | <option value="">Select jobs</option>
|
---|
| 82 | <option value="1">Doctor</option>
|
---|
| 83 | <option value="2">Secretary</option>
|
---|
| 84 | <option value="4">Developer</option>
|
---|
| 85 | <option value="5" selected>Employee</option>
|
---|
| 86 | <!-- Додадете ги другите улоги како опции според вашата апликација -->
|
---|
| 87 | </select>
|
---|
| 88 | </div>
|
---|
| 89 | </div>
|
---|
| 90 |
|
---|
| 91 | @*<div class="form-group">
|
---|
| 92 | @Html.LabelFor(model => model.jobs_id, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 93 | <div class="col-md-10">
|
---|
| 94 | @Html.EditorFor(model => model.jobs_id, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 95 | @Html.ValidationMessageFor(model => model.jobs_id, "", new { @class = "text-danger" })
|
---|
| 96 | </div>
|
---|
| 97 | </div>*@
|
---|
| 98 |
|
---|
| 99 | <div class="form-group">
|
---|
| 100 | <div class="col-md-offset-2 col-md-10">
|
---|
| 101 | <br />
|
---|
| 102 |
|
---|
| 103 | <input type="submit" value="Create" class="btn btn-dark" />
|
---|
| 104 | </div>
|
---|
| 105 | </div>
|
---|
| 106 | </div>
|
---|
| 107 | }
|
---|
| 108 |
|
---|
| 109 | <div>
|
---|
| 110 | @Html.ActionLink("Back to List", "Index")
|
---|
| 111 | </div>
|
---|