Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Views/Account/Login.cshtml @ 9604

Last change on this file since 9604 was 9604, checked in by pfleck, 11 years ago

#2063:
Set up basic webpage layout based on WebApplication branch.
Added Asp.Net MVC packages and some helper packages.
Implemented login.

File size: 1.3 KB
Line 
1@model HeuristicLab.Services.Hive.Statistics.Models.LoginModel
2
3@{
4    ViewBag.Title = "Log in";
5}
6
7<h2>Login</h2>
8
9<section id="loginForm">
10@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) {
11    @Html.AntiForgeryToken()
12    @Html.ValidationSummary(true)
13
14    <fieldset>
15        <legend>Account Information</legend>
16        <ol>
17            <li>@Html.LabelFor(m => m.UserName)</li>
18            <li>
19                @Html.TextBoxFor(m => m.UserName)
20                @Html.ValidationMessageFor(m => m.UserName)
21            </li>
22            <li>@Html.LabelFor(m => m.Password)</li>
23            <li>
24                @Html.PasswordFor(m => m.Password)
25                @Html.ValidationMessageFor(m => m.Password)
26            </li>
27            <li>
28                @Html.CheckBoxFor(m => m.RememberMe)
29                @Html.LabelFor(m => m.RememberMe)
30            </li>
31        </ol>
32        <button>Login</button>
33    </fieldset>
34}
35</section>
36
37@section Scripts {
38    @Styles.Render("~/Content/themes/base/css")
39    @Scripts.Render("~/bundles/jqueryui")
40    @Scripts.Render("~/bundles/jqueryval")
41
42    <script>
43        $(function() {
44            $("#loginForm button").button({
45                icons: {
46                    primary: "ui-icon-key"
47                }
48            });
49        });
50    </script>
51}
Note: See TracBrowser for help on using the repository browser.