Minor fixes over module data tables
|
@ -377,21 +377,23 @@ if ($new_agent === true) {
|
|||
$tableAgent->data['additional_alias'][0] = html_print_checkbox_switch('alias_as_name', 1, $config['alias_as_name'], true);
|
||||
$tableAgent->data['additional_alias'][1] = __('Use alias as name');
|
||||
} else {
|
||||
$tableAgent->data['alias'][0] .= html_print_anchor(
|
||||
[
|
||||
'href' => 'index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=remote_configuration&id_agente='.$id_agente.'&disk_conf='.$agent_md5,
|
||||
'content' => html_print_image(
|
||||
'images/remote-configuration@svg.svg',
|
||||
true,
|
||||
[
|
||||
'border' => 0,
|
||||
'title' => __('This agent can be remotely configured'),
|
||||
'class' => 'invert_filter after_input_icon',
|
||||
]
|
||||
),
|
||||
],
|
||||
true
|
||||
);
|
||||
if ($remote_agent === true) {
|
||||
$tableAgent->data['alias'][0] .= html_print_anchor(
|
||||
[
|
||||
'href' => 'index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=remote_configuration&id_agente='.$id_agente.'&disk_conf='.$agent_md5,
|
||||
'content' => html_print_image(
|
||||
'images/remote-configuration@svg.svg',
|
||||
true,
|
||||
[
|
||||
'border' => 0,
|
||||
'title' => __('This agent can be remotely configured'),
|
||||
'class' => 'invert_filter after_input_icon',
|
||||
]
|
||||
),
|
||||
],
|
||||
true
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Ip adress.
|
||||
|
@ -794,29 +796,30 @@ $tableAdvancedAgent->data['agent_quiet'][0] = html_print_checkbox_switch('quiet'
|
|||
// Remote configuration.
|
||||
if ($new_agent === false && isset($filename) === true && file_exists($filename['md5']) === true) {
|
||||
$tableAdvancedAgent->data['caption_remote_configuration'][0] = __('Remote configuration');
|
||||
$tableAdvancedAgent->rowclass['remote_configuration'] = 'w540px';
|
||||
$tableAdvancedAgent->cellstyle['remote_configuration'][0] = 'display: flex; align-items: center;';
|
||||
$tableAdvancedAgent->cellclass['remote_configuration'][0] = 'w540px';
|
||||
$tableAdvancedAgent->data['remote_configuration'][0] = html_print_input_text(
|
||||
'remote_file_timestamp',
|
||||
date('F d Y H:i:s', fileatime($filename['md5'])),
|
||||
'',
|
||||
68,
|
||||
255,
|
||||
0,
|
||||
100,
|
||||
true,
|
||||
true,
|
||||
false,
|
||||
'',
|
||||
''
|
||||
'w540px'
|
||||
);
|
||||
$tableAdvancedAgent->data['remote_configuration'][0] .= html_print_anchor(
|
||||
[
|
||||
'href' => 'index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=main&disk_conf_delete=1&id_agente='.$id_agente,
|
||||
'class' => 'after_input_icon',
|
||||
'content' => html_print_image(
|
||||
'images/cross.png',
|
||||
'images/delete.svg',
|
||||
true,
|
||||
[
|
||||
'title' => __('Delete remote configuration file'),
|
||||
'class' => 'vertical_middle invert_filter mrgn_lft_5px',
|
||||
'border' => 0,
|
||||
'title' => __('Delete remote configuration file'),
|
||||
'class' => 'invert_filter after_input_icon',
|
||||
]
|
||||
),
|
||||
],
|
||||
|
|
|
@ -910,7 +910,7 @@ if (isset($_GET['fix_module'])) {
|
|||
}
|
||||
|
||||
$update_agent = (bool) get_parameter('update_agent');
|
||||
|
||||
hd($_REQUEST, true);
|
||||
// Update AGENT.
|
||||
if ($update_agent) {
|
||||
// If modified some agent paramenter.
|
||||
|
|
|
@ -55,21 +55,25 @@ $sec2 = (string) get_parameter('sec2');
|
|||
$filterTable = new stdClass();
|
||||
$filterTable->class = 'fixed_filter_bar';
|
||||
$filterTable->data = [];
|
||||
$filterTable->cellstyle[0][0] = 'flex: 0 1 20%;';
|
||||
$filterTable->data[0][0] = '<span>'.__('Search').'</span>';
|
||||
$filterTable->cellstyle[0][0] = 'flex: 0 1 20%;align-items: center;';
|
||||
$filterTable->data[0][0] = html_print_div([ 'content' => __('Search') ], true);
|
||||
$filterTable->data[0][0] .= html_print_input_text(
|
||||
'search_string',
|
||||
$search_string,
|
||||
'',
|
||||
15,
|
||||
0,
|
||||
255,
|
||||
true
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
'',
|
||||
'w100p'
|
||||
);
|
||||
$filterTable->data[0][0] .= html_print_input_hidden('search', 1, true);
|
||||
|
||||
if ((bool) $policy_page === false) {
|
||||
$filterTable->cellstyle[0][1] = 'flex: 0 1 20%';
|
||||
$filterTable->data[0][1] = '<span>'.__('Show in hierachy mode').'</span>';
|
||||
$filterTable->data[0][1] = html_print_div([ 'content' => __('Show in hierachy mode') ], true);
|
||||
$filterTable->data[0][1] .= html_print_checkbox_switch(
|
||||
'status_hierachy_mode',
|
||||
'',
|
||||
|
@ -1205,7 +1209,7 @@ foreach ($modules as $module) {
|
|||
}
|
||||
|
||||
if (check_acl_one_of_groups($config['id_user'], $all_groups, 'AW')) {
|
||||
echo '<form method="post" action="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&tab=module"
|
||||
echo '<form class="datatable_form" method="post" action="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&tab=module"
|
||||
onsubmit="if (! confirm (\''.__('Are you sure?').'\')) return false">';
|
||||
}
|
||||
|
||||
|
@ -1249,9 +1253,7 @@ if ((bool) check_acl_one_of_groups($config['id_user'], $all_groups, 'AW') === tr
|
|||
false,
|
||||
'',
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
300
|
||||
'width: 260px;',
|
||||
);
|
||||
|
||||
html_print_action_buttons(
|
||||
|
|
|
@ -372,8 +372,6 @@ if ($edit === false) {
|
|||
);
|
||||
}
|
||||
|
||||
hd($type_names_hash);
|
||||
hd($_REQUEST);
|
||||
// Store the relation between id and name of the types on a hidden field.
|
||||
$table_simple->data['module_n_type'][1] .= html_print_input_hidden(
|
||||
'type_names',
|
||||
|
@ -866,17 +864,31 @@ $tagsCompleteData = html_print_div(
|
|||
true
|
||||
);
|
||||
|
||||
$sqlGetTags = sprintf(
|
||||
'SELECT a.id_tag, name FROM ttag a, %s b WHERE a.id_tag = b.id_tag AND %s = %s %s ORDER BY name',
|
||||
$__table_modules,
|
||||
$__id_where,
|
||||
$__id,
|
||||
$__sql
|
||||
);
|
||||
|
||||
$listSelectedTags = db_get_all_rows_sql($sqlGetTags);
|
||||
|
||||
$listSelectedTagShow = array_reduce(
|
||||
$listSelectedTags,
|
||||
function ($carry, $item) {
|
||||
$carry[] = $item['id_tag'];
|
||||
return $carry;
|
||||
}
|
||||
);
|
||||
|
||||
$tagsCompleteData .= html_print_div(
|
||||
[
|
||||
'class' => 'tags_selected_container',
|
||||
'content' => html_print_select_from_sql(
|
||||
"SELECT a.id_tag, name
|
||||
FROM ttag a, $__table_modules b
|
||||
WHERE a.id_tag = b.id_tag AND $__id_where = $__id
|
||||
$__sql
|
||||
ORDER BY name",
|
||||
$sqlGetTags,
|
||||
'id_tag_selected[]',
|
||||
'',
|
||||
$listSelectedTagShow,
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
|
@ -890,7 +902,22 @@ $tagsCompleteData .= html_print_div(
|
|||
],
|
||||
true
|
||||
);
|
||||
|
||||
/*
|
||||
$tagsCompleteData .= html_print_select(
|
||||
$listSelectedTags,
|
||||
'id_tag_selected[]',
|
||||
$listSelectedTagShow,
|
||||
'',
|
||||
'',
|
||||
0,
|
||||
true,
|
||||
true,
|
||||
false,
|
||||
'',
|
||||
$disabledBecauseInPolicy,
|
||||
'width: 200px;'
|
||||
);
|
||||
*/
|
||||
$table_advanced->data['tags_module_parent'][0] .= html_print_div(
|
||||
[
|
||||
'class' => 'tags_complete_container',
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<!-- Generator: Sketch 61.2 (89653) - https://sketch.com -->
|
||||
<title>Dark / 20 / close@svg</title>
|
||||
<desc>Created with Sketch.</desc>
|
||||
|
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.4 KiB |
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<!-- Generator: Sketch 61.2 (89653) - https://sketch.com -->
|
||||
<title>Dark / 20 / delete-v2@svg</title>
|
||||
<desc>Created with Sketch.</desc>
|
||||
|
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<!-- Generator: Sketch 61.2 (89653) - https://sketch.com -->
|
||||
<title>Dark / 20 / house@svg</title>
|
||||
<desc>Created with Sketch.</desc>
|
||||
|
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<!-- Generator: Sketch 61.2 (89653) - https://sketch.com -->
|
||||
<title>Dark / 14 / info@svg</title>
|
||||
<desc>Created with Sketch.</desc>
|
||||
|
|
Before Width: | Height: | Size: 986 B After Width: | Height: | Size: 959 B |
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<!-- Generator: Sketch 61.2 (89653) - https://sketch.com -->
|
||||
<title>Dark / 20 / star@svg</title>
|
||||
<desc>Created with Sketch.</desc>
|
||||
|
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.4 KiB |
|
@ -10666,7 +10666,6 @@ pre.external_tools_output {
|
|||
|
||||
.fixed_filter_bar {
|
||||
position: sticky;
|
||||
height: 60px;
|
||||
top: 114px;
|
||||
border: 1px solid #e5e9ed;
|
||||
background-color: #fff;
|
||||
|
@ -10689,8 +10688,13 @@ pre.external_tools_output {
|
|||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.fixed_filter_bar span {
|
||||
margin-right: 15px;
|
||||
.fixed_filter_bar td > div {
|
||||
margin-right: 10px;
|
||||
font-size: 10pt;
|
||||
}
|
||||
|
||||
.fixed_filter_bar input {
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.fixed_filter_content {
|
||||
|
|
|
@ -446,3 +446,7 @@ a.pandora_pagination.current:hover {
|
|||
.ff_thresholds_line input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.datatable_form {
|
||||
margin: 0 1em;
|
||||
}
|
||||
|
|