-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Physical Chassis Location LED actions
- Loading branch information
1 parent
0a0df98
commit f731359
Showing
3 changed files
with
109 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
app/helpers/application_helper/toolbar/physical_chassis_list_center.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
class ApplicationHelper::Toolbar::PhysicalChassisListCenter < ApplicationHelper::Toolbar::Basic | ||
button_group( | ||
'physical_chassis_operations', | ||
[ | ||
select( | ||
:physical_chassis_identify_choice, | ||
nil, | ||
N_('Identify LED Operations'), | ||
N_('Identify'), | ||
:items => [ | ||
api_button( | ||
:physical_chassis_blink_loc_led, | ||
nil, | ||
N_('Blink the Identify LED'), | ||
N_('Blink LED'), | ||
:icon => "pficon pficon-connected fa-lg", | ||
:api => { | ||
:action => 'blink_loc_led', | ||
:entity => 'physical_chassis' | ||
}, | ||
:confirm => N_("Blink the Identify LED?"), | ||
:options => {:feature => :blink_loc_led} | ||
), | ||
api_button( | ||
:physical_chassis_turn_on_loc_led, | ||
nil, | ||
N_('Turn on the Idenfity LED'), | ||
N_('Turn On LED'), | ||
:icon => "pficon pficon-on fa-lg", | ||
:api => { | ||
:action => 'turn_on_loc_led', | ||
:entity => 'physical_chassis' | ||
}, | ||
:confirm => N_("Turn on the Identify LED?"), | ||
:options => {:feature => :turn_on_loc_led} | ||
), | ||
api_button( | ||
:physical_chassis_turn_off_loc_led, | ||
nil, | ||
N_('Turn off the Identify LED'), | ||
N_('Turn Off LED'), | ||
:icon => "pficon pficon-off fa-lg", | ||
:api => { | ||
:action => 'turn_off_loc_led', | ||
:entity => 'physical_chassis' | ||
}, | ||
:confirm => N_("Turn off the Identify LED?"), | ||
:options => {:feature => :turn_off_loc_led} | ||
), | ||
] | ||
) | ||
] | ||
) | ||
end |
54 changes: 54 additions & 0 deletions
54
app/helpers/application_helper/toolbar/physical_chassis_summary_center.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
class ApplicationHelper::Toolbar::PhysicalChassisSummaryCenter < ApplicationHelper::Toolbar::Basic | ||
button_group( | ||
'physical_chassis_operations', | ||
[ | ||
select( | ||
:physical_chassis_identify_choice, | ||
nil, | ||
N_('Identify LED Operations'), | ||
N_('Identify'), | ||
:items => [ | ||
api_button( | ||
:physical_chassis_blink_loc_led, | ||
nil, | ||
N_('Blink the Identify LED'), | ||
N_('Blink LED'), | ||
:icon => "pficon pficon-connected fa-lg", | ||
:api => { | ||
:action => 'blink_loc_led', | ||
:entity => 'physical_chassis' | ||
}, | ||
:confirm => N_("Blink the Identify LED?"), | ||
:options => {:feature => :blink_loc_led} | ||
), | ||
api_button( | ||
:physical_chassis_turn_on_loc_led, | ||
nil, | ||
N_('Turn on the Idenfity LED'), | ||
N_('Turn On LED'), | ||
:icon => "pficon pficon-on fa-lg", | ||
:api => { | ||
:action => 'turn_on_loc_led', | ||
:entity => 'physical_chassis' | ||
}, | ||
:confirm => N_("Turn on the Identify LED?"), | ||
:options => {:feature => :turn_on_loc_led} | ||
), | ||
api_button( | ||
:physical_chassis_turn_off_loc_led, | ||
nil, | ||
N_('Turn off the Identify LED'), | ||
N_('Turn Off LED'), | ||
:icon => "pficon pficon-off fa-lg", | ||
:api => { | ||
:action => 'turn_off_loc_led', | ||
:entity => 'physical_chassis' | ||
}, | ||
:confirm => N_("Turn off the Identify LED?"), | ||
:options => {:feature => :turn_off_loc_led} | ||
), | ||
] | ||
) | ||
] | ||
) | ||
end |