forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsecurity_groups_center.rb
62 lines (62 loc) · 1.88 KB
/
security_groups_center.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
class ApplicationHelper::Toolbar::SecurityGroupsCenter < ApplicationHelper::Toolbar::Basic
button_group(
'security_group_vmdb',
[
select(
:security_group_vmdb_choice,
'fa fa-cog fa-lg',
t = N_('Configuration'),
t,
:items => [
button(
:security_group_new,
'pficon pficon-add-circle-o fa-lg',
t = N_('Add a new Security Group'),
t,
:klass => ApplicationHelper::Button::ButtonNewDiscover),
separator,
# TODO: Uncomment until cross controllers show_list issue fully in place
# https://github.com/ManageIQ/manageiq/pull/12551
# button(
# :security_group_edit,
# 'pficon pficon-edit fa-lg',
# t = N_('Edit selected Security Group'),
# t,
# :url_parms => 'main_div',
# :enabled => false,
# :onwhen => '1'),
# button(
# :security_group_delete,
# 'pficon pficon-delete fa-lg',
# t = N_('Delete selected Security Groups'),
# t,
# :url_parms => 'main_div',
# :confirm => N_('Warning: The selected Security Groups and ALL of their components will be removed!'),
# :enabled => false,
# :onwhen => '1+')
]
)
]
)
button_group('security_group_policy', [
select(
:security_group_policy_choice,
'fa fa-shield fa-lg',
t = N_('Policy'),
t,
:enabled => false,
:onwhen => "1+",
:items => [
button(
:security_group_tag,
'pficon pficon-edit fa-lg',
N_('Edit Tags for the selected Security Groups'),
N_('Edit Tags'),
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1+"),
]
),
])
end