Skip to content

Commit

Permalink
Added policy buttons to show physical_server page
Browse files Browse the repository at this point in the history
  • Loading branch information
MaysaMacedo committed Oct 16, 2017
1 parent fd4ca15 commit 4833daa
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions app/helpers/application_helper/toolbar/physical_server_center.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,38 @@ class ApplicationHelper::Toolbar::PhysicalServerCenter < ApplicationHelper::Tool
),
]
)
button_group(
'physical_server_policy',
[
select(
:physical_server_policy_choice,
'fa fa-shield fa-lg',
N_('Policy'),
:enabled => true,
:onwhen => "1+",
:items => [
button(
:physical_server_protect,
'pficon pficon-edit fa-lg',
N_('Manage Policies for the selected items'),
N_('Manage Policies'),
:url_parms => "main_div",
:send_checked => true,
:enabled => true,
:onwhen => "1+"
),
button(
:physical_server_tag,
'pficon pficon-edit fa-lg',
N_('Edit tags for the selected items'),
N_('Edit Tags'),
:url_parms => "main_div",
:send_checked => true,
:enabled => true,
:onwhen => "1+"
),
]
),
]
)
end

0 comments on commit 4833daa

Please sign in to comment.