54 lines
2 KiB
Text
54 lines
2 KiB
Text
@using WebsitePanel.WebDavPortal.Resources
|
|
@using WebsitePanel.WebDavPortal.UI.Routes
|
|
@model WebsitePanel.WebDavPortal.Models.AccountModel
|
|
@{
|
|
ViewBag.Title = "Login";
|
|
//Layout = "~/Views/Shared/_Layout.cshtml";
|
|
}
|
|
|
|
<br/>
|
|
<div class="container row">
|
|
<form class="form-horizontal" method="POST" role="form">
|
|
@Html.HiddenFor(x=>x.PasswordResetEnabled)
|
|
<div class="form-group">
|
|
<h3 class="col-sm-offset-1">Sign In</h3>
|
|
</div>
|
|
@if (Model != null && !string.IsNullOrEmpty(Model.LdapError))
|
|
{
|
|
<div class="form-group">
|
|
<span class="col-sm-offset-1" style="color: #A94442; font-weight: bold;">@Model.LdapError</span>
|
|
</div>
|
|
}
|
|
<div class="form-group">
|
|
<label for="inputLogin" class="col-sm-2 control-label">Login</label>
|
|
<div class="col-sm-10">
|
|
@Html.TextBoxFor(x => x.Login, new { @class = "form-control", id = "inputLogin", placeholder = "Login", autofocus = "autofocus" })
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="inputPassword" class="col-sm-2 control-label">Password</label>
|
|
<div class="col-sm-10">
|
|
@Html.PasswordFor(x => x.Password, new { @class = "form-control", id = "inputPassword", placeholder = "Password" })
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
<button type="submit" class="btn btn-default">Sign in</button>
|
|
@if (Model.PasswordResetEnabled)
|
|
{
|
|
<a href="@Url.RouteUrl(AccountRouteNames.PasswordResetLogin)" class="forgot-your-password-link">@UI.ForgotYourPassword</a>
|
|
}
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
|
|
@section scripts
|
|
{
|
|
<script>
|
|
$(document).ready(function () {
|
|
$('[autofocus]').focus();
|
|
});
|
|
</script>
|
|
}
|