Login.cshtml 1.58 KB
@using CWA.CpoOnline.Models
@model LoginViewModel
@{
    ViewBag.Title = "Log In";
}

<h2>@ViewBag.Title</h2>
    <section id="loginForm">
	@using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "", role = "form" }))
	{
		@Html.AntiForgeryToken()

		@Html.HiddenFor(m => m.UtcOffset)

		<b>Enter your email address and password</b>
		<hr />
		<div class="col-sm-12 col-md-8 col-lg-6">
			@Html.ValidationSummary(true, "", new { @class = "text-danger" })
			<div class="form-group">
				@Html.LabelFor(m => m.Email, new { @class = "form-control-label" })
				@Html.TextBoxFor(m => m.Email, new { @class = "form-control" })
				@Html.ValidationMessageFor(m => m.Email, "", new { @class = "text-danger" })
			</div>
			<div class="form-group">
				@Html.LabelFor(m => m.Password, new { @class = "form-control-label" })
				@Html.PasswordFor(m => m.Password, new { @class = "form-control" })
				@Html.ValidationMessageFor(m => m.Password, "", new { @class = "text-danger" })
			</div>
			<div class="form-group">
				@Html.CheckBoxFor(m => m.RememberMe)
				@Html.LabelFor(m => m.RememberMe)
			</div>
			<div class="form-group">
				<input type="submit" value="Log in" class="btn btn-primary" />
			</div>
			@*<p>@Html.ActionLink("Register as a new user", "Register")</p>*@
			<p>@Html.ActionLink("Forgot your password?", "ForgotPassword")</p>
		</div>
	}
</section>





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

	<script>
		$(function () {
			SetElementValueToUtcOffset("#UtcOffset");
		});
	</script>
}