mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
#11633 Change position of button created module
This commit is contained in:
parent
0d0380f37d
commit
44f310449b
@ -829,17 +829,47 @@ class AgentWizard extends HTML
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
html_print_action_buttons(
|
$create_modules_button = '';
|
||||||
html_print_submit_button(
|
if ($this->actionType === 'snmp' && $this->version !== null && $this->message['type'][0] !== 'error') {
|
||||||
$this->actionLabel,
|
$create_modules_button = html_print_submit_button(
|
||||||
'sub-protocol',
|
__('Create modules'),
|
||||||
|
'create-modules-action',
|
||||||
false,
|
false,
|
||||||
[
|
[
|
||||||
'icon' => 'cog',
|
'icon' => 'next',
|
||||||
'onclick' => '$("#form-main-wizard").submit();',
|
'onclick' => 'processListModules()',
|
||||||
],
|
],
|
||||||
true
|
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_submit_button(
|
||||||
|
$this->actionLabel,
|
||||||
|
'sub-protocol',
|
||||||
|
false,
|
||||||
|
[
|
||||||
|
'icon' => 'cog',
|
||||||
|
'onclick' => '$("#form-main-wizard").submit();',
|
||||||
|
],
|
||||||
|
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,
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user