10
|
1 @model Agendas.Web.Models.LogOnModel
|
|
2
|
|
3 @{
|
|
4 ViewBag.Title = "Log On";
|
|
5 }
|
|
6
|
|
7 <h2>Log On</h2>
|
|
8 <p>
|
|
9 Please enter your username and password. @Html.ActionLink("Register", "Register") if you don't have an account.
|
|
10 </p>
|
|
11
|
|
12 <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
|
|
13 <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
|
|
14
|
|
15 @Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")
|
|
16
|
|
17 @using (Html.BeginForm()) {
|
|
18 <div>
|
|
19 <fieldset>
|
|
20 <legend>Account Information</legend>
|
|
21
|
|
22 <div class="editor-label">
|
|
23 @Html.LabelFor(m => m.UserName)
|
|
24 </div>
|
|
25 <div class="editor-field">
|
|
26 @Html.TextBoxFor(m => m.UserName)
|
|
27 @Html.ValidationMessageFor(m => m.UserName)
|
|
28 </div>
|
|
29
|
|
30 <div class="editor-label">
|
|
31 @Html.LabelFor(m => m.Password)
|
|
32 </div>
|
|
33 <div class="editor-field">
|
|
34 @Html.PasswordFor(m => m.Password)
|
|
35 @Html.ValidationMessageFor(m => m.Password)
|
|
36 </div>
|
|
37
|
|
38 <div class="editor-label">
|
|
39 @Html.CheckBoxFor(m => m.RememberMe)
|
|
40 @Html.LabelFor(m => m.RememberMe)
|
|
41 </div>
|
|
42
|
|
43 <p>
|
|
44 <input type="submit" value="Log On" />
|
|
45 </p>
|
|
46 </fieldset>
|
|
47 </div>
|
|
48 }
|