app/helpers/application_helper/toolbar/scan_profiles_center.rb
class ApplicationHelper::Toolbar::ScanProfilesCenter < ApplicationHelper::Toolbar::Basic
button_group('scan_vmdb', [
select(
:scan_vmdb_choice,
nil,
t = N_('Configuration'),
t,
:items => [
button(
:ap_host_edit,
'pficon pficon-add-circle-o fa-lg',
N_('Add a new Host Analysis Profile'),
N_('Add Host Analysis Profile')),
button(
:ap_vm_edit,
'pficon pficon-add-circle-o fa-lg',
N_('Add a new VM Analysis Profile'),
N_('Add VM Analysis Profile')),
button(
:ap_edit,
'pficon pficon-edit fa-lg',
t = N_('Edit the selected Analysis Profiles'),
t,
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1"),
button(
:ap_copy,
'fa fa-files-o fa-lg',
t = N_('Copy the selected Analysis Profiles'),
t,
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1"),
button(
:ap_delete,
'pficon pficon-delete fa-lg',
t = N_('Delete the selected Analysis Profiles'),
t,
:url_parms => "main_div",
:send_checked => true,
:confirm => N_("Warning: The selected Analysis Profiles and ALL of their components will be permanently removed!"),
:enabled => false,
:onwhen => "1+"),
]
),
])
end