summaryrefslogtreecommitdiff
path: root/demos/blog/protected/Portlets/LoginPortlet.tpl
blob: 6f8c5d4a92b71a8594286e63c303022fd854b2ac (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
<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/>
<com:TLinkButton
	ID="LoginButton"
	Text="Login"
	ValidationGroup="login"
	OnClick="loginButtonClicked" />
| <a href="<%= $this->Service->constructUrl('Users.NewUser') %>">Register</a>

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

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