forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathems_clouds_center.rb
139 lines (139 loc) · 4.85 KB
/
ems_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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
class ApplicationHelper::Toolbar::EmsCloudsCenter < ApplicationHelper::Toolbar::Basic
button_group('ems_cloud_vmdb', [
select(
:ems_cloud_vmdb_choice,
'fa fa-cog fa-lg',
t = N_('Configuration'),
t,
:items => [
button(
:ems_cloud_refresh,
'fa fa-refresh fa-lg',
N_('Refresh relationships and power states for all items related to the selected Cloud Providers'),
N_('Refresh Relationships and Power States'),
:url_parms => "main_div",
:send_checked => true,
:confirm => N_("Refresh relationships and power states for all items related to the selected Cloud Providers?"),
:enabled => false,
:onwhen => "1+"),
button(
:ems_cloud_discover,
'fa fa-search fa-lg',
t = N_('Discover Cloud Providers'),
t,
:url => "/discover",
:url_parms => "?discover_type=ems",
:klass => ApplicationHelper::Button::ButtonNewDiscoverCloud),
separator,
button(
:ems_cloud_new,
'pficon pficon-add-circle-o fa-lg',
t = N_('Add a New Cloud Provider'),
t,
:url => "/new",
:klass => ApplicationHelper::Button::ButtonNewDiscover),
button(
:ems_cloud_edit,
'pficon pficon-edit fa-lg',
N_('Select a single Cloud Provider to edit'),
N_('Edit Selected Cloud Provider'),
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1"),
button(
:ems_cloud_resume,
'pficon pficon-trend-up fa-lg',
t = N_('Resume selected Cloud Providers'),
t,
:confirm => N_("Resume these Cloud Providers?"),
:enabled => false,
:url_parms => "main_div",
:send_checked => true,
:onwhen => "1+"),
button(
:ems_cloud_pause,
'pficon pficon-trend-down fa-lg',
t = N_('Pause selected Cloud Providers'),
t,
:confirm => N_("Warning: While these providers are paused no data will be collected from them. " \
"This may cause gaps in inventory, metrics and events!"),
:enabled => false,
:url_parms => "main_div",
:send_checked => true,
:onwhen => "1+"),
button(
:ems_cloud_delete,
'pficon pficon-delete fa-lg',
N_('Remove selected Cloud Providers from Inventory'),
N_('Remove Cloud Providers from Inventory'),
:url_parms => "main_div",
:send_checked => true,
:confirm => N_("Warning: The selected Cloud Providers and ALL related components will be permanently removed!"),
:enabled => false,
:onwhen => "1+"),
]
),
])
button_group('ems_cloud_policy', [
select(
:ems_cloud_policy_choice,
'fa fa-shield fa-lg',
t = N_('Policy'),
t,
:enabled => false,
:onwhen => "1+",
:items => [
button(
:ems_cloud_protect,
'pficon pficon-edit fa-lg',
N_('Manage Policies for the selected Cloud Providers'),
N_('Manage Policies'),
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1+"),
button(
:ems_cloud_tag,
'pficon pficon-edit fa-lg',
N_('Edit Tags for the selected Cloud Providers'),
N_('Edit Tags'),
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1+"),
button(
:ems_cloud_check_compliance,
'fa fa-search fa-lg',
N_('Check Compliance of the last known configuration for these Cloud Managers'),
N_('Check Compliance of Last Known Configuration'),
:url_parms => "main_div",
:send_checked => true,
:confirm => N_("Initiate Check Compliance of the last known configuration for the selected items?"),
:enabled => "false",
:onwhen => "1+")
]
),
])
button_group('ems_cloud_authentication', [
select(
:ems_cloud_authentication_choice,
'fa fa-lock fa-lg',
t = N_('Authentication'),
t,
:enabled => false,
:onwhen => "1+",
:items => [
button(
:ems_cloud_recheck_auth_status,
'fa fa-search fa-lg',
N_('Re-check Authentication Status for the selected Cloud Providers'),
N_('Re-check Authentication Status'),
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1+"),
]
),
])
end