summaryrefslogtreecommitdiff
path: root/app/frontend/controls/LoginBox.tpl
blob: 070ab86632a1ff1743d60a99f059a0541e620041 (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
<%[ Username: ]%>
<com:TTextBox ID="Login"
              ValidationGroup="LoginGroup" />
<com:TRequiredFieldValidator
    ControlToValidate="Login"
    Display="Dynamic"
    ValidationGroup="LoginGroup">
  <prop:ErrorMessage><%[ Username cannot be empty ]%></prop:ErrorMessage>
</com:TRequiredFieldValidator>
<br />
<%[ Password: ]%>
<com:TTextBox ID="Password"
              TextMode="Password"
              ValidationGroup="LoginGroup" />
<com:TRequiredFieldValidator
    ControlToValidate="Password"
    Display="Dynamic"
    ValidationGroup="LoginGroup">
  <prop:ErrorMessage><%[ Password cannot be empty ]%></prop:ErrorMessage>
</com:TRequiredFieldValidator>
<com:TCustomValidator
    ControlToValidate="Password"
    OnServerValidate="validatePassword"
    Display="Dynamic"
    ValidationGroup="LoginGroup">
  <prop:ErrorMessage><%[ Username and password don't match ]%></prop:ErrorMessage>
</com:TCustomValidator>
<br />
<com:TButton
    OnCommand="loginUser"
    ValidationGroup="LoginGroup">
  <prop:Text><%[ Login ]%></prop:Text>
</com:TButton>