forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ems_physical_infras_center.rb
146 lines (146 loc) · 5.41 KB
/
ems_physical_infras_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
140
141
142
143
144
145
146
class ApplicationHelper::Toolbar::EmsPhysicalInfrasCenter < ApplicationHelper::Toolbar::Basic
button_group('ems_physical_infra_vmdb', [
select(
:ems_physical_infra_vmdb_choice,
'fa fa-cog fa-lg',
t = N_('Configuration'),
t,
:items => [
button(
:ems_physical_infra_refresh,
'fa fa-refresh fa-lg',
N_('Refresh relationships and power states for all items related to the selected Physical Infrastructure 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 Physical Infrastructure Providers?"),
:enabled => false,
:onwhen => "1+"),
button(
:ems_physical_infra_discover,
'fa fa-search fa-lg',
t = N_('Discover Physical Infrastructure Providers'),
t,
:url => "/discover",
:url_parms => "?discover_type=ems"),
separator,
button(
:ems_physical_infra_new,
'pficon pficon-add-circle-o fa-lg',
t = N_('Add a New Physical Infrastructure Provider'),
t,
:url => "/new"),
button(
:ems_physical_infra_edit,
'pficon pficon-edit fa-lg',
N_('Select a single Physical Infrastructure Provider to edit'),
N_('Edit Selected Physical Infrastructure Providers'),
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1"),
button(
:ems_physical_infra_resume,
'pficon pficon-trend-up fa-lg',
t = N_('Resume selected Infrastructure Providers'),
t,
:confirm => N_("Resume these Infrastructure Providers?"),
:enabled => false,
:url_parms => "main_div",
:send_checked => true,
:onwhen => "1+"),
button(
:ems_physical_infra_pause,
'pficon pficon-trend-down fa-lg',
t = N_('Pause selected Infrastructure 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_physical_infra_delete,
'pficon pficon-delete fa-lg',
N_('Remove selected Physical Infrastructure Providers from Inventory'),
N_('Remove Physical Infrastructure Providers from Inventory'),
:url_parms => "main_div",
:send_checked => true,
:confirm => N_("Warning: The selected Physical Infrastructure Providers and ALL of their components will be permanently removed!"),
:enabled => false,
:onwhen => "1+"),
]
),
])
button_group('ems_physical_infra_policy', [
select(
:ems_physical_infra_policy_choice,
'fa fa-shield fa-lg',
t = N_('Policy'),
t,
:enabled => false,
:onwhen => "1+",
:items => [
button(
:ems_physical_infra_protect,
'pficon pficon-edit fa-lg',
N_('Manage Policies for the selected Physical Infrastructure Providers'),
N_('Manage Policies'),
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1+"),
button(
:ems_physical_infra_tag,
'pficon pficon-edit fa-lg',
N_('Edit Tags for the selected Physical Infrastructure Providers'),
N_('Edit Tags'),
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1+"),
button(
:ems_physical_infra_check_compliance,
'fa fa-search fa-lg',
N_('Check Compliance of the last known configuration for these Physical Infra 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_physical_infra_authentication', [
select(
:ems_physical_infra_authentication_choice,
'fa fa-lock fa-lg',
t = N_('Authentication'),
t,
:enabled => false,
:onwhen => "1+",
:items => [
button(
:ems_infra_change_password,
'pficon pficon-edit fa-lg',
N_('Select a single Infrastructure Provider to Change password'),
N_('Change Password'),
:send_checked => true,
:enabled => false,
:onwhen => "1"
),
button(
:ems_physical_infra_recheck_auth_status,
'fa fa-search fa-lg',
N_('Re-check Authentication Status for the selected Physical Infrastructure Providers'),
N_('Re-check Authentication Status'),
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1+"),
]
),
])
end