Skip to content

Commit

Permalink
Update toolbar icons
Browse files Browse the repository at this point in the history
  • Loading branch information
epwinchell committed Apr 25, 2018
1 parent 638edcd commit bf1c43a
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 66 deletions.
Expand Up @@ -12,7 +12,7 @@ def self.included(included_class)
nil,
N_('Stop this Instance'),
N_('Stop'),
:icon => "fa fa-stop fa-lg",
:icon => "fa fa-stop fa-lg",
:confirm => N_("Stop this Instance?"),
:klass => ApplicationHelper::Button::GenericFeatureButton,
:options => {:feature => :stop}),
Expand Down
28 changes: 15 additions & 13 deletions app/helpers/application_helper/toolbar/middleware_server_center.rb
Expand Up @@ -24,7 +24,7 @@ class ApplicationHelper::Toolbar::MiddlewareServerCenter < ApplicationHelper::To
t = N_('Policy'),
t,
:enabled => "false",
:items => [
:items => [
button(
:middleware_server_protect,
'pficon pficon-edit fa-lg',
Expand Down Expand Up @@ -79,17 +79,19 @@ class ApplicationHelper::Toolbar::MiddlewareServerCenter < ApplicationHelper::To
:icon => "fa fa-stop fa-lg",
:confirm => N_('Do you want to stop this server?'),
:klass => ApplicationHelper::Button::MiddlewareStandaloneServerAction),
button(
:middleware_server_suspend,
nil,
N_('Suspend this server'),
N_('Suspend Server'),
:icon => "fa fa-pause fa-lg",
:data => {'toggle' => 'modal',
'target' => '#modal_param_div',
'function' => 'sendDataWithRx',
'function-data' => '{"type": "mwServerOps", "operation": "suspend", "timeout": 10}'},
:klass => ApplicationHelper::Button::MiddlewareDomainServerAction),
button(
:middleware_server_suspend,
nil,
N_('Suspend this server'),
N_('Suspend Server'),
:icon => "fa fa-pause fa-lg",
:data => {'toggle' => 'modal',
'target' => '#modal_param_div',
'function' => 'sendDataWithRx',
'function-data' => '{"type": "mwServerOps",
"operation": "suspend", "timeout": 10}'},
:klass => ApplicationHelper::Button::MiddlewareDomainServerAction
),
button(
:middleware_server_resume,
nil,
Expand All @@ -111,7 +113,7 @@ class ApplicationHelper::Toolbar::MiddlewareServerCenter < ApplicationHelper::To
nil,
N_('Start this server'),
N_('Start Server'),
:icon => 'fa fa-play fa-lg',
:icon => 'fa fa-play fa-lg',
:confirm => N_('Do you want to trigger a start of this server?'),
:klass => ApplicationHelper::Button::MiddlewareDomainServerAction),
button(
Expand Down
Expand Up @@ -37,22 +37,22 @@ class ApplicationHelper::Toolbar::MiddlewareServerGroupCenter < ApplicationHelpe
nil,
N_('Stop Servers in this Server Group'),
N_('Stop Server Group'),
:icon => "fa fa-stop fa-lg",
:data => {'toggle' => 'modal',
'target' => '#modal_param_div',
'function' => 'sendDataWithRx',
'function-data' => '{"type": "mwServerOps", "operation": "stop", "timeout": 10}'},
:icon => "fa fa-stop fa-lg",
:data => {'toggle' => 'modal',
'target' => '#modal_param_div',
'function' => 'sendDataWithRx',
'function-data' => '{"type": "mwServerOps", "operation": "stop", "timeout": 10}'},
),
button(
:middleware_server_group_suspend,
nil,
N_('Suspend Server in this Server Group'),
N_('Suspend Server Group'),
:icon => "fa fa-pause fa-lg",
:data => {'toggle' => 'modal',
'target' => '#modal_param_div',
'function' => 'sendDataWithRx',
'function-data' => '{"type": "mwServerOps", "operation": "suspend", "timeout": 10}'},
:icon => "fa fa-pause fa-lg",
:data => {'toggle' => 'modal',
'target' => '#modal_param_div',
'function' => 'sendDataWithRx',
'function-data' => '{"type": "mwServerOps", "operation": "suspend", "timeout": 10}'},
),
button(
:middleware_server_group_resume,
Expand Down
90 changes: 48 additions & 42 deletions app/helpers/application_helper/toolbar/physical_servers_center.rb
Expand Up @@ -39,26 +39,28 @@ class ApplicationHelper::Toolbar::PhysicalServersCenter < ApplicationHelper::Too
nil,
N_('Power on the selected servers'),
N_('Power On'),
:icon => "pficon pficon-on fa-lg",
:data => {'function' => 'sendDataWithRx',
'function-data' => '{"type": "power_on", "controller": "physicalServerToolbarController"}'},
:confirm => N_("Power on the selected servers?"),
:enabled => false,
:onwhen => "1+",
:options => {:feature => :power_on}
:icon => "pficon pficon-on fa-lg",
:data => {'function' => 'sendDataWithRx',
'function-data' => '{"type": "power_on",
"controller": "physicalServerToolbarController"}'},
:confirm => N_("Power on the selected servers?"),
:enabled => false,
:onwhen => "1+",
:options => {:feature => :power_on}
),
button(
:physical_server_power_off,
nil,
N_('Power off the selected servers'),
N_('Power Off'),
:icon => "pficon pficon-off fa-lg",
:data => {'function' => 'sendDataWithRx',
'function-data' => '{"type": "power_off", "controller": "physicalServerToolbarController"}'},
:confirm => N_("Power off the selected servers?"),
:enabled => false,
:onwhen => "1+",
:options => {:feature => :power_off}
:icon => "pficon pficon-off fa-lg",
:data => {'function' => 'sendDataWithRx',
'function-data' => '{"type": "power_off",
"controller": "physicalServerToolbarController"}'},
:confirm => N_("Power off the selected servers?"),
:enabled => false,
:onwhen => "1+",
:options => {:feature => :power_off}
),
button(
:physical_server_power_off_now,
Expand All @@ -78,13 +80,14 @@ class ApplicationHelper::Toolbar::PhysicalServersCenter < ApplicationHelper::Too
nil,
N_('Restart the selected servers'),
N_('Restart'),
:icon => "pficon pficon-restart fa-lg",
:data => {'function' => 'sendDataWithRx',
'function-data' => '{"type": "restart", "controller": "physicalServerToolbarController"}'},
:confirm => N_("Restart the selected servers?"),
:enabled => false,
:onwhen => "1+",
:options => {:feature => :restart}
:icon => "pficon pficon-restart fa-lg",
:data => {'function' => 'sendDataWithRx',
'function-data' => '{"type": "restart",
"controller": "physicalServerToolbarController"}'},
:confirm => N_("Restart the selected servers?"),
:enabled => false,
:onwhen => "1+",
:options => {:feature => :restart}
),
button(
:physical_server_restart_now,
Expand Down Expand Up @@ -138,39 +141,42 @@ class ApplicationHelper::Toolbar::PhysicalServersCenter < ApplicationHelper::Too
nil,
N_('Blink the Identify LED'),
N_('Blink LED'),
:icon => "pficon pficon-connected fa-lg",
:data => {'function' => 'sendDataWithRx',
'function-data' => '{"type": "blink_loc_led", "controller": "physicalServerToolbarController"}'},
:confirm => N_("Blink the Identify LED?"),
:enabled => false,
:onwhen => "1+",
:options => {:feature => :blink_loc_led}
:icon => "pficon pficon-connected fa-lg",
:data => {'function' => 'sendDataWithRx',
'function-data' => '{"type": "blink_loc_led",
"controller": "physicalServerToolbarController"}'},
:confirm => N_("Blink the Identify LED?"),
:enabled => false,
:onwhen => "1+",
:options => {:feature => :blink_loc_led}
),
button(
:physical_server_turn_on_loc_led,
nil,
N_('Turn on the Idenfity LED'),
N_('Turn On LED'),
:icon => "pficon pficon-on fa-lg",
:data => {'function' => 'sendDataWithRx',
'function-data' => '{"type": "turn_on_loc_led", "controller": "physicalServerToolbarController"}'},
:confirm => N_("Turn on the Identify LED?"),
:enabled => false,
:onwhen => "1+",
:options => {:feature => :turn_on_loc_led}
:icon => "pficon pficon-on fa-lg",
:data => {'function' => 'sendDataWithRx',
'function-data' => '{"type": "turn_on_loc_led",
"controller": "physicalServerToolbarController"}'},
:confirm => N_("Turn on the Identify LED?"),
:enabled => false,
:onwhen => "1+",
:options => {:feature => :turn_on_loc_led}
),
button(
:physical_server_turn_off_loc_led,
nil,
N_('Turn off the Identify LED'),
N_('Turn Off LED'),
:icon => "pficon pficon-off fa-lg",
:data => {'function' => 'sendDataWithRx',
'function-data' => '{"type": "turn_off_loc_led", "controller": "physicalServerToolbarController"}'},
:confirm => N_("Turn off the Identify LED?"),
:enabled => false,
:onwhen => "1+",
:options => {:feature => :turn_off_loc_led}
:icon => "pficon pficon-off fa-lg",
:data => {'function' => 'sendDataWithRx',
'function-data' => '{"type": "turn_off_loc_led",
"controller": "physicalServerToolbarController"}'},
:confirm => N_("Turn off the Identify LED?"),
:enabled => false,
:onwhen => "1+",
:options => {:feature => :turn_off_loc_led}
),
]
),
Expand Down

0 comments on commit bf1c43a

Please sign in to comment.