1 @using Projects.Models
4 ViewBag.Title = "Log in";
7 <h2>@ViewBag.Title.</h2>
10 <section id="loginForm">
11 @using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
13 @Html.AntiForgeryToken()
14 <h4>Use a local account to log in.</h4>
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" })
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" })
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)
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" />
45 @Html.ActionLink("Register as a new user", "Register")
47 @* Enable this once you have account confirmation enabled for password reset functionality
49 @Html.ActionLink("Forgot your password?", "ForgotPassword")
54 <div class="col-md-4">
55 <section id="socialLoginForm">
56 @Html.Partial("_ExternalLoginsListPartial", new ExternalLoginListViewModel { ReturnUrl = ViewBag.ReturnUrl })
62 @Scripts.Render("~/bundles/jqueryval")