You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.8 KiB
40 lines
1.8 KiB
@{
|
|
HtmlTitle = ViewContext.ViewData.ModelMetadata.ModelType.GetDisplayName();
|
|
var controller = this.ViewContext.RouteData.Values["controller"].ToString();
|
|
var action = this.ViewContext.RouteData.Values["action"].ToString();
|
|
var url = HtmlAction ?? (ViewData.Keys.Any(o => o.ToLower() == "returnurl") ? Url.Action(null, null, new { ReturnUrl = ViewData["ReturnUrl"] }) : Url.Action(null, null));
|
|
}
|
|
<div class="card card-info">
|
|
<div class="card-header">
|
|
<h3 class="card-title">@HtmlTitle</h3>
|
|
</div>
|
|
<form action="@url" method="post" class="form-horizontal">
|
|
<div class="card-body">
|
|
@Html.AntiForgeryToken()
|
|
<div class="form-group row">
|
|
<div class="col-sm-2 col-form-label"></div>
|
|
@Html.ValidationSummary(true, "错误:", new { @class = "text-danger col-sm-8" }, "div")
|
|
</div>
|
|
@(await Html.PartialAsync("/Views/Shared/EditorTemplates/Input.cshtml"))
|
|
<div class="form-group row">
|
|
<div class="col-sm-2"> </div>
|
|
<div class="col-sm-8">
|
|
@if (!DisableBackUrl && string.IsNullOrEmpty(BackUrl))
|
|
{
|
|
BackUrl = Url.Action("Index", null);
|
|
<a class="btn btn-default" href="@BackUrl">
|
|
返回
|
|
</a>
|
|
}
|
|
<button class="btn btn-primary" type="submit">
|
|
确定
|
|
</button>
|
|
@if (controller == "Account" && action == "Login")
|
|
{
|
|
<a href="@Url.Action("ForgotPassword")">忘记密码?</a>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div> |