#12579 fixed icons as buttons in action on satellite server agents

This commit is contained in:
Jorge Rincon 2023-12-07 16:00:42 +01:00
parent 4d8aa8f697
commit 8d4e3e78a3
1 changed files with 26 additions and 14 deletions

View File

@ -388,7 +388,10 @@ class SatelliteAgent extends HTML
$tmp->actions = ''; $tmp->actions = '';
if ($delete === false) { if ($delete === false) {
$tmp->actions .= html_print_image( $tmp->actions .= html_print_anchor(
[
'href' => '#',
'content' => html_print_image(
($disable === true) ? 'images/lightbulb_off.png' : 'images/lightbulb.png', ($disable === true) ? 'images/lightbulb_off.png' : 'images/lightbulb.png',
true, true,
[ [
@ -396,11 +399,17 @@ class SatelliteAgent extends HTML
'class' => 'main_menu_icon mrgn_lft_05em invert_filter', 'class' => 'main_menu_icon mrgn_lft_05em invert_filter',
'onclick' => 'disable_agent(\''.$tmp->address.'\',\''.strip_tags($tmp->name).'\',\''.(int) $disable.'\',\''.$id_agente.'\')', 'onclick' => 'disable_agent(\''.$tmp->address.'\',\''.strip_tags($tmp->name).'\',\''.(int) $disable.'\',\''.$id_agente.'\')',
] ]
),
],
true
); );
} }
if ($disable === false) { if ($disable === false) {
$tmp->actions .= html_print_image( $tmp->actions .= html_print_anchor(
[
'href' => '#',
'content' => html_print_image(
($delete === true) ? 'images/add.png' : 'images/delete.svg', ($delete === true) ? 'images/add.png' : 'images/delete.svg',
true, true,
[ [
@ -408,6 +417,9 @@ class SatelliteAgent extends HTML
'class' => 'main_menu_icon mrgn_lft_05em invert_filter', 'class' => 'main_menu_icon mrgn_lft_05em invert_filter',
'onclick' => 'delete_agent(\''.$tmp->address.'\',\''.strip_tags($tmp->name).'\',\''.(int) $delete.'\',\''.$id_agente.'\')', 'onclick' => 'delete_agent(\''.$tmp->address.'\',\''.strip_tags($tmp->name).'\',\''.(int) $delete.'\',\''.$id_agente.'\')',
] ]
),
],
true
); );
} }