1 @model Projects.Models.ChangePasswordViewModel
3 ViewBag.Title = "Change Password";
6 <h2>@ViewBag.Title.</h2>
8 @using (Html.BeginForm("ChangePassword", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
10 @Html.AntiForgeryToken()
11 <h4>Change Password Form</h4>
13 @Html.ValidationSummary("", new { @class = "text-danger" })
14 <div class="form-group">
15 @Html.LabelFor(m => m.OldPassword, new { @class = "col-md-2 control-label" })
16 <div class="col-md-10">
17 @Html.PasswordFor(m => m.OldPassword, new { @class = "form-control" })
20 <div class="form-group">
21 @Html.LabelFor(m => m.NewPassword, new { @class = "col-md-2 control-label" })
22 <div class="col-md-10">
23 @Html.PasswordFor(m => m.NewPassword, new { @class = "form-control" })
26 <div class="form-group">
27 @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" })
28 <div class="col-md-10">
29 @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" })
32 <div class="form-group">
33 <div class="col-md-offset-2 col-md-10">
34 <input type="submit" value="Change password" class="btn btn-default" />
39 @Scripts.Render("~/bundles/jqueryval")