demo20230512/Views/Account/ForgetPass.cshtml
2023-05-12 10:20:28 +08:00

105 lines
4.4 KiB
Plaintext

@model Weee.ViewModels.ForgetPassViewModel
@{
ViewBag.Title = "忘記密碼";
Layout = "~/Views/Shared/_LoginLayout.cshtml";
}
@if (Model == null || Model.SiteInfo == null || string.IsNullOrWhiteSpace(Model.SiteInfo.loginImagePath))
{
<div class="login-item left-wrapper">
@if (Model != null && Model.SiteInfo != null && !string.IsNullOrWhiteSpace(Model.SiteInfo.loginImagePath))
{
<div class="login-img-logo" style="background-color:@(string.IsNullOrWhiteSpace(Model.SiteInfo.loginImageBackGroundColor) ? "#ffffff" : Model.SiteInfo.loginImageBackGroundColor)">
<a href="~/account/version">
<img src="~/Browser_Local/WebFilesRoot/WebSiteInfo/@(Model.SiteInfo.loginImagePath)"
style="@(string.IsNullOrWhiteSpace(Model.SiteInfo.loginImageStyle) ? "width:50%;" : Model.SiteInfo.loginImageStyle)" />
</a>
</div>
}
else
{
<div class="login-img-logo">
<img src="~/Browser_Local/img/Q-Carbon-logo-02.svg" style="padding-left: 1rem;" />
</div>
<div class="login-img">
<img src="~/Browser_Local/img/Q-Carbon-02.svg" />
</div>
}
<div class="login-title">
<div style="font-size: 3rem">
@((Model==null || Model.SiteInfo==null || Model.SiteInfo.text1welcome==null ) ? "Welcome to" : Model.SiteInfo.text1welcome)
</div>
<div style="font-size: 4.5rem">
<a href="~/account/version" style="color: white; text-decoration: none;">
<b>@((Model == null || Model.SiteInfo == null || Model.SiteInfo.text1welcome == null) ? "Q-Carbon!" : Model.SiteInfo.text2Qcarbon)</b>
</a>
</div>
</div>
</div>
}
else
{
@* 逢甲區 *@
@*<img src="~/Browser_Local/img/NetZero logo_1.gif" style="width:600px;height:600px;margin-top:150px;margin-left:10px" />*@
<div style="background-color:@(string.IsNullOrWhiteSpace(Model.SiteInfo.loginImageBackGroundColor) ? "#ffffff" : Model.SiteInfo.loginImageBackGroundColor)">
<a href="~/account/version">
<img src="~/Browser_Local/WebFilesRoot/WebSiteInfo/@(Model.SiteInfo.loginImagePath)"
style="@(string.IsNullOrWhiteSpace(Model.SiteInfo.loginImageStyle) ? "width:50%;" : Model.SiteInfo.loginImageStyle)" />
</a>
</div>
}
<div class="login-item right-wrapper">
<div>
<div class="docs-login-header">
<h1>忘記密碼</h1>
</div>
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-group docs-form-group">
<div class="docs-form-element">
<div class="docs-textbox-wrap">
@Html.EditorFor(m => m.UserName, new { htmlAttributes = new { @class = "docs-textbox", @placeholder = "帳號" } })
</div>
</div>
</div>
<div class="form-group docs-form-group">
<div class="docs-form-element">
<div class="docs-textbox-wrap">
@Html.EditorFor(m => m.Email, new { htmlAttributes = new { @type = "email", @class = "docs-textbox", @placeholder = "Email" } })
</div>
</div>
</div>
<div class="form-group docs-form-group">
<span class="text-danger">
@Html.ValidationSummary(true)
@if (ViewBag.SuccessSendResetPasswordEmail != "")
{
<p class="font-weight-bold" style="color: green;">@ViewBag.SuccessSendResetPasswordEmail</p>
}
<p class="text-danger" id="user-name-required" style="display: none;">@Resource.UserAccountNameRequired</p>
</span>
<input type="hidden" value="1" name="DoSearch" />
</div>
<div class="form-group docs-form-group">
<div class="form-group docs-form-group row">
<div class="docs-textbox-wrap no-border">
<input type="submit" value="發送至信箱" class="docs-textbox btn docs-btn" />
</div>
</div>
</div>
}
</div>
</div>
@Scripts.Render("~/jQuery")
@Scripts.Render("~/bootstrap")