+// Controls for "Assign to timesheet" block.
+if ($useAssignToTimesheet) {
+ $assign_timesheet_select_options = array('1'=>$i18n->get('dropdown.all'),'2'=>$i18n->get('dropdown.select'));
+ $form->addInput(array('type'=>'combobox',
+ 'name'=>'assign_timesheet_select_options',
+ 'data'=>$assign_timesheet_select_options,
+ 'value'=>$cl_assign_timesheet_select_option));
+ $form->addInput(array('type'=>'combobox',
+ 'name'=>'timesheet',
+ 'data'=>$timesheets,
+ 'datakeys'=>array('id','name'),
+ 'value'=>$cl_timesheet_option,
+ 'empty'=>array(''=>$i18n->get('dropdown.select_timesheet'))));
+ $form->addInput(array('type'=>'submit','name'=>'btn_assign_timesheet','value'=>$i18n->get('button.submit')));
+ $smarty->assign('use_assign_to_timesheet', true);
+}
+