Merge branch 'ent-11633-cambiar-ubicacion-del-boton-create-modules-en-wizards' into 'develop'

Ent 11633 cambiar ubicacion del boton create modules en wizards

See merge request artica/pandorafms!6436
This commit is contained in:
Rafael Ameijeiras 2023-11-27 11:59:26 +00:00
commit c41a2d0f19

View File

@ -829,7 +829,35 @@ class AgentWizard extends HTML
]; ];
} }
$create_modules_button = '';
if ($this->actionType === 'snmp' && $this->version !== null && $this->message['type'][0] !== 'error') {
$create_modules_button = html_print_submit_button(
__('Create modules'),
'create-modules-action',
false,
[
'icon' => 'next',
'onclick' => 'processListModules()',
],
true
);
} else if ($this->actionType === 'wmi' && $this->protocol === 'wmi' && $this->message['type'][0] !== 'error') {
$create_modules_button = html_print_submit_button(
__('Create modules'),
'create-modules-action',
false,
[
'icon' => 'next',
'onclick' => 'processListModules()',
],
true
);
} else {
$create_modules_button = '';
}
html_print_action_buttons( html_print_action_buttons(
[
html_print_submit_button( html_print_submit_button(
$this->actionLabel, $this->actionLabel,
'sub-protocol', 'sub-protocol',
@ -839,7 +867,9 @@ class AgentWizard extends HTML
'onclick' => '$("#form-main-wizard").submit();', 'onclick' => '$("#form-main-wizard").submit();',
], ],
true true
) ),
$create_modules_button,
]
); );
// Prints main form. // Prints main form.
@ -3765,7 +3795,10 @@ class AgentWizard extends HTML
'label' => __('Create modules'), 'label' => __('Create modules'),
'name' => 'create-modules-action', 'name' => 'create-modules-action',
'type' => 'button', 'type' => 'button',
'attributes' => [ 'icon' => 'next' ], 'attributes' => [
'icon' => 'next',
'style' => 'display: none;',
],
'script' => 'processListModules();', 'script' => 'processListModules();',
'return' => true, 'return' => true,
], ],