Login.cshtml 1.16 KB
@model ControlPanel.Models.LoginModel

@{
    ViewBag.Title = "Выполнить вход";
}

 @Styles.Render("~/Content/css")

 <div style="display: table; margin: 0 auto; text-align: center;">

<hgroup class="title">
    <h2>Аутентификация</h2>
</hgroup>

@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
    <legend></legend> 
        <ol>
            <li>
                @Html.LabelFor(m => m.UserName)
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </li>
            <li>
                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </li>
            <li>
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
            </li>
        </ol>
        <input type="submit" value="Выполнить вход" />
    </fieldset>
}



</div>




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