demo20230512/Areas/Certification/Views/Account/ChangePassword.cshtml

62 lines
2.4 KiB
Plaintext
Raw Normal View History

2023-05-12 10:20:28 +08:00
@using Resources
@model Weee.Areas.Certification.Models.ChangePassword
@{
ViewBag.Title = "Change Password";
Layout = "~/Areas/Certification/Views/Shared/_CertificationLayout.cshtml";
}
@using (Html.BeginForm("ChangePassword", "Account", FormMethod.Post, new { @class = "form-horizontal" }))
{
@Html.AntiForgeryToken()
<div class="row panel panel-default">
<div class="col-xs-12">
<h2>@Resource.StaticLabelChangePassword</h2>
<hr />
</div>
<div class="col-xs-12">
<div class="col-xs-11">
<div class="form-group">
@Html.LabelFor(m => m.OriginalPassword, new { @class = "col-sm-4 control-label" })
<div class="col-sm-8">
@Html.PasswordFor(m => m.OriginalPassword, new { @class = "form-control" })
<span class="docs-validate-area">
@ViewBag.PasswordIsInvalid
@Html.ValidationMessageFor(m => m.OriginalPassword, "", new { @class = "text-danger" })
</span>
</div>
</div>
<div class="form-group">
@Html.LabelFor(m => m.NewPassword, new { @class = "col-sm-4 control-label" })
<div class="col-sm-8">
@Html.PasswordFor(m => m.NewPassword, new { @class = "form-control" })
<span class="docs-validate-area">
@Html.ValidationMessageFor(m => m.NewPassword, "", new { @class = "text-danger" })
</span>
</div>
</div>
<div class="form-group">
@Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-sm-4 control-label" })
<div class="col-sm-8">
@Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" })
<span class="docs-validate-area">
@Html.ValidationMessageFor(m => m.ConfirmPassword, "", new { @class = "text-danger" })
</span>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-4 col-sm-8">
<button type="submit" class="btn docs-btn-blue">@Resource.StaticLabelGlobal_Save</button>
<a href="~/Certification" class="btn docs-btn-default">@Resource.StaticLabelGlobal_Cancel</a>
</div>
</div>
</div>
</div>
</div>
}