Merge branch 'ent-9662-second-round' into 'develop'

Ent 9662 second round

See merge request artica/pandorafms!5670
This commit is contained in:
daniel 2023-04-10 15:04:11 +00:00
commit d7724f4691
7 changed files with 30 additions and 53 deletions

View File

@ -224,7 +224,7 @@ function pandora_realtime_graphs()
false, false,
'', '',
'white-box-content', 'white-box-content',
'box-flat white_table_graph fixed_filter_bar' 'box-flat white_table_graph'
); );
$chart[time()]['graph'] = '0'; $chart[time()]['graph'] = '0';

View File

@ -134,7 +134,7 @@ class AuditLog extends HTML
ui_print_standard_header( ui_print_standard_header(
__('%s audit', get_product_name()).' » '.__('Review Logs'), __('%s audit', get_product_name()).' » '.__('Review Logs'),
'images/gm_log.png', 'images/gm_log@svg.svg',
false, false,
'', '',
false, false,

View File

@ -1443,7 +1443,7 @@ class SnmpConsole extends HTML
binding_vars.forEach(function(oid) { binding_vars.forEach(function(oid) {
string += oid+'<br/>'; string += oid+'<br/>';
}); });
variableBindings = `<td align="left" colspan="8">${string}</td>`; variableBindings = `<td align="left" colspan="8" class="break-word w200px">${string}</td>`;
} }
tr.after(`<tr id="show_" role="row">${labelBindings}${variableBindings}</tr>`); tr.after(`<tr id="show_" role="row">${labelBindings}${variableBindings}</tr>`);

View File

@ -764,6 +764,7 @@ class ClusterWizard extends \HTML
'action' => $target_url, 'action' => $target_url,
'method' => 'POST', 'method' => 'POST',
'extra' => 'autocomplete="false"', 'extra' => 'autocomplete="false"',
'id' => 'cluster-edit-'.($this->page + 1),
]; ];
if ($load_success === false && $this->page !== 0) { if ($load_success === false && $this->page !== 0) {
@ -1245,17 +1246,16 @@ class ClusterWizard extends \HTML
} }
// Submit button. // Submit button.
$form['inputs'][] = [ $form['submit-external-input'] = [
'arguments' => [
'name' => 'next', 'name' => 'next',
'label' => $str, 'label' => $str,
'type' => 'submit', 'type' => 'submit',
'attributes' => [ 'attributes' => [
'icon' => 'wand', 'icon' => 'wand',
'mode' => 'primary', 'mode' => 'primary',
'form' => 'cluster-edit-'.($this->page + 1),
], ],
'return' => true, 'return' => true,
],
]; ];
return $form; return $form;

View File

@ -11895,3 +11895,7 @@ td[id^="table_info_box"] a {
.info_table.events > tbody > tr > td { .info_table.events > tbody > tr > td {
border-bottom: 1px solid #dedede !important; border-bottom: 1px solid #dedede !important;
} }
.break-word {
word-wrap: break-word;
}

View File

@ -1477,16 +1477,14 @@ if ($policyTab === ENTERPRISE_NOT_HOOK) {
$policyTab = ''; $policyTab = '';
} }
// Omnishell. // Omnishell.
if (function_exists('count_tasks_agent')) { $tasks = enterprise_hook('count_tasks_agent', [$id_agente]);
$tasks = count_tasks_agent($id_agente);
if ($tasks === true) { if ($tasks === true) {
$omnishellTab = enterprise_hook('omnishell_tab'); $omnishellTab = enterprise_hook('omnishell_tab');
if ($omnishellTab == -1) { if ($omnishellTab == -1) {
$omnishellTab = ''; $omnishellTab = '';
} }
}
} }
// WUX Console. // WUX Console.

View File

@ -120,42 +120,17 @@ if (empty($wizard->errMessages) === false) {
} }
} }
$buttons_input = '';
if (empty($form) === false) { if (empty($form) === false) {
// Print form (prepared in ClusterWizard). // Print form (prepared in ClusterWizard).
$submit = $form['submit-external-input'];
unset($form['submit-external-input']);
HTML::printForm($form, false, ($wizard->page < 6)); HTML::printForm($form, false, ($wizard->page < 6));
$buttons_input .= HTML::printInput($submit);
} }
// Print always go back button. // Print always go back button.
HTML::printForm($wizard->getGoBackForm(), false); $buttons_input .= HTML::printForm($wizard->getGoBackForm(), true);
html_print_action_buttons( html_print_action_buttons($buttons_input);
'',
[]
);
?>
<script type="text/javascript">
$(document).ready(function() {
var buttonnext = $('#button-next').parent().html();
$('#button-next').hide();
var buttonnext = buttonnext.replace('button-next','button-next_copy');
var buttonback = $('#button-submit').parent().html();
$('#button-submit').hide();
var buttonback = buttonback.replace('button-submit','button-submit_copy');
var buttonalert = $('#button-add').parent().html();
var buttonalert = buttonalert.replace('button-add','button-add_copy');
$('.action_buttons_right_content').parent().html(buttonnext+buttonback+buttonalert);
var style = $('#principal_action_buttons').attr('style');
$('#principal_action_buttons').attr('style',style+' justify-content: unset;');
// Button next/finish on action buttons.
$('#button-next_copy').click(function(){
$('#button-next').trigger('click');
});
// Button back on action buttons.
$('#button-submit_copy').click(function(){
$('#button-submit').trigger('click');
});
});
</script>