|
| 1 | +@model Zenergy.Models.user |
| 2 | + |
| 3 | +@{ |
| 4 | + ViewBag.Title = "Profile"; |
| 5 | +} |
| 6 | + |
| 7 | +<h2>Profile</h2> |
| 8 | + |
| 9 | + |
| 10 | +@using (Html.BeginForm()) |
| 11 | +{ |
| 12 | + @Html.AntiForgeryToken() |
| 13 | + |
| 14 | + <div class="form-horizontal" ng-controller="profilePageController"> |
| 15 | + <hr /> |
| 16 | + @Html.ValidationSummary(true, "", new { @class = "text-danger" }) |
| 17 | + @Html.HiddenFor(model => model.userId) |
| 18 | + |
| 19 | + <div class="form-group"> |
| 20 | + @Html.LabelFor(model => model.password, htmlAttributes: new { @class = "control-label col-md-2" }) |
| 21 | + <div class="col-md-10"> |
| 22 | + @Html.EditorFor(model => model.password, new { htmlAttributes = new { @class = "form-control" } }) |
| 23 | + @Html.ValidationMessageFor(model => model.password, "", new { @class = "text-danger" }) |
| 24 | + </div> |
| 25 | + </div> |
| 26 | + |
| 27 | + <div class="form-group"> |
| 28 | + @Html.LabelFor(model => model.lastname, htmlAttributes: new { @class = "control-label col-md-2" }) |
| 29 | + <div class="col-md-10"> |
| 30 | + @Html.EditorFor(model => model.lastname, new { htmlAttributes = new { @class = "form-control" } }) |
| 31 | + @Html.ValidationMessageFor(model => model.lastname, "", new { @class = "text-danger" }) |
| 32 | + </div> |
| 33 | + </div> |
| 34 | + |
| 35 | + <div class="form-group"> |
| 36 | + @Html.LabelFor(model => model.firstname, htmlAttributes: new { @class = "control-label col-md-2" }) |
| 37 | + <div class="col-md-10"> |
| 38 | + @Html.EditorFor(model => model.firstname, new { htmlAttributes = new { @class = "form-control" } }) |
| 39 | + @Html.ValidationMessageFor(model => model.firstname, "", new { @class = "text-danger" }) |
| 40 | + </div> |
| 41 | + </div> |
| 42 | + |
| 43 | + <div class="form-group"> |
| 44 | + @Html.LabelFor(model => model.adr1, htmlAttributes: new { @class = "control-label col-md-2" }) |
| 45 | + <div class="col-md-10"> |
| 46 | + @Html.EditorFor(model => model.adr1, new { htmlAttributes = new { @class = "form-control" } }) |
| 47 | + @Html.ValidationMessageFor(model => model.adr1, "", new { @class = "text-danger" }) |
| 48 | + </div> |
| 49 | + </div> |
| 50 | + |
| 51 | + <div class="form-group"> |
| 52 | + @Html.LabelFor(model => model.adr2, htmlAttributes: new { @class = "control-label col-md-2" }) |
| 53 | + <div class="col-md-10"> |
| 54 | + @Html.EditorFor(model => model.adr2, new { htmlAttributes = new { @class = "form-control" } }) |
| 55 | + @Html.ValidationMessageFor(model => model.adr2, "", new { @class = "text-danger" }) |
| 56 | + </div> |
| 57 | + </div> |
| 58 | + |
| 59 | + <div class="form-group"> |
| 60 | + @Html.LabelFor(model => model.pc, htmlAttributes: new { @class = "control-label col-md-2" }) |
| 61 | + <div class="col-md-10"> |
| 62 | + @Html.EditorFor(model => model.pc, new { htmlAttributes = new { @class = "form-control" } }) |
| 63 | + @Html.ValidationMessageFor(model => model.pc, "", new { @class = "text-danger" }) |
| 64 | + </div> |
| 65 | + </div> |
| 66 | + |
| 67 | + <div class="form-group"> |
| 68 | + @Html.LabelFor(model => model.town, htmlAttributes: new { @class = "control-label col-md-2" }) |
| 69 | + <div class="col-md-10"> |
| 70 | + @Html.EditorFor(model => model.town, new { htmlAttributes = new { @class = "form-control" } }) |
| 71 | + @Html.ValidationMessageFor(model => model.town, "", new { @class = "text-danger" }) |
| 72 | + </div> |
| 73 | + </div> |
| 74 | + |
| 75 | + <div class="form-group"> |
| 76 | + @Html.LabelFor(model => model.mail, htmlAttributes: new { @class = "control-label col-md-2" }) |
| 77 | + <div class="col-md-10"> |
| 78 | + @Html.EditorFor(model => model.mail, new { htmlAttributes = new { @class = "form-control" } }) |
| 79 | + @Html.ValidationMessageFor(model => model.mail, "", new { @class = "text-danger" }) |
| 80 | + </div> |
| 81 | + </div> |
| 82 | + |
| 83 | + <div class="form-group"> |
| 84 | + @Html.LabelFor(model => model.phone, htmlAttributes: new { @class = "control-label col-md-2" }) |
| 85 | + <div class="col-md-10"> |
| 86 | + @Html.EditorFor(model => model.phone, new { htmlAttributes = new { @class = "form-control" } }) |
| 87 | + @Html.ValidationMessageFor(model => model.phone, "", new { @class = "text-danger" }) |
| 88 | + </div> |
| 89 | + </div> |
| 90 | + |
| 91 | + <div class="form-group"> |
| 92 | + <div class="col-md-offset-2 col-md-10"> |
| 93 | + <input type="submit" value="Save" class="btn btn-default" /> |
| 94 | + </div> |
| 95 | + </div> |
| 96 | + </div> |
| 97 | +} |
| 98 | + |
| 99 | +@section Scripts { |
| 100 | + @Scripts.Render("~/bundles/jqueryval") |
| 101 | +} |
0 commit comments