fixed styles

This commit is contained in:
daniel 2023-03-10 14:49:38 +01:00
parent 427ecf96e4
commit 8778fcea93
7 changed files with 31 additions and 17 deletions

View File

@ -174,7 +174,7 @@ foreach ($fields as $field) {
$data[1] = $field['name'];
$data[2] = html_print_image(
((bool) $field['display_on_front'] === true) ? 'images/validate.svg' : 'images/icono_stop.png',
((bool) $field['display_on_front'] === true) ? 'images/validate.svg' : 'images/fail@svg.svg',
true,
['class' => 'main_menu_icon invert_filter']
);

View File

@ -1279,14 +1279,14 @@ if (check_login()) {
$linkCaption = __('Refresh');
}
$moduleActionButtons[] = html_print_button(
$linkCaption,
'additional_action_for_'.$idAgenteModulo,
false,
'window.location.assign("index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&id_agente_modulo='.$module['id_agente_modulo'].'&refr=60'.$addedLinkParams.'")',
$moduleActionButtons[] = html_print_anchor(
[
'mode' => 'link',
'style' => 'justify-content: flex-end;',
'href' => 'index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&id_agente_modulo='.$module['id_agente_modulo'].'&refr=60'.$addedLinkParams.'"',
'content' => html_print_image(
'images/go-back@svg.svg',
true,
[ 'class' => 'main_menu_icon' ]
),
],
true
);
@ -1296,14 +1296,14 @@ if (check_login()) {
if ((bool) check_acl($config['id_user'], $id_grupo, 'AW') === true
&& $cluster_view === false
) {
$moduleActionButtons[] = html_print_button(
__('Edit'),
'edit_module_'.$idAgenteModulo,
false,
'window.location.assign("index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&tab=module&id_agent_module='.$module['id_agente_modulo'].'&edit_module='.$module['id_modulo'].'")',
$moduleActionButtons[] = html_print_anchor(
[
'mode' => 'link',
'style' => 'justify-content: flex-end;',
'href' => 'index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&tab=module&id_agent_module='.$module['id_agente_modulo'].'&edit_module='.$module['id_modulo'].'"',
'content' => html_print_image(
'images/edit.svg',
true,
[ 'class' => 'main_menu_icon' ]
),
],
true
);

View File

@ -774,6 +774,11 @@ form ul.form_flex {
filter: invert(100%);
}
.info_table .invert_filter,
.info_table .labels {
filter: invert(100%);
}
.graph_conteiner_inside,
.container_table,
.second_background,

View File

@ -371,11 +371,12 @@ if ($agent_view_page === true) {
[
'id' => 'alerts_status_datatable',
'class' => 'info_table',
'style' => 'width: 100%',
'style' => 'width: 99%',
'columns' => $columns,
'column_names' => $column_names,
'no_sortable_columns' => $no_sortable_columns,
'ajax_url' => 'include/ajax/alert_list.ajax',
'dom_elements' => 'pfrti',
'ajax_data' => [
'get_agent_alerts_datatable' => 1,
'id_agent' => $idAgent,
@ -406,6 +407,7 @@ if ($agent_view_page === true) {
],
],
'no_toggle' => true,
'class' => 'flex',
],
]
);

View File

@ -542,7 +542,7 @@ function print_form_filter_monitors(
$form_text = '';
$table = new stdClass();
$table->class = 'filter_table';
$table->class = 'filter-table-adv';
$table->id = 'module_filter_agent_view';
$table->styleTable = 'border-radius: 0;padding: 0;margin: 0 0 10px;';
$table->width = '100%';

View File

@ -136,6 +136,8 @@ if (!$agents || !$searchAgents) {
).'</a>';
}
$table->cellclass[][9] = 'table_action_buttons';
array_push(
$table->data,
[

View File

@ -72,6 +72,7 @@ if (!$modules || !$searchModules) {
'web_content_string'
);
$i = 0;
foreach ($modules as $module) {
$module['datos'] = modules_get_last_value($module['id_agente_modulo']);
$module['module_name'] = $module['nombre'];
@ -162,6 +163,7 @@ if (!$modules || !$searchModules) {
}
$graphCell = '';
$table->cellclass[$i][5] = 'table_action_buttons';
if ($module['history_data'] == 1) {
$graph_type = return_graphtype($module['id_tipo_modulo']);
@ -204,6 +206,7 @@ if (!$modules || !$searchModules) {
$group_agent = agents_get_agent_group($module['id_agente']);
$table->cellclass[$i][8] = 'table_action_buttons';
if (check_acl($config['id_user'], $group_agent, 'AW')) {
$edit_module = 'aaa';
@ -229,6 +232,8 @@ if (!$modules || !$searchModules) {
$edit_module,
]
);
$i++;
}
echo '<br />';