mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Merge branch 'ent-7962-bug-visual-monitor-detail' into 'develop'
Fixed tip position and code style Closes pandora_enterprise#7962 See merge request artica/pandorafms!4488
This commit is contained in:
commit
ddb156564d
@ -769,39 +769,42 @@ if ($not_condition !== '') {
|
|||||||
$check_not_condition = true;
|
$check_not_condition = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$table->data[4][0] .= __('Not condition');
|
$table->data[4][0] .= __('Not condition').' '.ui_print_help_tip(__('If you check this option, those elements that do NOT meet any of the requirements will be shown'), true);
|
||||||
$table->data[4][1] .= '<div class="w120px mrgn_top_20px">';
|
$table->data[4][1] = html_print_div(
|
||||||
$table->data[4][1] .= html_print_input(
|
|
||||||
[
|
[
|
||||||
'type' => 'switch',
|
'class' => 'w120px mrgn_5px mrgn_lft_0px mrgn_right_0px',
|
||||||
'name' => 'not_condition',
|
'content' => html_print_input(
|
||||||
'return' => false,
|
[
|
||||||
'checked' => $check_not_condition,
|
'type' => 'switch',
|
||||||
'value' => 'NOT',
|
'name' => 'not_condition',
|
||||||
'id' => 'not_condition_switch',
|
'return' => false,
|
||||||
'onclick' => 'changeNotConditionStatus(this)',
|
'checked' => $check_not_condition,
|
||||||
]
|
'value' => 'NOT',
|
||||||
|
'id' => 'not_condition_switch',
|
||||||
|
'onclick' => 'changeNotConditionStatus(this)',
|
||||||
|
]
|
||||||
|
),
|
||||||
|
],
|
||||||
|
true
|
||||||
);
|
);
|
||||||
$table->data[4][1] .= ui_print_help_tip(__('If you check this option, those elements that do NOT meet any of the requirements will be shown'), true);
|
|
||||||
$table->data[4][1] .= '</div>';
|
|
||||||
|
|
||||||
$table_custom_fields = new stdClass();
|
$table_custom_fields = new stdClass();
|
||||||
$table_custom_fields->class = 'filters';
|
$table_custom_fields->class = 'filters';
|
||||||
$table_custom_fields->width = '100%';
|
$table_custom_fields->width = '100%';
|
||||||
|
$table_custom_fields->style = [];
|
||||||
|
$table_custom_fields->style[0] = 'font-weight: bold;';
|
||||||
|
|
||||||
if (is_metaconsole()) {
|
// Style is different in metaconsole.
|
||||||
|
if (is_metaconsole() === false) {
|
||||||
|
$table_custom_fields->style[0] = 'font-weight: bold; width: 150px;';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (is_metaconsole() === true) {
|
||||||
$table_custom_fields->styleTable = 'margin-left:0px; margin-top:15px;';
|
$table_custom_fields->styleTable = 'margin-left:0px; margin-top:15px;';
|
||||||
$table_custom_fields->cellpadding = '0';
|
$table_custom_fields->cellpadding = '0';
|
||||||
$table_custom_fields->cellspacing = '0';
|
$table_custom_fields->cellspacing = '0';
|
||||||
}
|
}
|
||||||
|
|
||||||
$table_custom_fields->style = [];
|
|
||||||
if (!is_metaconsole()) {
|
|
||||||
$table_custom_fields->style[0] = 'font-weight: bold; width: 150px;';
|
|
||||||
} else {
|
|
||||||
$table_custom_fields->style[0] = 'font-weight: bold;';
|
|
||||||
}
|
|
||||||
|
|
||||||
$table_custom_fields->colspan = [];
|
$table_custom_fields->colspan = [];
|
||||||
$table_custom_fields->data = [];
|
$table_custom_fields->data = [];
|
||||||
|
|
||||||
@ -815,9 +818,9 @@ $table->data[4][0] .= __('Not condition');
|
|||||||
$row[0] = $custom_field['name'];
|
$row[0] = $custom_field['name'];
|
||||||
|
|
||||||
$custom_field_value = '';
|
$custom_field_value = '';
|
||||||
if (!empty($ag_custom_fields)) {
|
if (empty($ag_custom_fields) === false) {
|
||||||
$custom_field_value = $ag_custom_fields[$custom_field['id_field']];
|
$custom_field_value = $ag_custom_fields[$custom_field['id_field']];
|
||||||
if (empty($custom_field_value)) {
|
if (empty($custom_field_value) === true) {
|
||||||
$custom_field_value = '';
|
$custom_field_value = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -830,7 +833,7 @@ $table->data[4][0] .= __('Not condition');
|
|||||||
$filters = '<form method="post" action="index.php?sec='.$section.'&sec2=operation/agentes/status_monitor&refr='.$refr.'&ag_group='.$ag_group.'&ag_freestring='.$ag_freestring.'&module_option='.$module_option.'&ag_modulename='.$ag_modulename.'&moduletype='.$moduletype.'&datatype='.$datatype.'&status='.$status.'&sort_field='.$sortField.'&sort='.$sort.'&pure='.$config['pure'].$ag_custom_fields_params.'">';
|
$filters = '<form method="post" action="index.php?sec='.$section.'&sec2=operation/agentes/status_monitor&refr='.$refr.'&ag_group='.$ag_group.'&ag_freestring='.$ag_freestring.'&module_option='.$module_option.'&ag_modulename='.$ag_modulename.'&moduletype='.$moduletype.'&datatype='.$datatype.'&status='.$status.'&sort_field='.$sortField.'&sort='.$sort.'&pure='.$config['pure'].$ag_custom_fields_params.'">';
|
||||||
|
|
||||||
|
|
||||||
if (is_metaconsole()) {
|
if (is_metaconsole() === true) {
|
||||||
$table->colspan[5][0] = 7;
|
$table->colspan[5][0] = 7;
|
||||||
$table->cellstyle[5][0] = 'padding: 10px;';
|
$table->cellstyle[5][0] = 'padding: 10px;';
|
||||||
$table->data[5][0] = ui_toggle(
|
$table->data[5][0] = ui_toggle(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user