BuildFeed/Views/support/login.cshtml
2014-10-10 23:57:02 +01:00

68 lines
2.1 KiB
Plaintext

@model BuildFeed.Models.ViewModel.LoginUser
@{
ViewBag.Title = "Login | BuildFeed";
Html.EnableClientValidation();
Html.EnableUnobtrusiveJavaScript();
}
<h2>Login to BuildFeed</h2>
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
if (ViewData["ErrorMessage"] != null)
{
<p class="text-danger">
@ViewData["ErrorMessage"]
</p>
}
<div class="form-horizontal">
<div class="form-group">
@Html.LabelFor(model => model.UserName, new { @class = "control-label col-md-2" })
<div class="col-md-10">
<div class="row">
<div class="col-sm-6">
@Html.TextBoxFor(model => model.UserName, new { @class = "form-control" })
</div>
</div>
@Html.ValidationMessageFor(model => model.UserName)
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.Password, new { @class = "control-label col-md-2" })
<div class="col-md-10">
<div class="row">
<div class="col-sm-6">
@Html.PasswordFor(model => model.Password, new { @class = "form-control" })
</div>
</div>
@Html.ValidationMessageFor(model => model.Password)
</div>
</div>
<div class="form-group">
<div class="col-md-10 col-md-offset-2">
<div class="row">
<div class="col-sm-6">
<label for="RememberMe" class="checkbox checkbox-inline">@Html.CheckBoxFor(model => model.RememberMe) @Html.DisplayNameFor(model => model.RememberMe)</label>
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input type="submit" value="Login" class="btn btn-primary" />
</div>
</div>
</div>
}
@section Scripts
{
@Scripts.Render("~/bundles/jqueryval");
}