WIP timesheet timer: ask user to start/stop working time with session/login/logout

if working time is not disabled in timesheet config, or asking is disabled in user preferences
This commit is contained in:
ralf
2022-10-13 16:30:35 +02:00
parent aa139d2f15
commit 49f608159c
5 changed files with 138 additions and 42 deletions

View File

@ -165,6 +165,18 @@ class timesheet_hooks
if (is_null(self::$timesheet_bo)) self::$timesheet_bo = new timesheet_bo();
if (self::$timesheet_bo->status_labels)
{
$settings['workingtime_session'] = array(
'type' => 'select',
'label' => 'Ask to start and stop working time with session',
'name' => 'workingtime_session',
'values' => [
'' => 'yes',
'no' => 'no',
],
'help' => 'Would you like to be asked, to start and stop working time, when login in or off',
'xmlrpc' => True,
'admin' => False,
);
$settings['predefined_status'] = array(
'type' => 'select',
'label' => 'Status of created timesheets',