mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
#12477 Added the option to edit bulk users and adjusted the home screen
This commit is contained in:
parent
e80b590214
commit
4e9f2ac9d8
@ -269,15 +269,14 @@ $size_pagination .= '</div>';
|
|||||||
// Home screen.
|
// Home screen.
|
||||||
$home_screen = '<div class="label_select"><p class="edit_user_labels">'.__('Home screen').ui_print_help_tip(__('User can customize the home page. By default, will display \'Agent Detail\'. Example: Select \'Other\' and type index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=1 to show agent detail view'), true).'</p>';
|
$home_screen = '<div class="label_select"><p class="edit_user_labels">'.__('Home screen').ui_print_help_tip(__('User can customize the home page. By default, will display \'Agent Detail\'. Example: Select \'Other\' and type index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=1 to show agent detail view'), true).'</p>';
|
||||||
$values = [
|
$values = [
|
||||||
'-1' => __('No change'),
|
HOME_SCREEN_DEFAULT => __('Default'),
|
||||||
'Default' => __('Default'),
|
HOME_SCREEN_VISUAL_CONSOLE => __('Visual console'),
|
||||||
'Visual console' => __('Visual console'),
|
HOME_SCREEN_EVENT_LIST => __('Event list'),
|
||||||
'Event list' => __('Event list'),
|
HOME_SCREEN_GROUP_VIEW => __('Group view'),
|
||||||
'Group view' => __('Group view'),
|
HOME_SCREEN_TACTICAL_VIEW => __('Tactical view'),
|
||||||
'Tactical view' => __('Tactical view'),
|
HOME_SCREEN_ALERT_DETAIL => __('Alert detail'),
|
||||||
'Alert detail' => __('Alert detail'),
|
HOME_SCREEN_OTHER => __('Other'),
|
||||||
'Other' => __('Other'),
|
HOME_SCREEN_DASHBOARD => __('Dashboard'),
|
||||||
'Dashboard' => __('Dashboard'),
|
|
||||||
];
|
];
|
||||||
|
|
||||||
$home_screen .= html_print_select(
|
$home_screen .= html_print_select(
|
||||||
|
@ -80,12 +80,17 @@ $options_agents = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
if (check_acl($config['id_user'], 0, 'UM')) {
|
if (check_acl($config['id_user'], 0, 'UM')) {
|
||||||
$options_users['edit_users'] = __('Edit users in bulk');
|
$options_users = [
|
||||||
|
'edit_users' => __('Edit users in bulk'),
|
||||||
|
];
|
||||||
|
|
||||||
if (is_metaconsole() === false) {
|
if (is_metaconsole() === false) {
|
||||||
$options_users = [
|
$options_profiles = [
|
||||||
'add_profiles' => __('Bulk profile add'),
|
'add_profiles' => __('Bulk profile add'),
|
||||||
'delete_profiles' => __('Bulk profile delete'),
|
'delete_profiles' => __('Bulk profile delete'),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
$options_users = array_merge(array_slice($options_users, 0, count($options_users)), $options_profiles, array_slice($options_users, count($options_users)));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$options_users = [];
|
$options_users = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user