Login.cshtml
1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@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>
}