summaryrefslogtreecommitdiff
path: root/demos/personal/protected/Common/LoginPortlet.tpl
blob: 82f9c0458dbc8b238d5e4108eaeb022012045b36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<com:TPanel CssClass="login" DefaultButton="LoginButton">
	<h4>Login to Site</h4>
	<com:TLabel
		ForControl="Username" 
		Text="User Name" 
		CssClass="label"/>
	<com:TTextBox ID="Username" 
		AccessKey="u" 
		ValidationGroup="login"
		CssClass="textbox"/>
	<com:TRequiredFieldValidator 
		ControlToValidate="Username" 
		ValidationGroup="login"
		Display="Dynamic"
		ErrorMessage="*"/>

	<com:TLabel
		ForControl="Password" 
		Text="Password" 
		CssClass="label"/>
	<com:TTextBox ID="Password" 
		AccessKey="p" 
		CssClass="textbox" 
		ValidationGroup="login"
		TextMode="Password"/>
	<com:TCustomValidator
		ControlToValidate="Password"
		ValidationGroup="login"
		Text="...invalid"
		Display="Dynamic"
		OnServerValidate="validateUser" />

	<div>
	<com:TCheckBox ID="RememberMe" Text="Remember me next time"/>
	</div>

	<com:TImageButton ID="LoginButton"
		OnClick="loginButtonClicked"
		ImageUrl="<%=$this->Page->Theme->BaseUrl.'/images/button-login.gif'%>"
		ValidationGroup="login"
		CssClass="button"/>
	or
	<a href="<%=$this->Service->constructUrl('Register')%>" class="button"><img src="<%=$this->Page->Theme->BaseUrl.'/images/button-create.gif'%>" alt="Create a new account"/></a>
</com:TPanel>