restyling
This commit is contained in:
parent
831579f9c8
commit
b34515d03c
|
@ -10826,6 +10826,7 @@ tr.bring_next_field {
|
||||||
left: 250px;
|
left: 250px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
margin-left: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.action_buttons_right_content div {
|
.action_buttons_right_content div {
|
||||||
|
|
|
@ -63,33 +63,35 @@ function printFormFilterAlert($id_group, $filter, $free_search, $url, $filter_st
|
||||||
|
|
||||||
$table = new StdClass();
|
$table = new StdClass();
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
$table->class = 'databox filters no-border';
|
$table->class = 'filter-table-adv';
|
||||||
$table->cellpadding = '0';
|
$table->size = [];
|
||||||
$table->cellspacing = '0';
|
$table->size[0] = '33%';
|
||||||
if (defined('METACONSOLE')) {
|
$table->size[1] = '33%';
|
||||||
$table->class = 'databox filters no-border';
|
$table->size[2] = '33%';
|
||||||
$table->width = '100%';
|
|
||||||
$table->cellpadding = '0';
|
|
||||||
$table->cellspacing = '0';
|
|
||||||
}
|
|
||||||
|
|
||||||
$table->data = [];
|
$table->data = [];
|
||||||
$table->style = [];
|
$table->data[0][0] = html_print_label_input_block(
|
||||||
$table->style[0] = 'font-weight: bold;';
|
__('Group'),
|
||||||
$table->style[1] = 'font-weight: bold;';
|
html_print_select_groups(
|
||||||
$table->style[2] = 'font-weight: bold;';
|
$config['id_user'],
|
||||||
$table->style[3] = 'font-weight: bold;';
|
$access,
|
||||||
$table->style[4] = 'font-weight: bold;';
|
true,
|
||||||
if (defined('METACONSOLE')) {
|
'ag_group',
|
||||||
$table->style[0] = 'font-weight: bold;';
|
$id_group,
|
||||||
$table->style[1] = 'font-weight: bold;';
|
'',
|
||||||
$table->style[2] = 'font-weight: bold;';
|
'',
|
||||||
$table->style[3] = 'font-weight: bold;';
|
'',
|
||||||
$table->style[4] = 'font-weight: bold;';
|
true,
|
||||||
}
|
false,
|
||||||
|
false,
|
||||||
$table->data[0][0] = __('Group');
|
'',
|
||||||
$table->data[0][1] = html_print_select_groups($config['id_user'], $access, true, 'ag_group', $id_group, '', '', '', true, false, false, '', false, '', false, false, 'id_grupo', $strict_user);
|
false,
|
||||||
|
'',
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
'id_grupo',
|
||||||
|
$strict_user
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
$alert_status_filter = [];
|
$alert_status_filter = [];
|
||||||
$alert_status_filter['all_enabled'] = __('All (Enabled)');
|
$alert_status_filter['all_enabled'] = __('All (Enabled)');
|
||||||
|
@ -102,32 +104,93 @@ function printFormFilterAlert($id_group, $filter, $free_search, $url, $filter_st
|
||||||
$alert_standby['1'] = __('Standby on');
|
$alert_standby['1'] = __('Standby on');
|
||||||
$alert_standby['0'] = __('Standby off');
|
$alert_standby['0'] = __('Standby off');
|
||||||
|
|
||||||
$table->data[0][2] = __('Status');
|
$table->data[0][1] = html_print_label_input_block(
|
||||||
$table->data[0][3] = html_print_select($alert_status_filter, 'disabled', $filter, '', '', '', true);
|
__('Status'),
|
||||||
|
html_print_select(
|
||||||
$table->data[0][4] = __('Tags').ui_print_help_tip(__('Only it is show tags in use.'), true);
|
$alert_status_filter,
|
||||||
|
'disabled',
|
||||||
|
$filter,
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
'',
|
||||||
|
false,
|
||||||
|
'width: 100%;'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
$tags = tags_get_user_tags();
|
$tags = tags_get_user_tags();
|
||||||
|
if (empty($tags) === true) {
|
||||||
if (empty($tags)) {
|
$callbackTag = html_print_input_text('tags', __('No tags'), '', 20, 40, true, true);
|
||||||
$table->data[0][5] .= html_print_input_text('tags', __('No tags'), '', 20, 40, true, true);
|
|
||||||
} else {
|
} else {
|
||||||
$table->data[0][5] .= html_print_select($tags, 'tag', $tag_filter, '', __('All'), '', true, false, true, '', false, 'width: 150px;');
|
$callbackTag = html_print_select(
|
||||||
|
$tags,
|
||||||
|
'tag',
|
||||||
|
$tag_filter,
|
||||||
|
'',
|
||||||
|
__('All'),
|
||||||
|
'',
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
'',
|
||||||
|
false,
|
||||||
|
'width: 100%;'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$table->data[1][0] = __('Free text for search').ui_print_help_tip(
|
$table->data[0][2] = html_print_label_input_block(
|
||||||
|
__('Tags').ui_print_help_tip(__('Only it is show tags in use.'), true),
|
||||||
|
$callbackTag
|
||||||
|
);
|
||||||
|
|
||||||
|
$table->data[1][0] = html_print_label_input_block(
|
||||||
|
__('Free text for search').ui_print_help_tip(
|
||||||
__('Filter by agent name, module name, template name or action name'),
|
__('Filter by agent name, module name, template name or action name'),
|
||||||
true
|
true
|
||||||
|
),
|
||||||
|
html_print_input_text('free_search', $free_search, '', 20, 40, true)
|
||||||
);
|
);
|
||||||
$table->data[1][1] = html_print_input_text('free_search', $free_search, '', 20, 40, true);
|
|
||||||
|
|
||||||
$table->data[1][2] = __('Standby');
|
$table->data[1][1] = html_print_label_input_block(
|
||||||
$table->data[1][3] = html_print_select($alert_standby, 'standby', $filter_standby, '', __('All'), '', true);
|
__('Standby'),
|
||||||
|
html_print_select(
|
||||||
|
$alert_standby,
|
||||||
|
'standby',
|
||||||
|
$filter_standby,
|
||||||
|
'',
|
||||||
|
__('All'),
|
||||||
|
'',
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
'',
|
||||||
|
false,
|
||||||
|
'width: 100%;'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
$table->data[1][4] = __('Action');
|
|
||||||
$alert_action = alerts_get_alert_actions_filter();
|
$alert_action = alerts_get_alert_actions_filter();
|
||||||
|
$table->data[1][2] = html_print_label_input_block(
|
||||||
$table->data[1][5] = html_print_select($alert_action, 'action', $action_filter, '', __('All'), '', true);
|
__('Action'),
|
||||||
|
html_print_select(
|
||||||
|
$alert_action,
|
||||||
|
'action',
|
||||||
|
$action_filter,
|
||||||
|
'',
|
||||||
|
__('All'),
|
||||||
|
'',
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
'',
|
||||||
|
false,
|
||||||
|
'width: 100%;'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
$data .= html_print_table($table, true);
|
$data .= html_print_table($table, true);
|
||||||
|
|
||||||
|
|
|
@ -530,18 +530,18 @@ if ($agent_view_page === true) {
|
||||||
echo $html_content;
|
echo $html_content;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Strict user hidden.
|
// Strict user hidden.
|
||||||
echo '<div id="strict_hidden" class="invisible">';
|
echo '<div id="strict_hidden" class="invisible">';
|
||||||
html_print_input_text('strict_user_hidden', $strict_user);
|
html_print_input_text('strict_user_hidden', $strict_user);
|
||||||
|
|
||||||
html_print_input_text('is_meta_hidden', (int) is_metaconsole());
|
html_print_input_text('is_meta_hidden', (int) is_metaconsole());
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
enterprise_hook('close_meta_frame');
|
enterprise_hook('close_meta_frame');
|
||||||
|
|
||||||
|
|
||||||
ui_require_css_file('cluetip', 'include/styles/js/');
|
ui_require_css_file('cluetip', 'include/styles/js/');
|
||||||
ui_require_jquery_file('cluetip');
|
ui_require_jquery_file('cluetip');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
Loading…
Reference in New Issue