forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration_manager_provider_center.rb
49 lines (49 loc) · 1.52 KB
/
configuration_manager_provider_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
class ApplicationHelper::Toolbar::ConfigurationManagerProviderCenter < ApplicationHelper::Toolbar::Basic
button_group('provider_vmdb', [
select(
:provider_vmdb_choice,
'fa fa-cog fa-lg',
t = N_('Configuration'),
t,
:enabled => true,
:items => [
button(
:provider_foreman_refresh_provider,
'fa fa-refresh fa-lg',
N_('Refresh relationships for all items related to this Provider'),
N_('Refresh Relationships and Power states'),
:url => "refresh",
:confirm => N_("Refresh relationships for all items related to this Provider?")),
separator,
button(
:provider_foreman_edit_provider,
'pficon pficon-edit fa-lg',
t = N_('Edit this Provider'),
t,
:url => "edit"),
button(
:provider_foreman_delete_provider,
'pficon pficon-delete fa-lg',
t = N_('Remove this Provider'),
t,
:url => "delete",
:confirm => N_("Warning: The selected Provider and ALL of their components will be permanently removed!")),
]
),
])
button_group('configuration_manager_policy', [
select(
:configuration_manager_policy_choice,
'fa fa-shield fa-lg',
t = N_('Policy'),
t,
:items => [
button(
:configuration_manager_provider_tag,
'pficon pficon-edit fa-lg',
N_('Edit Tags for this Ansible Tower Providers'),
N_('Edit Tags'))
]
)
])
end