| 1 |
lars |
1 |
<com:TContent ID="Main">
|
|
|
2 |
<h2>Create New User</h2>
|
|
|
3 |
|
|
|
4 |
<fieldset class="signup"><legend>User Details</legend>
|
|
|
5 |
<com:TWizard ID="CreateUserWizard"
|
|
|
6 |
UseDefaultLayout="false"
|
|
|
7 |
NavigationStyle.CssClass="wizardNav"
|
|
|
8 |
OnNextButtonClick="userWizardNextStep"
|
|
|
9 |
OnCompleteButtonClick="createNewUser"
|
|
|
10 |
ShowSideBar="false" >
|
|
|
11 |
<com:TWizardStep>
|
|
|
12 |
<h4>Sign Up for Your New Account</h4>
|
|
|
13 |
<div class="username">
|
|
|
14 |
<com:TLabel ForControl="username" Text="User Name:" />
|
|
|
15 |
<span class="required">*</span>
|
|
|
16 |
<com:TTextBox ID="username" />
|
|
|
17 |
<com:TRequiredFieldValidator
|
|
|
18 |
ControlToValidate="username"
|
|
|
19 |
Display="Dynamic"
|
|
|
20 |
ErrorMessage="Please enter your username."
|
|
|
21 |
ControlCssClass="required-field" />
|
|
|
22 |
<com:TCustomValidator
|
|
|
23 |
ControlToValidate="username"
|
|
|
24 |
Display="Dynamic"
|
|
|
25 |
OnServerValidate="checkUsername" />
|
|
|
26 |
</div>
|
|
|
27 |
<div class="password">
|
|
|
28 |
<com:TLabel ForControl="password" Text="Password:" />
|
|
|
29 |
<span class="required">*</span>
|
|
|
30 |
<com:TTextBox ID="password" TextMode="Password" />
|
|
|
31 |
<com:TRequiredFieldValidator
|
|
|
32 |
ControlToValidate="password"
|
|
|
33 |
Display="Dynamic"
|
|
|
34 |
ErrorMessage="Please enter your password (6 or more characters)."
|
|
|
35 |
ControlCssClass="required-field" />
|
|
|
36 |
<com:TRegularExpressionValidator
|
|
|
37 |
ControlToValidate="password"
|
|
|
38 |
Display="Dynamic"
|
|
|
39 |
RegularExpression="\w{6,}"
|
|
|
40 |
ErrorMessage="Please enter 6 or more characters."
|
|
|
41 |
ControlCssClass="required-field" />
|
|
|
42 |
</div>
|
|
|
43 |
<div class="password">
|
|
|
44 |
<com:TLabel ForControl="password2" Text="Confirm Password:" />
|
|
|
45 |
<span class="required">*</span>
|
|
|
46 |
<com:TTextBox ID="password2" TextMode="Password" />
|
|
|
47 |
<com:TCompareValidator
|
|
|
48 |
ControlToValidate="password"
|
|
|
49 |
ControlToCompare="password2"
|
|
|
50 |
ErrorMessage="The Password and Confirmation Password must match."
|
|
|
51 |
ControlCssClass="required-field" />
|
|
|
52 |
</div>
|
|
|
53 |
<div class="email">
|
|
|
54 |
<com:TLabel ForControl="email" Text="E-Mail Address:" />
|
|
|
55 |
<span class="required">*</span>
|
|
|
56 |
<com:TTextBox ID="email" Style="width:20em"/>
|
|
|
57 |
<com:TRequiredFieldValidator
|
|
|
58 |
ControlToValidate="email"
|
|
|
59 |
Display="Dynamic"
|
|
|
60 |
ErrorMessage="Please enter your E-Mail address."
|
|
|
61 |
ControlCssClass="required-field" />
|
|
|
62 |
<com:TEmailAddressValidator
|
|
|
63 |
ControlToValidate="email"
|
|
|
64 |
Display="Dynamic"
|
|
|
65 |
ErrorMessage="E-Mail address does not seem to be valid."
|
|
|
66 |
ControlCssClass="required-field" />
|
|
|
67 |
</div>
|
|
|
68 |
</com:TWizardStep>
|
|
|
69 |
<com:TWizardStep>
|
|
|
70 |
<com:TLabel ForControl="role" Text="New User Role:" />
|
|
|
71 |
<span class="required">*</span>
|
|
|
72 |
<com:TDropDownList ID="role">
|
|
|
73 |
<com:TListItem Text="Administrator" Value="admin,manager,consultant" />
|
|
|
74 |
<com:TListItem Text="Manager" Value="manager,consultant" />
|
|
|
75 |
<com:TListItem Text="Consultant" Value="consultant" />
|
|
|
76 |
</com:TDropDownList>
|
|
|
77 |
</com:TWizardStep>
|
|
|
78 |
<com:TWizardStep StepType="Complete">
|
|
|
79 |
New account has been successfully created.
|
|
|
80 |
<com:TPanel Visible=<%= !$this->User->isInRole('admin') %> CssClass="wizardNav">
|
|
|
81 |
<com:TButton Text="Continue" OnClick="wizardCompleted"/>
|
|
|
82 |
</com:TPanel>
|
|
|
83 |
</com:TWizardStep>
|
|
|
84 |
</com:TWizard>
|
|
|
85 |
</fieldset>
|
|
|
86 |
|
|
|
87 |
</com:TContent>
|