forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathems_configuration_center.rb
54 lines (54 loc) · 2.05 KB
/
ems_configuration_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
class ApplicationHelper::Toolbar::EmsConfigurationCenter < ApplicationHelper::Toolbar::Basic
button_group('ems_configuration_vmdb', [
select(
:ems_configuration_vmdb_choice,
nil,
t = N_('Configuration'),
t,
:enabled => true,
:items => [
button(
:ems_configuration_refresh_provider,
'fa fa-refresh fa-lg',
N_('Refresh relationships for all items related to this Provider'),
N_('Refresh Relationships and Power states'),
:confirm => N_("Refresh relationships for all items related to this Provider?"),
:klass => ApplicationHelper::Button::EmsRefresh),
separator,
button(
:ems_configuration_edit_provider,
'pficon pficon-edit fa-lg',
t = N_('Edit this Provider'),
t),
button(
:ems_configuration_delete_provider,
'pficon pficon-delete fa-lg',
t = N_('Remove this Provider from Inventory'),
t,
:data => {'function' => 'sendDataWithRx',
'function-data' => {:controller => 'provider_dialogs',
:modal_title => N_('Delete Configuration Management Provider'),
:modal_text => N_('Are you sure you want to delete the following Configuration Management Provider?'),
:api_url => 'providers',
:async_delete => true,
:redirect_url => '/ems_configuration/show_list',
:component_name => 'RemoveGenericItemModal'}})
]
),
])
button_group('ems_configuration_policy', [
select(
:ems_configuration_policy_choice,
nil,
t = N_('Policy'),
t,
:items => [
button(
:ems_configuration_tag,
'pficon pficon-edit fa-lg',
N_('Edit Tags for this Configuration Manager'),
N_('Edit Tags')),
]
),
])
end