mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Merge branch 'ent-9662-second-round' of brutus.artica.es:artica/pandorafms into ent-9662-second-round
This commit is contained in:
commit
c7cd688b4b
@ -1455,18 +1455,18 @@ html_print_input_hidden('module_macro_count', $macro_count);
|
|||||||
$table_new_relations = new stdClass();
|
$table_new_relations = new stdClass();
|
||||||
$table_new_relations->id = 'module_new_relations';
|
$table_new_relations->id = 'module_new_relations';
|
||||||
$table_new_relations->width = '100%';
|
$table_new_relations->width = '100%';
|
||||||
$table_new_relations->class = 'no-class filter-table-adv';
|
$table_new_relations->class = 'filter-table-adv';
|
||||||
$table_new_relations->data = [];
|
$table_new_relations->data = [];
|
||||||
$table_new_relations->style = [];
|
$table_new_relations->style = [];
|
||||||
$table_new_relations->size[0] = '25%';
|
$table_new_relations->size[0] = '33%';
|
||||||
$table_new_relations->size[1] = '25%';
|
$table_new_relations->size[1] = '33%';
|
||||||
$table_new_relations->size[2] = '25%';
|
$table_new_relations->size[2] = '33%';
|
||||||
$table_new_relations->size[3] = '25%';
|
|
||||||
|
|
||||||
$params = [];
|
$params = [];
|
||||||
$params['return'] = true;
|
$params['return'] = true;
|
||||||
$params['show_helptip'] = true;
|
$params['show_helptip'] = true;
|
||||||
$params['input_name'] = 'autocomplete_agent_name';
|
$params['input_name'] = 'autocomplete_agent_name';
|
||||||
|
$params['helptip_text'] = '';
|
||||||
$params['use_hidden_input_idagent'] = true;
|
$params['use_hidden_input_idagent'] = true;
|
||||||
$params['print_hidden_input_idagent'] = true;
|
$params['print_hidden_input_idagent'] = true;
|
||||||
$params['hidden_input_idagent_id'] = 'hidden-autocomplete_id_agent';
|
$params['hidden_input_idagent_id'] = 'hidden-autocomplete_id_agent';
|
||||||
@ -1476,15 +1476,15 @@ $table_new_relations->data[0][0] = html_print_label_input_block(
|
|||||||
ui_print_agent_autocomplete_input($params)
|
ui_print_agent_autocomplete_input($params)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
$table_new_relations->data[0][1] = html_print_label_input_block(
|
$table_new_relations->data[0][1] = html_print_label_input_block(
|
||||||
__('Module'),
|
__('Module'),
|
||||||
"<div id='module_autocomplete'></div>"
|
'<div id="module_autocomplete">'.html_print_input_text('', '', '', false, 255, true, true, false, '', 'w100p').'</div>'
|
||||||
);
|
);
|
||||||
|
|
||||||
$array_rel_type = [];
|
$array_rel_type = [];
|
||||||
$array_rel_type['direct'] = __('Direct');
|
$array_rel_type['direct'] = __('Direct');
|
||||||
$array_rel_type['failover'] = __('Failover');
|
$array_rel_type['failover'] = __('Failover');
|
||||||
|
|
||||||
$table_new_relations->data[0][2] = html_print_label_input_block(
|
$table_new_relations->data[0][2] = html_print_label_input_block(
|
||||||
__('Rel. type'),
|
__('Rel. type'),
|
||||||
html_print_select(
|
html_print_select(
|
||||||
@ -1497,43 +1497,55 @@ $table_new_relations->data[0][2] = html_print_label_input_block(
|
|||||||
true,
|
true,
|
||||||
false,
|
false,
|
||||||
true,
|
true,
|
||||||
''
|
'w100p',
|
||||||
|
false,
|
||||||
|
'width:100%'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$table_new_relations->data[0][3] = html_print_label_input_block(
|
$table_new_relations->data[1][0] = ' ';
|
||||||
' ',
|
$table_new_relations->data[1][1] = ' ';
|
||||||
'<div class="inline_line">'.html_print_button(
|
$table_new_relations->cellstyle[1][2] = 'width:100% !important;';
|
||||||
__('Add relationship'),
|
$table_new_relations->cellclass[1][2] = 'flex flex-end';
|
||||||
'add_relation',
|
$table_new_relations->data[1][2] = "<div id='add_relation_status' class='inline_line' style='margin-right:10px'></div>".html_print_button(
|
||||||
false,
|
__('Add relationship')."<div id='add_relation_status'></div>",
|
||||||
'javascript: add_new_relation();',
|
'add_relation',
|
||||||
[
|
false,
|
||||||
'class' => 'w150px secondary',
|
'add_new_relation();',
|
||||||
'icon' => 'plus',
|
[
|
||||||
],
|
'class' => 'mini',
|
||||||
true
|
'icon' => 'next',
|
||||||
)."<div id='add_relation_status' class='inline_line'></div></div>"
|
'mode' => 'secondary',
|
||||||
|
'style' => 'margin-top: 10px; margin-right: 10px',
|
||||||
|
],
|
||||||
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
// Relationship list.
|
// Relationship list.
|
||||||
$table_relations = new stdClass();
|
$table_relations = new stdClass();
|
||||||
$table_relations->id = 'module_relations';
|
$table_relations->id = 'module_relations';
|
||||||
$table_relations->width = '100%';
|
$table_relations->width = '100%';
|
||||||
$table_relations->class = 'databox data';
|
$table_relations->class = 'info_table';
|
||||||
|
$table_relations->styleTable = 'border: none';
|
||||||
$table_relations->head = [];
|
$table_relations->head = [];
|
||||||
$table_relations->data = [];
|
$table_relations->data = [];
|
||||||
$table_relations->rowstyle = [];
|
|
||||||
$table_relations->rowstyle[-1] = 'display: none;';
|
$table_relations->rowstyle[-1] = 'display: none;';
|
||||||
$table_relations->style = [];
|
|
||||||
$table_relations->style[3] = 'width: 10%; text-align: center;';
|
|
||||||
$table_relations->style[4] = 'width: 10%; text-align: center;';
|
|
||||||
|
|
||||||
$table_relations->head[0] = __('Agent');
|
$table_relations->head[0] = __('Agent');
|
||||||
$table_relations->head[1] = __('Module');
|
$table_relations->head[1] = __('Module');
|
||||||
$table_relations->head[2] = __('Type');
|
$table_relations->head[2] = __('Type');
|
||||||
$table_relations->head[3] = __('Changes');
|
$table_relations->head[3] = __('Changes');
|
||||||
$table_relations->head[4] = __('Delete');
|
$table_relations->head[4] = __('Delete');
|
||||||
|
$table_relations->headclass[0] = 'w20p';
|
||||||
|
$table_relations->headclass[1] = 'w20p';
|
||||||
|
$table_relations->headclass[2] = 'w20p';
|
||||||
|
$table_relations->headclass[3] = 'w20p';
|
||||||
|
$table_relations->headclass[4] = 'w20p';
|
||||||
|
$table_relations->style[0] = 'width:20%';
|
||||||
|
$table_relations->style[1] = 'width:20%';
|
||||||
|
$table_relations->style[2] = 'width:20%';
|
||||||
|
$table_relations->style[3] = 'width:20%';
|
||||||
|
$table_relations->style[4] = 'width:20%';
|
||||||
|
|
||||||
// Create an invisible row to use their html to add new rows.
|
// Create an invisible row to use their html to add new rows.
|
||||||
$table_relations->data[-1][0] = '';
|
$table_relations->data[-1][0] = '';
|
||||||
@ -1565,6 +1577,9 @@ if ($id_agent_module) {
|
|||||||
|
|
||||||
$relations_count = 0;
|
$relations_count = 0;
|
||||||
foreach ($module_relations as $key => $module_relation) {
|
foreach ($module_relations as $key => $module_relation) {
|
||||||
|
// Styles.
|
||||||
|
$table_relations->cellclass[$relations_count][4] = 'table_action_buttons';
|
||||||
|
|
||||||
if ($module_relation['module_a'] == $id_agent_module) {
|
if ($module_relation['module_a'] == $id_agent_module) {
|
||||||
$module_id = $module_relation['module_b'];
|
$module_id = $module_relation['module_b'];
|
||||||
$agent_id = modules_give_agent_id_from_module_id(
|
$agent_id = modules_give_agent_id_from_module_id(
|
||||||
@ -2047,6 +2062,7 @@ function change_modules_autocomplete_input () {
|
|||||||
else {
|
else {
|
||||||
module_autocomplete.html(error_icon);
|
module_autocomplete.html(error_icon);
|
||||||
}
|
}
|
||||||
|
$('#text-autocomplete_module_name').addClass('w90p');
|
||||||
},
|
},
|
||||||
error: function (data) {
|
error: function (data) {
|
||||||
module_autocomplete.removeClass('working');
|
module_autocomplete.removeClass('working');
|
||||||
@ -2109,15 +2125,15 @@ function add_new_relation () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var rowHTML = '<tr id="module_relations-' + relationsCount + '" class="' + rowClass + '">' +
|
var rowHTML = '<tr id="module_relations-' + relationsCount + '" class="' + rowClass + '">' +
|
||||||
'<td id="module_relations-' + relationsCount + '-0"><b>' + agent_b_name + '</b></td>' +
|
'<td style="width:20%" id="module_relations-' + relationsCount + '-0"><b>' + agent_b_name + '</b></td>' +
|
||||||
'<td id="module_relations-' + relationsCount + '-1">' + module_b_name + '</td>' +
|
'<td style="width:20%" id="module_relations-' + relationsCount + '-1">' + module_b_name + '</td>' +
|
||||||
'<td id="module_relations-' + relationsCount + '-2">' + relation_type + '</td>' +
|
'<td style="width:20%" id="module_relations-' + relationsCount + '-2">' + relation_type + '</td>' +
|
||||||
'<td id="module_relations-' + relationsCount + '-3" class="w10p center">' +
|
'<td style="width:20%" id="module_relations-' + relationsCount + '-3">' +
|
||||||
'<a id="disable_updates_button" class="alpha50" href="javascript: change_lock_relation(' + relationsCount + ', ' + data + ');">' +
|
'<a id="disable_updates_button" class="alpha50" href="javascript: change_lock_relation(' + relationsCount + ', ' + data + ');">' +
|
||||||
'<?php echo html_print_image('images/policy@svg.svg', true, ['class' => 'main_menu_icon invert_filter']); ?>' +
|
'<?php echo html_print_image('images/policy@svg.svg', true, ['class' => 'main_menu_icon invert_filter']); ?>' +
|
||||||
'</a>' +
|
'</a>' +
|
||||||
'</td>' +
|
'</td>' +
|
||||||
'<td id="module_relations-' + relationsCount + '-4" class="w10p center">' +
|
'<td style="width:20%" id="module_relations-' + relationsCount + '-4" class="table_action_buttons">' +
|
||||||
'<a id="delete_relation_button" href="javascript: delete_relation(' + relationsCount + ', ' + data + ');">' +
|
'<a id="delete_relation_button" href="javascript: delete_relation(' + relationsCount + ', ' + data + ');">' +
|
||||||
'<?php echo html_print_image('images/delete.svg', true, ['class' => 'main_menu_icon invert_filter']); ?>' +
|
'<?php echo html_print_image('images/delete.svg', true, ['class' => 'main_menu_icon invert_filter']); ?>' +
|
||||||
'</a>' +
|
'</a>' +
|
||||||
|
@ -71,11 +71,11 @@ $max_graph = $config['max_graph_container'];
|
|||||||
$buttons['graph_list'] = [
|
$buttons['graph_list'] = [
|
||||||
'active' => false,
|
'active' => false,
|
||||||
'text' => '<a href="index.php?sec=reporting&sec2=godmode/reporting/graphs">'.html_print_image(
|
'text' => '<a href="index.php?sec=reporting&sec2=godmode/reporting/graphs">'.html_print_image(
|
||||||
'images/list.png',
|
'images/logs@svg.svg',
|
||||||
true,
|
true,
|
||||||
[
|
[
|
||||||
'title' => __('Graph list'),
|
'title' => __('Graph list'),
|
||||||
'class' => 'invert_filter',
|
'class' => 'main_menu_icon invert_filter',
|
||||||
]
|
]
|
||||||
).'</a>',
|
).'</a>',
|
||||||
];
|
];
|
||||||
|
@ -3557,7 +3557,7 @@ switch ($action) {
|
|||||||
$buttons = [
|
$buttons = [
|
||||||
'list_reports' => [
|
'list_reports' => [
|
||||||
'active' => false,
|
'active' => false,
|
||||||
'text' => '<a href="index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&pure='.$pure.'">'.html_print_image('images/report_list.png', true, ['title' => __('Reports list'), 'class' => 'invert_filter']).'</a>',
|
'text' => '<a href="index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&pure='.$pure.'">'.html_print_image('images/logs@svg.svg', true, ['title' => __('Reports list'), 'class' => 'invert_filter main_menu_icon']).'</a>',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -1045,20 +1045,6 @@ if ($is_management_allowed === true) {
|
|||||||
} else {
|
} else {
|
||||||
echo '<i>'.__("The current authentication scheme doesn't support creating users on %s", get_product_name()).'</i>';
|
echo '<i>'.__("The current authentication scheme doesn't support creating users on %s", get_product_name()).'</i>';
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
html_print_action_buttons(
|
|
||||||
html_print_submit_button(
|
|
||||||
__('Create user'),
|
|
||||||
'none',
|
|
||||||
true,
|
|
||||||
[ 'icon' => 'wand' ],
|
|
||||||
true
|
|
||||||
),
|
|
||||||
[
|
|
||||||
'type' => 'form_action',
|
|
||||||
'right_content' => $tablePagination,
|
|
||||||
],
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -81,6 +81,12 @@ function menu_print_menu(&$menu)
|
|||||||
$sec2 = 'godmode/setup/setup§ion=gis';
|
$sec2 = 'godmode/setup/setup§ion=gis';
|
||||||
} else if ($sec2 === 'enterprise/godmode/agentes/agent_autoconfiguration.definition') {
|
} else if ($sec2 === 'enterprise/godmode/agentes/agent_autoconfiguration.definition') {
|
||||||
$sec2 = 'enterprise/godmode/agentes/agent_autoconfiguration';
|
$sec2 = 'enterprise/godmode/agentes/agent_autoconfiguration';
|
||||||
|
} else if ($sec2 === 'enterprise/godmode/reporting/graph_template_list') {
|
||||||
|
$sec2 = 'godmode/reporting/graphs';
|
||||||
|
} else if ($sec2 === 'enterprise/godmode/reporting/graph_template_wizard') {
|
||||||
|
$sec2 = 'godmode/reporting/graphs';
|
||||||
|
} else if ($sec2 === 'godmode/reporting/graph_container') {
|
||||||
|
$sec2 = 'godmode/reporting/graphs';
|
||||||
} else if ($sec2 === 'operation/gis_maps/render_view') {
|
} else if ($sec2 === 'operation/gis_maps/render_view') {
|
||||||
$map_id = (int) get_parameter('map_id');
|
$map_id = (int) get_parameter('map_id');
|
||||||
if (empty($map_id) === false) {
|
if (empty($map_id) === false) {
|
||||||
|
@ -652,13 +652,10 @@ var TreeController = {
|
|||||||
typeof element.icon != "undefined" &&
|
typeof element.icon != "undefined" &&
|
||||||
element.icon.length > 0
|
element.icon.length > 0
|
||||||
) {
|
) {
|
||||||
console.log("a");
|
|
||||||
console.log(controller);
|
|
||||||
$content.append(
|
$content.append(
|
||||||
'<div class="node-icon"><div class="node-icon-container"><img src="' +
|
'<div class="node-icon"><div class="node-icon-container"><img src="' +
|
||||||
(controller.baseURL.length > 0 ? controller.baseURL : "") +
|
(controller.baseURL.length > 0 ? controller.baseURL : "") +
|
||||||
(treeController.meta != undefined &&
|
(controller.meta != undefined && controller.meta == 1
|
||||||
treeController.meta == 1
|
|
||||||
? "../../images/"
|
? "../../images/"
|
||||||
: "images/") +
|
: "images/") +
|
||||||
element.icon +
|
element.icon +
|
||||||
|
@ -11743,6 +11743,11 @@ div.relative > div > div#ui-datepicker-div {
|
|||||||
width: 400px;
|
width: 400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#module_relations > thead > tr {
|
||||||
|
border: none !important;
|
||||||
|
border-bottom: 1px solid #e2e2e2 !important;
|
||||||
|
}
|
||||||
|
|
||||||
span.help_icon_15px > img {
|
span.help_icon_15px > img {
|
||||||
height: 15px !important;
|
height: 15px !important;
|
||||||
}
|
}
|
||||||
|
@ -216,11 +216,12 @@ $enable_disable['text'] = html_print_div(
|
|||||||
// New Widget.
|
// New Widget.
|
||||||
$newWidget['text'] = '<a href="#" id="add-widget" class="invisible">';
|
$newWidget['text'] = '<a href="#" id="add-widget" class="invisible">';
|
||||||
$newWidget['text'] .= html_print_image(
|
$newWidget['text'] .= html_print_image(
|
||||||
'images/add.png',
|
'images/plus@svg.svg',
|
||||||
true,
|
true,
|
||||||
[
|
[
|
||||||
'title' => __('Add Cell'),
|
'title' => __('Add Cell'),
|
||||||
'class' => 'invert_filter',
|
'class' => 'main_menu_icon invert_filter',
|
||||||
|
'style' => 'margin-top:5px;',
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
$newWidget['text'] .= '</a>';
|
$newWidget['text'] .= '</a>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user