mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
User edit notifications
This commit is contained in:
parent
651469b562
commit
14246ea570
@ -77,28 +77,28 @@ if (is_metaconsole()) {
|
|||||||
user_meta_print_header();
|
user_meta_print_header();
|
||||||
$urls['main'] = 'index.php?sec=advanced&sec2=advanced/users_setup&tab=user_edit';
|
$urls['main'] = 'index.php?sec=advanced&sec2=advanced/users_setup&tab=user_edit';
|
||||||
} else {
|
} 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';
|
$urls['notifications'] = 'index.php?sec=workspace&sec2=operation/users/user_edit_notifications';
|
||||||
$buttons = [
|
$buttons = [
|
||||||
'main' => [
|
'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(
|
'text' => "<a href='{$urls['main']}'>".html_print_image(
|
||||||
'images/user.png',
|
'images/user.svg',
|
||||||
true,
|
true,
|
||||||
[
|
[
|
||||||
'title' => __('User management'),
|
'title' => __('User management'),
|
||||||
'class' => 'invert_filter',
|
'class' => 'main_menu_icon invert_filter',
|
||||||
]
|
]
|
||||||
).'</a>',
|
).'</a>',
|
||||||
],
|
],
|
||||||
'notifications' => [
|
'notifications' => [
|
||||||
'active' => $_GET['sec2'] === 'operation/users/user_edit_notifications',
|
'active' => $_GET['sec2'] === 'operation/users/user_edit_notifications',
|
||||||
'text' => "<a href='{$urls['notifications']}'>".html_print_image(
|
'text' => "<a href='{$urls['notifications']}'>".html_print_image(
|
||||||
'images/alerts_template.png',
|
'images/alert@svg.svg',
|
||||||
true,
|
true,
|
||||||
[
|
[
|
||||||
'title' => __('User notifications'),
|
'title' => __('User notifications'),
|
||||||
'class' => 'invert_filter',
|
'class' => 'main_menu_icon invert_filter',
|
||||||
]
|
]
|
||||||
).'</a>',
|
).'</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
|
* Please see http://pandorafms.org for full contribution list
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License
|
* 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_thead">
|
||||||
<div class="table_th"></div>
|
<div class="table_th"></div>
|
||||||
<div class="table_th">'.__('Enable').'</div>
|
<div class="table_th">'.__('Enable').'</div>
|
||||||
@ -91,8 +91,9 @@ foreach ($sources as $source) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((bool) $disabled_flag === true) {
|
if ((bool) $disabled_flag === true) {
|
||||||
$s = __('Controls have been disabled by the system administrator');
|
ui_print_warning_message(
|
||||||
echo '<span class="bolder color_ff0">'.$s.'</span>';
|
__('Controls have been disabled by the system administrator')
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user