13088-Fix button styles in Custom reports & Go back button onclick

This commit is contained in:
Pablo Aragon 2024-03-20 16:22:29 +01:00
parent 6cbe76f02f
commit d92471f068
2 changed files with 17 additions and 5 deletions

View File

@ -319,7 +319,7 @@ $ActionButtons[] = html_print_button(
__('Go back'),
'back',
false,
"window.location.href = 'index.php?sec=reporting&sec2=godmode/reporting/graphs'",
'history.go(-1)',
[
'class' => 'sub ok submitButton',
'icon' => 'back',

View File

@ -2860,20 +2860,32 @@ if (is_metaconsole() === true) {
if (!empty($style_button_create_custom_graph)) {
$style_create = [
'mode' => 'link',
'mode' => 'mini',
'icon' => 'next',
'class' => 'mrgn_lft_10px',
'style' => 'display:none',
];
} else {
$style_create = [ 'mode' => 'link' ];
$style_create = [
'mode' => 'mini',
'icon' => 'next',
'class' => 'mrgn_lft_10px',
];
}
if (!empty($style_button_edit_custom_graph)) {
$style_edit = [
'mode' => 'link',
'mode' => 'mini',
'icon' => 'update',
'class' => 'mrgn_lft_10px',
'style' => 'display:none',
];
} else {
$style_edit = [ 'mode' => 'link' ];
$style_edit = [
'mode' => 'mini',
'icon' => 'update',
'class' => 'mrgn_lft_10px',
];
}
html_print_button(