Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Views/Account/LogOn.aspx @ 4729

Last change on this file since 4729 was 4729, checked in by wtollsch, 14 years ago

#1198 Fixed naming and added authentication against HL

File size: 1.8 KB
Line 
1<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<HLWebPluginHost.Models.LogOnModel>" %>
2
3<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
4    Log On
5</asp:Content>
6
7<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
8    <h2>Log On</h2>
9    <p>
10        Please enter your username and password. <%: Html.ActionLink("Register", "Register") %> if you don't have an account.
11    </p>
12
13    <% using (Html.BeginForm()) { %>
14        <%: Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.") %>
15        <div>
16            <fieldset>
17                <legend>Account Information</legend>
18               
19                <div class="editor-label">
20                    <%: Html.LabelFor(m => m.UserName) %>
21                </div>
22                <div class="editor-field">
23                    <%: Html.TextBoxFor(m => m.UserName) %>
24                    <%: Html.ValidationMessageFor(m => m.UserName) %>
25                </div>
26               
27                <div class="editor-label">
28                    <%: Html.LabelFor(m => m.Password) %>
29                </div>
30                <div class="editor-field">
31                    <%: Html.PasswordFor(m => m.Password) %>
32                    <%: Html.ValidationMessageFor(m => m.Password) %>
33                </div>
34               
35                <div class="editor-label">
36                    <%: Html.CheckBoxFor(m => m.RememberMe) %>
37                    <%: Html.LabelFor(m => m.RememberMe) %>
38                </div>
39               
40                <p>
41                    <input type="submit" value="Log On" />
42                </p>
43            </fieldset>
44        </div>
45    <% } %>
46</asp:Content>
Note: See TracBrowser for help on using the repository browser.