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

117 lines
4.8 KiB
Plaintext

@model Weee.ViewModels.ResendConfirmEmailViewModel
@{
ViewBag.Title = "ResendEmail";
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(new { ReturnUrl = ViewBag.ReturnUrl }))
{
@Html.AntiForgeryToken()
<div class="form-group docs-form-group">
<span class="text-danger">
<p class="font-weight-bold confirm-msg">@Resource.AccountEmailNotConfirm</p>
@if (ViewBag.Message != null)
{
<p class="font-weight-bold " style="color: green">@ViewBag.Message</p>
}
</span>
</div>
<div class="form-group docs-form-group" style="display: none;">
<div class="docs-form-element">
<div class="docs-textbox-wrap">
@Html.EditorFor(m => m.UserName, new { htmlAttributes = new { @class = "docs-textbox", @id = "userName", @value = ViewBag.userName } })
</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 { @class = "docs-textbox", @placeholder = "郵箱" } })
</div>
</div>
</div>
<div class="form-group docs-form-group row">
<div class="docs-textbox-wrap no-border">
@*@Html.ActionLink(Resource.Send, "SendEmail", "account", new { userName = ViewBag.userName, ViewMode )}, new { @class = "docs-textbox btn docs-btn"})*@
<input type="submit" value="@Resource.Send" class="docs-textbox btn docs-btn" />
</div>
</div>
<div class="form-group docs-form-group row">
<div class="docs-textbox-wrap no-border">
@Html.ActionLink(Resource.ReturnToLogin, "index", "home", new { }, new { @class = "docs-textbox btn docs-btn", @id = "return-to-login" })
</div>
</div>
}
</div>
</div>
@if (ViewBag.Message != null)
{
<style>
.confirm-msg {
display: none;
}
</style>
}
<style>
#return-to-login {
padding-top: 10px !important;
}
</style>