ChangePassword.cshtml
1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@model CWA.CpoOnline.Models.ChangePasswordViewModel
@{
ViewBag.Title = "Change Password";
}
<h2>@ViewBag.Title</h2>
@using (Html.BeginForm("ChangePassword", "Settings", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
@Html.AntiForgeryToken()
<hr />
@Html.ValidationSummary("", new { @class = "text-danger" })
<div class="col-sm-12 col-md-8 col-lg-6">
<div class="form-group">
@Html.LabelFor(m => m.OldPassword, new { @class = "control-label" })
@Html.PasswordFor(m => m.OldPassword, new { @class = "form-control" })
</div>
<div class="form-group">
@Html.LabelFor(m => m.NewPassword, new { @class = "control-label" })
@Html.PasswordFor(m => m.NewPassword, new { @class = "form-control" })
</div>
<div class="form-group">
@Html.LabelFor(m => m.ConfirmPassword, new { @class = "control-label" })
@Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" })
</div>
<div class="row">
<div class="col-auto mr-auto">
@Html.ActionLink("Cancel", "index", "settings", new { area = "" }, new { @class = "btn btn-outline-secondary" })
</div>
<div class="col-auto">
<input type="submit" value="Change password" class="btn btn-primary" />
</div>
</div>
</div>
}
@section Scripts {
@Scripts.Render("~/bundles/jqueryval")
}