CaffGeek/MBACNationals

View on GitHub
Web.Admin/Views/Account/Login.cshtml

Summary

Maintainability
Test Coverage
@model WebFrontend.Models.Account.LoginModel

@{
    ViewBag.Title = "Log in";
}

<section id="loginForm">
    @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
    {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)

        <fieldset>
            <legend>@ViewBag.Title</legend>
            
            @Html.LabelFor(m => m.UserName)
            @Html.TextBoxFor(m => m.UserName)
            @Html.ValidationMessageFor(m => m.UserName)
            
            @Html.LabelFor(m => m.Password)
            @Html.PasswordFor(m => m.Password)
            @Html.ValidationMessageFor(m => m.Password)
            
            <input type="submit" value="Log in" />
        </fieldset>
    }
</section>

@*
    <section class="social" id="socialLoginForm">
        <h2>Use another service to log in.</h2>
        @Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })
    </section>
*@

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}