#12579 fixed icons as buttons in action on satellite server agents
This commit is contained in:
parent
4d8aa8f697
commit
8d4e3e78a3
|
@ -388,26 +388,38 @@ class SatelliteAgent extends HTML
|
||||||
$tmp->actions = '';
|
$tmp->actions = '';
|
||||||
|
|
||||||
if ($delete === false) {
|
if ($delete === false) {
|
||||||
$tmp->actions .= html_print_image(
|
$tmp->actions .= html_print_anchor(
|
||||||
($disable === true) ? 'images/lightbulb_off.png' : 'images/lightbulb.png',
|
|
||||||
true,
|
|
||||||
[
|
[
|
||||||
'border' => '0',
|
'href' => '#',
|
||||||
'class' => 'main_menu_icon mrgn_lft_05em invert_filter',
|
'content' => html_print_image(
|
||||||
'onclick' => 'disable_agent(\''.$tmp->address.'\',\''.strip_tags($tmp->name).'\',\''.(int) $disable.'\',\''.$id_agente.'\')',
|
($disable === true) ? 'images/lightbulb_off.png' : 'images/lightbulb.png',
|
||||||
]
|
true,
|
||||||
|
[
|
||||||
|
'border' => '0',
|
||||||
|
'class' => 'main_menu_icon mrgn_lft_05em invert_filter',
|
||||||
|
'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(
|
||||||
($delete === true) ? 'images/add.png' : 'images/delete.svg',
|
|
||||||
true,
|
|
||||||
[
|
[
|
||||||
'border' => '0',
|
'href' => '#',
|
||||||
'class' => 'main_menu_icon mrgn_lft_05em invert_filter',
|
'content' => html_print_image(
|
||||||
'onclick' => 'delete_agent(\''.$tmp->address.'\',\''.strip_tags($tmp->name).'\',\''.(int) $delete.'\',\''.$id_agente.'\')',
|
($delete === true) ? 'images/add.png' : 'images/delete.svg',
|
||||||
]
|
true,
|
||||||
|
[
|
||||||
|
'border' => '0',
|
||||||
|
'class' => 'main_menu_icon mrgn_lft_05em invert_filter',
|
||||||
|
'onclick' => 'delete_agent(\''.$tmp->address.'\',\''.strip_tags($tmp->name).'\',\''.(int) $delete.'\',\''.$id_agente.'\')',
|
||||||
|
]
|
||||||
|
),
|
||||||
|
],
|
||||||
|
true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue