summaryrefslogtreecommitdiff
path: root/demos/blog/protected/Portlets/LoginPortlet.tpl
blob: f2ac7f36493d5fe76b958969780a7e0403782fda (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
<div class="portlet">

<h2 class="portlet-title">Login</h2>

<com:TPanel CssClass="portlet-content" DefaultButton="LoginButton">
Username
<com:TRequiredFieldValidator
	ControlToValidate="Username"
	ValidationGroup="login"
	Text="...is required"
	Display="Dynamic"/>
<br/>
<com:TTextBox ID="Username" />
<br/>

Password
<com:TCustomValidator
	ControlToValidate="Password"
	ValidationGroup="login"
	Text="...is invalid"
	Display="Dynamic"
	OnServerValidate="validateUser" />
<br/>
<com:TTextBox ID="Password" TextMode="Password" />

<br/><br/>

<com:TLinkButton
	ID="LoginButton"
	Text="Login"
	ValidationGroup="login"
	CssClass="link-button"
	OnClick="loginButtonClicked" />
<com:THyperLink
	Text="Register"
	NavigateUrl=<%= $this->Service->constructUrl('Users.NewUser') %>
	Visible=<%= TPropertyValue::ensureBoolean($this->Application->Parameters['MultipleUser']) %>
	CssClass="link-button" />

</com:TPanel><!-- end of portlet-content -->

</div><!-- end of portlet -->