summaryrefslogtreecommitdiff
path: root/demos/time-tracker/protected/pages/TimeTracker/UserCreate.page
diff options
context:
space:
mode:
Diffstat (limited to 'demos/time-tracker/protected/pages/TimeTracker/UserCreate.page')
-rw-r--r--demos/time-tracker/protected/pages/TimeTracker/UserCreate.page12
1 files changed, 11 insertions, 1 deletions
diff --git a/demos/time-tracker/protected/pages/TimeTracker/UserCreate.page b/demos/time-tracker/protected/pages/TimeTracker/UserCreate.page
index fda7ba9b..41d97391 100644
--- a/demos/time-tracker/protected/pages/TimeTracker/UserCreate.page
+++ b/demos/time-tracker/protected/pages/TimeTracker/UserCreate.page
@@ -56,7 +56,17 @@
ControlToValidate="email"
Display="Dynamic"
ErrorMessage="E-Mail address does not seem to be valid."
- ControlCssClass="required-field" /> </div>
+ ControlCssClass="required-field" />
+ </div>
+ <com:TPanel Visible=<%= $this->User->isInRole('admin') %> >
+ <com:TLabel ForControl="role" Text="New User Role:" />
+ <span class="required">*</span>
+ <com:TDropDownList ID="role">
+ <com:TListItem Text="Administrator" Value="admin,manager,consultant" />
+ <com:TListItem Text="Manager" Value="manager,consultant" />
+ <com:TListItem Text="Consultant" Value="consultant" />
+ </com:TDropDownList>
+ </com:TPanel>
<div class="create">
<com:TButton Text="Create User" OnClick="createNewUser" />
</div>