initial commit
[CPE_learningsite] / CPE / CPE.App / CPE.App.Web / Views / Account / Login.cshtml
1 @using CPE.App.Web.Models
2 @model LoginViewModel
3 @{
4     ViewBag.Title = "Log in";
5 }
6
7 <h2>@ViewBag.Title.</h2>
8 <div class="row">
9     <div class="col-md-8">
10         <section id="loginForm">
11             @using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
12             {
13                 @Html.AntiForgeryToken()
14                 <h4>Use a local account to log in.</h4>
15                 <hr />
16                 @Html.ValidationSummary(true, "", new { @class = "text-danger" })
17                 <div class="form-group">
18                     @Html.LabelFor(m => m.Email, new { @class = "col-md-2 control-label" })
19                     <div class="col-md-10">
20                         @Html.TextBoxFor(m => m.Email, new { @class = "form-control" })
21                         @Html.ValidationMessageFor(m => m.Email, "", new { @class = "text-danger" })
22                     </div>
23                 </div>
24                 <div class="form-group">
25                     @Html.LabelFor(m => m.Password, new { @class = "col-md-2 control-label" })
26                     <div class="col-md-10">
27                         @Html.PasswordFor(m => m.Password, new { @class = "form-control" })
28                         @Html.ValidationMessageFor(m => m.Password, "", new { @class = "text-danger" })
29                     </div>
30                 </div>
31                 <div class="form-group">
32                     <div class="col-md-offset-2 col-md-10">
33                         <div class="checkbox">
34                             @Html.CheckBoxFor(m => m.RememberMe)
35                             @Html.LabelFor(m => m.RememberMe)
36                         </div>
37                     </div>
38                 </div>
39                 <div class="form-group">
40                     <div class="col-md-offset-2 col-md-10">
41                         <input type="submit" value="Log in" class="btn btn-default" />
42                     </div>
43                 </div>
44                 <p>
45                     @Html.ActionLink("Register as a new user", "Register")
46                 </p>
47                 @* Enable this once you have account confirmation enabled for password reset functionality
48                     <p>
49                         @Html.ActionLink("Forgot your password?", "ForgotPassword")
50                     </p>*@
51             }
52         </section>
53     </div>
54     <div class="col-md-4">
55         <section id="socialLoginForm">
56             @Html.Partial("_ExternalLoginsListPartial", new ExternalLoginListViewModel { ReturnUrl = ViewBag.ReturnUrl })
57         </section>
58     </div>
59 </div>
60
61 @section Scripts {
62     @Scripts.Render("~/bundles/jqueryval")
63 }