forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathauth_key_pair_cloud_center.rb
47 lines (47 loc) · 1.44 KB
/
auth_key_pair_cloud_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
class ApplicationHelper::Toolbar::AuthKeyPairCloudCenter < 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_delete,
'pficon pficon-delete fa-lg',
t = N_('Remove this Key Pair from Inventory'),
t,
:url_parms => "&refresh=y",
:confirm => N_("Warning: The selected Key Pair and ALL of its components will be permanently removed!")),
button(
:auth_key_pair_ownership,
'pficon pficon-user fa-lg',
N_('Set Ownership for the selected items'),
N_('Set Ownership'),
:klass => ApplicationHelper::Button::SetOwnership),
button(
:auth_key_pair_cloud_download,
'pficon pficon-save fa-lg',
t = N_('Download private key'),
t,
:url => "/download_private_key",
:klass => ApplicationHelper::Button::AuthKeyPairCloudDownload),
]
),
])
button_group('auth_key_pair_cloud_policy', [
select(
:auth_key_pair_cloud_choice,
'fa fa-shield fa-lg',
t = N_('Policy'),
t,
:items => [
button(
:auth_key_pair_cloud_tag,
'pficon pficon-edit fa-lg',
N_('Edit tags for this Key Pair'),
N_('Edit Tags')),
]
),
])
end