app/helpers/application_helper/toolbar/resource_pool_center.rb
class ApplicationHelper::Toolbar::ResourcePoolCenter < ApplicationHelper::Toolbar::Basic
button_group('resource_pool_vmdb', [
select(
:resource_pool_vmdb_choice,
nil,
t = N_('Configuration'),
t,
:items => [
button(
:resource_pool_delete,
'pficon pficon-delete fa-lg',
N_('Remove this Resource Pool from Inventory'),
N_('Remove Resource Pool from Inventory'),
:url_parms => "&refresh=y",
:confirm => N_("Warning: This Resource Pool and ALL of its components will be permanently removed!")),
]
),
])
button_group('resource_pool_policy', [
select(
:resource_pool_policy_choice,
nil,
t = N_('Policy'),
t,
:items => [
button(
:resource_pool_protect,
'pficon pficon-edit fa-lg',
N_('Manage Policies for this Resource Pool'),
N_('Manage Policies')),
button(
:resource_pool_tag,
'pficon pficon-edit fa-lg',
N_('Edit Tags for this Resource Pool'),
N_('Edit Tags')),
]
),
])
end