mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#10081 Add option homescreen in metaconsole again
This commit is contained in:
parent
0bc18b47db
commit
c1e35a5d17
@ -608,7 +608,7 @@ $userManagementTable->data['fields_blocksize_eventfilter'][1] = html_print_selec
|
|||||||
false,
|
false,
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
if (is_metaconsole() === false) {
|
|
||||||
// Home screen table.
|
// Home screen table.
|
||||||
$homeScreenTable = new stdClass();
|
$homeScreenTable = new stdClass();
|
||||||
$homeScreenTable->class = 'w100p full_section';
|
$homeScreenTable->class = 'w100p full_section';
|
||||||
@ -642,7 +642,7 @@ if (is_metaconsole() === false) {
|
|||||||
|
|
||||||
$userManagementTable->rowclass['homescreen_table'] = 'w100p';
|
$userManagementTable->rowclass['homescreen_table'] = 'w100p';
|
||||||
$userManagementTable->data['homescreen_table'] = html_print_table($homeScreenTable, true);
|
$userManagementTable->data['homescreen_table'] = html_print_table($homeScreenTable, true);
|
||||||
}
|
|
||||||
|
|
||||||
if (is_metaconsole() === true && users_is_admin() === true) {
|
if (is_metaconsole() === true && users_is_admin() === true) {
|
||||||
$userManagementTable->rowclass['search_custom1_looknfeel'] = 'field_half_width';
|
$userManagementTable->rowclass['search_custom1_looknfeel'] = 'field_half_width';
|
||||||
|
@ -462,7 +462,7 @@ $usr_groups = (users_get_groups($config['id_user'], 'AR', $display_all_group));
|
|||||||
$id_usr = $config['id_user'];
|
$id_usr = $config['id_user'];
|
||||||
|
|
||||||
$skin = '';
|
$skin = '';
|
||||||
if (!$meta) {
|
|
||||||
$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 = [
|
||||||
'Default' => __('Default'),
|
'Default' => __('Default'),
|
||||||
@ -520,19 +520,7 @@ if (!$meta) {
|
|||||||
$skin .= skins_print_select($id_usr, 'skin', $user_info['id_skin'], '', __('None'), 0, true).'</div>';
|
$skin .= skins_print_select($id_usr, 'skin', $user_info['id_skin'], '', __('None'), 0, true).'</div>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
$home_screen = '';
|
|
||||||
// User only can change skins if has more than one group.
|
|
||||||
if (function_exists('skins_print_select')) {
|
|
||||||
if (count($usr_groups) > 1) {
|
|
||||||
$skin = '<div class="label_select"><p class="edit_user_labels">'.__('Theme').ui_print_help_tip(
|
|
||||||
__('This change will only apply to nodes'),
|
|
||||||
true
|
|
||||||
).'</p>';
|
|
||||||
$skin .= skins_print_select($id_usr, 'skin', $user_info['id_skin'], '', __('None'), 0, true).'</div>';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$timezone = '<div class="label_select"><p class="edit_user_labels">'.__('Timezone').ui_print_help_tip(__('The timezone must be that of the associated server.'), true).'</p>';
|
$timezone = '<div class="label_select"><p class="edit_user_labels">'.__('Timezone').ui_print_help_tip(__('The timezone must be that of the associated server.'), true).'</p>';
|
||||||
$timezone .= html_print_timezone_select('timezone', $user_info['timezone']).'</div>';
|
$timezone .= html_print_timezone_select('timezone', $user_info['timezone']).'</div>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user