forked from ManageIQ/manageiq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathems_block_storages_center.rb
59 lines (59 loc) · 2.66 KB
/
ems_block_storages_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::EmsBlockStoragesCenter < ApplicationHelper::Toolbar::Basic
button_group('ems_storage_vmdb', [
select(
:ems_storage_vmdb_choice,
'fa fa-cog fa-lg',
t = N_('Configuration'),
t,
:items => [
button(
:ems_storage_refresh,
'fa fa-refresh fa-lg',
N_('Refresh relationships and power states for all items related to the selected Block Storage Managers'),
N_('Refresh Relationships and Power States'),
:url_parms => "main_div",
:confirm => N_("Refresh relationships and power states for all items related to the selected Block Storage Managers?"),
:enabled => false,
:onwhen => "1+"),
separator,
button(
:ems_storage_delete,
'pficon pficon-delete fa-lg',
N_('Remove selected Block Storage Managers'),
N_('Remove Block Storage Managers'),
:url_parms => "main_div",
:confirm => N_("Warning: The selected Block Storage Managers and ALL of their components will be permanently removed!"),
:enabled => false,
:onwhen => "1+"),
]
),
])
button_group('ems_storage_policy', [
select(
:ems_storage_policy_choice,
'fa fa-shield fa-lg',
t = N_('Policy'),
t,
:enabled => false,
:onwhen => "1+",
:items => [
button(
:ems_storage_protect,
'pficon pficon-edit fa-lg',
N_('Manage Policies for the selected Block Storage Managers'),
N_('Manage Policies'),
:url_parms => "main_div",
:enabled => false,
:onwhen => "1+"),
button(
:ems_storage_tag,
'pficon pficon-edit fa-lg',
N_('Edit Tags for the selected Block Storage Managers'),
N_('Edit Tags'),
:url_parms => "main_div",
:enabled => false,
:onwhen => "1+"),
]
),
])
end