mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-10 00:37:54 +02:00
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:
@ -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',
|
||||
|
Reference in New Issue
Block a user