demo20230512/Views/Profile/ChangePassword.cshtml

72 lines
2.9 KiB
Plaintext
Raw Permalink Normal View History

2023-05-12 10:20:28 +08:00
@model Weee.ViewModels.ProfileChangePasswordViewModel
@section PageStyles {
@Styles.Render("~/account/css")
@Styles.Render("~/bootstrap/css")
<link type="text/css" rel="stylesheet" href="~/Browser_Local/css/home.css" />
<link type="text/css" rel="stylesheet" href="~/Browser_Local/css/html5-doctor-reset-stylesheet.css" />
}
@section PageScripts
{
@Scripts.Render("~/jQuery")
@Scripts.Render("~/bootstrap")
}
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="col-md-2"></div>
<div class="col-md-8">
@if (ViewBag.SuccessMessage != null)
{
<div class="alert alert-success" style="margin-top: 24px;" role="alert">
@ViewBag.SuccessMessage @Resource.Click <b>@Html.ActionLink(Resource.Here, "Index", "Profile", new { }, new { })</b> @Resource.ReturnToEditCompanyPage
</div>
}
@if (ViewBag.FailMessage != null)
{
<div class="alert alert-warning" style="margin-top: 24px;" role="alert">
@ViewBag.FailMessage
</div>
}
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<h1 style="margin-top: 24px;">@Resource.StaticLabelChangePassword</h1>
<hr />
<div class="form-horizontal">
<div class="form-group">
@Html.LabelFor(model => model.OriginalPassword, new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.PasswordFor(model => model.OriginalPassword, new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.OriginalPassword, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.NewPassword, new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.PasswordFor(model => model.NewPassword, new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.NewPassword, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.NewPassword2, new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.PasswordFor(model => model.NewPassword2, new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.NewPassword2, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input type="submit" value="@Resource.StaticLabelGlobal_Confirm" class="btn btn-default" />
@Html.ActionLink(Resource.StaticLabelGlobal_Cancel, "index", "profile", new { }, new { @class = "btn btn-default" })
</div>
</div>
</div>
}
</div>
<div class="col-md-2"></div>