forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathauth_key_pair_clouds_center.rb
59 lines (59 loc) · 1.8 KB
/
auth_key_pair_clouds_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
class ApplicationHelper::Toolbar::AuthKeyPairCloudsCenter < ApplicationHelper::Toolbar::Basic
button_group('auth_key_pair_cloud_vmdb', [
select(
:auth_key_pair_cloud_vmdb_choice,
'fa fa-cog fa-lg',
t = N_('Configuration'),
t,
:items => [
button(
:auth_key_pair_cloud_new,
'pficon pficon-add-circle-o fa-lg',
t = N_('Add a new Key Pair'),
t,
:klass => ApplicationHelper::Button::AuthKeyPairCloudCreate),
separator,
button(
:auth_key_pair_ownership,
'pficon pficon-user fa-lg',
N_('Set Ownership for the selected items'),
N_('Set Ownership'),
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1+"),
button(
:auth_key_pair_cloud_delete,
'pficon pficon-delete fa-lg',
t = N_('Remove selected Key Pairs from Inventory'),
t,
:url_parms => "main_div",
:send_checked => true,
:confirm => N_("Warning: The selected Key Pairs and ALL of their components will be permanently removed!"),
:enabled => false,
:onwhen => "1+"),
]
),
])
button_group('auth_key_pair_cloud_policy', [
select(
:auth_key_pair_cloud_policy_choice,
'fa fa-shield fa-lg',
t = N_('Policy'),
t,
:enabled => false,
:onwhen => "1+",
:items => [
button(
:auth_key_pair_cloud_tag,
'pficon pficon-edit fa-lg',
N_('Edit tags for the selected items'),
N_('Edit Tags'),
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1+"),
]
),
])
end