forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpolicy_mixin.rb
22 lines (22 loc) · 1.45 KB
/
policy_mixin.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module ApplicationHelper::Toolbar::ConfigurationScripts::PolicyMixin
def self.included(included_class)
included_class.button_group('provider_foreman_policy',
[included_class.select(:provider_foreman_policy_choice,
'fa fa-shield fa-lg',
t = N_('Policy'),
t,
:items => [
included_class.button(
:configuration_script_tag,
'pficon pficon-edit fa-lg',
N_('Edit Tags for this Job Template'),
N_('Edit Tags'),
:url => "tagging",
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1+"),
]),
])
end
end