app/helpers/application_helper/toolbar/ems_physical_infra_center.rb
class ApplicationHelper::Toolbar::EmsPhysicalInfraCenter < ApplicationHelper::Toolbar::Basic
button_group('ems_physical_infra_vmdb', [
button(
:refresh_server_summary,
'fa fa-refresh fa-lg',
N_('Refresh this page'),
nil),
select(
:ems_physical_infra_vmdb_choice,
nil,
t = N_('Configuration'),
t,
:items => [
button(
:ems_physical_infra_refresh,
'fa fa-refresh fa-lg',
N_('Refresh relationships and power states for all items related to this Infrastructure Provider'),
N_('Refresh Relationships and Power States'),
:confirm => N_("Refresh relationships and power states for all items related to this Infrastructure Provider?"),
:klass => ApplicationHelper::Button::EmsRefresh),
separator,
button(
:ems_physical_infra_edit,
'pficon pficon-edit fa-lg',
t = N_('Edit this Infrastructure Provider'),
t),
button(
:ems_physical_infra_delete,
'pficon pficon-delete fa-lg',
t = N_('Remove this Infrastructure Provider from Inventory'),
t,
:url_parms => "&refresh=y",
:confirm => N_("Warning: This Infrastructure Provider and ALL of its components will be permanently removed!")),
]
),
])
button_group('ems_physical_infra_policy', [
select(
:ems_physical_infra_policy_choice,
nil,
t = N_('Policy'),
t,
:items => [
button(
:ems_physical_infra_protect,
'pficon pficon-edit fa-lg',
N_('Manage Policies for this Physical Infrastructure Provider'),
N_('Manage Policies')),
button(
:ems_physical_infra_tag,
'pficon pficon-edit fa-lg',
N_('Edit Tags for this Physical Infrastructure Provider'),
N_('Edit Tags')),
button(
:ems_physical_infra_check_compliance,
'fa fa-search fa-lg',
N_('Check Compliance of the last known configuration for this Physical Infra Manager'),
N_('Check Compliance of Last Known Configuration'),
:confirm => N_("Initiate Check Compliance of the last known configuration for this item?")),
]
),
])
button_group('ems_physical_infra_monitoring', [
select(
:ems_physical_infra_monitoring_choice,
nil,
t = N_('Monitoring'),
t,
:items => [
button(
:ems_physical_infra_timeline,
'ff ff-timeline fa-lg',
N_('Show Timelines for this Physical Infrastructure Provider'),
N_('Timelines'),
:klass => ApplicationHelper::Button::EmsTimeline,
:url_parms => "?display=timeline"),
]
),
])
button_group('ems_physical_infra_console_access', [
select(
:ems_physical_infra_console_choice,
nil,
N_('Remote Access'),
N_('Access'),
:items => [
button(
:ems_physical_infra_console,
'pficon pficon-screen fa-lg',
N_('Open a web-based console for this provider'),
N_('Management Console'),
:keepSpinner => true,
:url => "launch_console",
:confirm => N_("Open management console for this provider"),
:klass => ApplicationHelper::Button::NativeConsole,
:options => {:feature => :console})
]
),
])
button_group('ems_physical_infra_authentication', [
select(
:ems_physical_infra_authentication_choice,
nil,
t = N_('Authentication'),
t,
:items => [
button(
:ems_physical_infra_recheck_auth_status,
'fa fa-search fa-lg',
N_('Re-check Authentication Status for this Physical Infrastructure Provider'),
N_('Re-check Authentication Status'),
:klass => ApplicationHelper::Button::GenericFeatureButton,
:options => {:feature => :authentication_status}),
]
),
])
end