Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide policy simulation button #9205

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions app/helpers/application_helper/toolbar/miq_templates_center.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,16 @@ class ApplicationHelper::Toolbar::MiqTemplatesCenter < ApplicationHelper::Toolba
:send_checked => true,
:enabled => false,
:onwhen => "1+"),
button(
:miq_template_policy_sim,
'fa fa-play-circle-o fa-lg',
N_('View Policy Simulation for the selected Templates'),
N_('Policy Simulation'),
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1+"),
# TODO: Add this button back when the page is fixed
# button(
# :miq_template_policy_sim,
# 'fa fa-play-circle-o fa-lg',
# N_('View Policy Simulation for the selected Templates'),
# N_('Policy Simulation'),
# :url_parms => "main_div",
# :send_checked => true,
# :enabled => false,
# :onwhen => "1+"),
button(
:miq_template_tag,
'pficon pficon-edit fa-lg',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,16 @@ class ApplicationHelper::Toolbar::TemplateCloudsCenter < ApplicationHelper::Tool
:send_checked => true,
:enabled => false,
:onwhen => "1+"),
button(
:image_policy_sim,
'fa fa-play-circle-o fa-lg',
N_('View Policy Simulation for the selected items'),
N_('Policy Simulation'),
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1+"),
# TODO: Add this button back when the page is fixed
# button(
# :image_policy_sim,
# 'fa fa-play-circle-o fa-lg',
# N_('View Policy Simulation for the selected items'),
# N_('Policy Simulation'),
# :url_parms => "main_div",
# :send_checked => true,
# :enabled => false,
# :onwhen => "1+"),
button(
:image_tag,
'pficon pficon-edit fa-lg',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,16 @@ class ApplicationHelper::Toolbar::TemplateInfrasCenter < ApplicationHelper::Tool
:send_checked => true,
:enabled => false,
:onwhen => "1+"),
button(
:miq_template_policy_sim,
'fa fa-play-circle-o fa-lg',
N_('View Policy Simulation for the selected Templates'),
N_('Policy Simulation'),
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1+"),
# TODO: Add this button back when the page is fixed
# button(
# :miq_template_policy_sim,
# 'fa fa-play-circle-o fa-lg',
# N_('View Policy Simulation for the selected Templates'),
# N_('Policy Simulation'),
# :url_parms => "main_div",
# :send_checked => true,
# :enabled => false,
# :onwhen => "1+"),
button(
:miq_template_tag,
'pficon pficon-edit fa-lg',
Expand Down
19 changes: 10 additions & 9 deletions app/helpers/application_helper/toolbar/vm_clouds_center.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,16 @@ class ApplicationHelper::Toolbar::VmCloudsCenter < ApplicationHelper::Toolbar::B
:send_checked => true,
:enabled => false,
:onwhen => "1+"),
button(
:instance_policy_sim,
'fa fa-play-circle-o fa-lg',
N_('View Policy Simulation for the selected items'),
N_('Policy Simulation'),
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1+"),
# TODO: Add this button back when the page is fixed
# button(
# :instance_policy_sim,
# 'fa fa-play-circle-o fa-lg',
# N_('View Policy Simulation for the selected items'),
# N_('Policy Simulation'),
# :url_parms => "main_div",
# :send_checked => true,
# :enabled => false,
# :onwhen => "1+"),
button(
:instance_tag,
'pficon pficon-edit fa-lg',
Expand Down
19 changes: 10 additions & 9 deletions app/helpers/application_helper/toolbar/vm_infras_center.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,16 @@ class ApplicationHelper::Toolbar::VmInfrasCenter < ApplicationHelper::Toolbar::B
:send_checked => true,
:enabled => false,
:onwhen => "1+"),
button(
:vm_policy_sim,
'fa fa-play-circle-o fa-lg',
N_('View Policy Simulation for the selected items'),
N_('Policy Simulation'),
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1+"),
# TODO: Add this button back when the page is fixed
# button(
# :vm_policy_sim,
# 'fa fa-play-circle-o fa-lg',
# N_('View Policy Simulation for the selected items'),
# N_('Policy Simulation'),
# :url_parms => "main_div",
# :send_checked => true,
# :enabled => false,
# :onwhen => "1+"),
button(
:vm_tag,
'pficon pficon-edit fa-lg',
Expand Down
19 changes: 10 additions & 9 deletions app/helpers/application_helper/toolbar/vms_center.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,16 @@ class ApplicationHelper::Toolbar::VmsCenter < ApplicationHelper::Toolbar::Basic
:send_checked => true,
:enabled => false,
:onwhen => "1+"),
button(
:vm_policy_sim,
'fa fa-play-circle-o fa-lg',
N_('View Policy Simulation for the selected items'),
N_('Policy Simulation'),
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1+"),
# TODO: Add this button back when the page is fixed
# button(
# :vm_policy_sim,
# 'fa fa-play-circle-o fa-lg',
# N_('View Policy Simulation for the selected items'),
# N_('Policy Simulation'),
# :url_parms => "main_div",
# :send_checked => true,
# :enabled => false,
# :onwhen => "1+"),
button(
:vm_tag,
'pficon pficon-edit fa-lg',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class ApplicationHelper::Toolbar::XMiqTemplateCenter < ApplicationHelper::Toolba
N_('Manage Policies for this Template'),
N_('Manage Policies'),
:klass => ApplicationHelper::Button::VmTemplatePolicy),
# TODO: Add this button back when the page is fixed
button(
:miq_template_policy_sim,
'fa fa-play-circle-o fa-lg',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@ class ApplicationHelper::Toolbar::XTemplateCloudCenter < ApplicationHelper::Tool
'pficon pficon-edit fa-lg',
N_('Manage Policies for this Image'),
N_('Manage Policies')),
button(
:image_policy_sim,
'fa fa-play-circle-o fa-lg',
N_('View Policy Simulation for this Image'),
N_('Policy Simulation')),
# TODO: Add this button back when the page is fixed
# button(
# :image_policy_sim,
# 'fa fa-play-circle-o fa-lg',
# N_('View Policy Simulation for this Image'),
# N_('Policy Simulation')),
button(
:image_tag,
'pficon pficon-edit fa-lg',
Expand Down
13 changes: 7 additions & 6 deletions app/helpers/application_helper/toolbar/x_vm_center.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,13 @@ class ApplicationHelper::Toolbar::XVmCenter < ApplicationHelper::Toolbar::Basic
N_('Manage Policies for this VM'),
N_('Manage Policies'),
:klass => ApplicationHelper::Button::VmTemplatePolicy),
button(
:vm_policy_sim,
'fa fa-play-circle-o fa-lg',
N_('View Policy Simulation for this VM'),
N_('Policy Simulation'),
:klass => ApplicationHelper::Button::VmTemplatePolicy),
# TODO: Add this button back when the page is fixed
# button(
# :vm_policy_sim,
# 'fa fa-play-circle-o fa-lg',
# N_('View Policy Simulation for this VM'),
# N_('Policy Simulation'),
# :klass => ApplicationHelper::Button::VmTemplatePolicy),
button(
:vm_tag,
'pficon pficon-edit fa-lg',
Expand Down
11 changes: 6 additions & 5 deletions app/helpers/application_helper/toolbar/x_vm_cloud_center.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,12 @@ class ApplicationHelper::Toolbar::XVmCloudCenter < ApplicationHelper::Toolbar::B
'pficon pficon-edit fa-lg',
N_('Manage Policies for this Instance'),
N_('Manage Policies')),
button(
:instance_policy_sim,
'fa fa-play-circle-o fa-lg',
N_('View Policy Simulation for this Instance'),
N_('Policy Simulation')),
# TODO: Add this button back when the page is fixed
# button(
# :instance_policy_sim,
# 'fa fa-play-circle-o fa-lg',
# N_('View Policy Simulation for this Instance'),
# N_('Policy Simulation')),
button(
:instance_tag,
'pficon pficon-edit fa-lg',
Expand Down