summaryrefslogtreecommitdiff
path: root/demos/personal/protected/Common/LoginPortlet.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'demos/personal/protected/Common/LoginPortlet.tpl')
-rw-r--r--demos/personal/protected/Common/LoginPortlet.tpl44
1 files changed, 44 insertions, 0 deletions
diff --git a/demos/personal/protected/Common/LoginPortlet.tpl b/demos/personal/protected/Common/LoginPortlet.tpl
new file mode 100644
index 00000000..82f9c045
--- /dev/null
+++ b/demos/personal/protected/Common/LoginPortlet.tpl
@@ -0,0 +1,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> \ No newline at end of file