#1347 added links tactical view group

This commit is contained in:
Daniel Cebrian 2023-03-03 13:24:33 +01:00
parent 7562a9253a
commit 00b5d3f237
2 changed files with 5 additions and 4 deletions

View File

@ -875,7 +875,8 @@ if ($tab == 'tree') {
$table->data = [];
foreach ($groups as $key => $group) {
$url = 'index.php?sec=gagente&sec2=godmode/groups/configure_group&id_group='.$group['id_grupo'];
$url_edit = 'index.php?sec=gagente&sec2=godmode/groups/configure_group&id_group='.$group['id_grupo'];
$url_tactical = 'index.php?sec=gagente&sec2=godmode/groups/tactical&id_group='.$group['id_grupo'];
if (is_metaconsole()) {
$url_delete = 'index.php?sec=gagente&sec2=godmode/groups/group_list&delete_group=1&id_group='.$group['id_grupo'].'&tab=groups';
} else {
@ -884,7 +885,7 @@ if ($tab == 'tree') {
$table->data[$key][0] = $group['id_grupo'];
if ($is_management_allowed === true) {
$table->data[$key][1] = '<a href="'.$url.'">'.$group['nombre'].'</a>';
$table->data[$key][1] = '<a href="'.$url_tactical.'">'.$group['nombre'].'</a>';
} else {
$table->data[$key][1] = $group['nombre'];
}
@ -915,7 +916,7 @@ if ($tab == 'tree') {
$table->data[$key][5] = $group['description'];
if ($is_management_allowed === true) {
$table->cellclass[$key][6] = 'action_buttons';
$table->data[$key][6] = '<a href="'.$url.'">'.html_print_image(
$table->data[$key][6] = '<a href="'.$url_edit.'">'.html_print_image(
'images/config.png',
true,
[

View File

@ -401,7 +401,7 @@ $table_contact->data[] = $data;
$data = [];
$data[0] = '<b>'.__('Group').'</b>';
$data[1] = '<a href="index.php?sec=estado&amp;sec2=operation/agentes/estado_agente&amp;refr=60&amp;group_id='.$agent['id_grupo'].'">'.groups_get_name($agent['id_grupo']).'</a>';
$data[1] = '<a href="index.php?sec=gagente&sec2=godmode/groups/tactical&id_group='.$agent['id_grupo'].'">'.groups_get_name($agent['id_grupo']).'</a>';
$table_contact->data[] = $data;
$data = [];