diff options
author | wei <> | 2006-07-17 23:19:39 +0000 |
---|---|---|
committer | wei <> | 2006-07-17 23:19:39 +0000 |
commit | 319df8f534520c8c926d0cdaa1f5577c7bd8a909 (patch) | |
tree | 743a3a2e3e7092e0f474baf8592b3ba3824fc506 /demos/time-tracker/protected/pages/TimeTracker/UserCreate.page | |
parent | b230beea20bc18f05d51b8e1f76c99c74a12fff4 (diff) |
Update time-tracker application
Diffstat (limited to 'demos/time-tracker/protected/pages/TimeTracker/UserCreate.page')
-rw-r--r-- | demos/time-tracker/protected/pages/TimeTracker/UserCreate.page | 12 |
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>
|