#1347 added links tactical view group
This commit is contained in:
parent
7562a9253a
commit
00b5d3f237
|
@ -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,
|
||||
[
|
||||
|
|
|
@ -401,7 +401,7 @@ $table_contact->data[] = $data;
|
|||
|
||||
$data = [];
|
||||
$data[0] = '<b>'.__('Group').'</b>';
|
||||
$data[1] = '<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=60&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 = [];
|
||||
|
|
Loading…
Reference in New Issue