app/helpers/application_helper/toolbar/host_initiator_center.rb
class ApplicationHelper::Toolbar::HostInitiatorCenter < ApplicationHelper::Toolbar::Basic
button_group(
'host_initiator_vmdb',
[
select(
:host_initiator_vmdb_choice,
nil,
t = N_('Configuration'),
t,
:items => [
button(
:host_initiator_refresh,
'fa fa-refresh fa-lg',
N_('Refresh this Host Initiator'),
N_('Refresh this Host Initiator'),
:image => "refresh",
:confirm => N_("Refresh this Host Initiator?"),
:options => {:feature => :refresh},
:api => {
:action => 'refresh',
:entity => 'host_initiators'
},
:send_checked => true
),
api_button(
:host_initiator_delete,
nil,
t = N_('Delete this Host Initiator'),
t,
:icon => "pficon pficon-delete fa-lg",
:klass => ApplicationHelper::Button::GenericFeatureButtonWithDisable,
:options => {:feature => :delete},
:api => {
:action => 'delete',
:entity => 'host_initiators'
},
:confirm => N_("Are you sure you want to delete this Host Initiator?"),
:send_checked => true
),
]
),
]
)
end