User edit notifications
This commit is contained in:
parent
651469b562
commit
14246ea570
|
@ -77,28 +77,28 @@ if (is_metaconsole()) {
|
|||
user_meta_print_header();
|
||||
$urls['main'] = 'index.php?sec=advanced&sec2=advanced/users_setup&tab=user_edit';
|
||||
} else {
|
||||
$urls['main'] = 'index.php?sec=workspace&sec2=operation/users/user_edit';
|
||||
$urls['main'] = 'index.php?sec=gusuarios&sec2=godmode/users/user_list';
|
||||
$urls['notifications'] = 'index.php?sec=workspace&sec2=operation/users/user_edit_notifications';
|
||||
$buttons = [
|
||||
'main' => [
|
||||
'active' => $_GET['sec2'] === 'operation/users/user_edit',
|
||||
'active' => $_GET['sec2'] === 'godmode/users/user_list&tab=user&pure=0',
|
||||
'text' => "<a href='{$urls['main']}'>".html_print_image(
|
||||
'images/user.png',
|
||||
'images/user.svg',
|
||||
true,
|
||||
[
|
||||
'title' => __('User management'),
|
||||
'class' => 'invert_filter',
|
||||
'class' => 'main_menu_icon invert_filter',
|
||||
]
|
||||
).'</a>',
|
||||
],
|
||||
'notifications' => [
|
||||
'active' => $_GET['sec2'] === 'operation/users/user_edit_notifications',
|
||||
'text' => "<a href='{$urls['notifications']}'>".html_print_image(
|
||||
'images/alerts_template.png',
|
||||
'images/alert@svg.svg',
|
||||
true,
|
||||
[
|
||||
'title' => __('User notifications'),
|
||||
'class' => 'invert_filter',
|
||||
'class' => 'main_menu_icon invert_filter',
|
||||
]
|
||||
).'</a>',
|
||||
],
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
* |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
|
||||
*
|
||||
* ============================================================================
|
||||
* Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
||||
* Copyright (c) 2005-2023 Artica Soluciones Tecnologicas
|
||||
* Please see http://pandorafms.org for full contribution list
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
@ -58,7 +58,7 @@ if (get_parameter('change_label', 0)) {
|
|||
}
|
||||
|
||||
|
||||
echo '<div id="user-notifications-wrapper" class="white_box table_div table_three_columns">
|
||||
echo '<div id="user-notifications-wrapper" class="white_box table_div table_three_columns padding-2">
|
||||
<div class="table_thead">
|
||||
<div class="table_th"></div>
|
||||
<div class="table_th">'.__('Enable').'</div>
|
||||
|
@ -91,8 +91,9 @@ foreach ($sources as $source) {
|
|||
}
|
||||
|
||||
if ((bool) $disabled_flag === true) {
|
||||
$s = __('Controls have been disabled by the system administrator');
|
||||
echo '<span class="bolder color_ff0">'.$s.'</span>';
|
||||
ui_print_warning_message(
|
||||
__('Controls have been disabled by the system administrator')
|
||||
);
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
|
|
Loading…
Reference in New Issue