-// Add timesheet assignment selector.
-$showTimesheetDropdown = $user->isPluginEnabled('ts') &&
- ($user->can('view_own_timesheets') || $user->can('view_timesheets') ||
- $user->can('view_all_timesheets') || ($user->can('view_client_timesheets') && $user->can('view_client_unapproved')));
-if ($showTimesheetDropdown) {
- $form->addInput(array('type'=>'combobox',
- 'name'=>'timesheet',
- 'style'=>'width: 250px;',
- 'data'=>array(TIMESHEET_NOT_ASSIGNED=>$i18n->get('form.reports.include_not_assigned'),
- TIMESHEET_ASSIGNED=>$i18n->get('form.reports.include_assigned'),
- TIMESHEET_PENDING=>$i18n->get('form.reports.include_pending'),
- TIMESHEET_APPROVED=>$i18n->get('form.reports.include_approved'),
- TIMESHEET_NOT_APPROVED=>$i18n->get('form.reports.include_not_approved')),
- 'empty'=>array(''=>$i18n->get('dropdown.all'))
- ));
-}
-$showTimesheetCheckbox = $user->isPluginEnabled('ts') &&
- ($user->can('view_own_timesheets') || $user->can('view_timesheets') ||
- $user->can('view_all_timesheets') || $user->can('view_client_timesheets'));
-