Files
LeafWeb/WebCms/Views/MacroPartials/Membership/Login.cshtml
T
2020-08-18 21:06:08 -04:00

28 lines
960 B
Plaintext

@inherits Umbraco.Web.Macros.PartialViewMacroPage
@using System.Web.Mvc.Html
@using Umbraco.Web
@using Umbraco.Web.Models
@using Umbraco.Web.Controllers
@{
var loginModel = new LoginModel { RedirectUrl = "/leaf-data/search/" };
}
<div class="container mt-3">
<div class="row justify-content-center">
<div class="col-lg-4 card card-body bg-light">
@using (Html.BeginUmbracoForm<UmbLoginController>("HandleLogin"))
{
@Html.EditorFor(m => loginModel.Username, new {labelText = "Email"})
@Html.EditorFor(m => loginModel.Password, "PasswordWithForgotLink")
@Html.ValidationSummary("loginModel", true)
<button class="btn btn-primary pull-right mt-3">Login</button>
@Html.HiddenFor(m => loginModel.RedirectUrl)
}
</div>
</div>
<div class="row justify-content-center mt-lg-3">
<p>Don't have an account? <a href="/membership/register">Register here</a> </p>
</div>
</div>