forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathansible_credentials_center.rb
48 lines (48 loc) · 1.76 KB
/
ansible_credentials_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
class ApplicationHelper::Toolbar::AnsibleCredentialsCenter < ApplicationHelper::Toolbar::Basic
button_group('embedded_ansible_credentials', [
select(
:embedded_ansible_credentials_configuration,
'fa fa-cog fa-lg',
t = N_('Configuration'),
t,
:items => [
button(
:embedded_automation_manager_credentials_refresh,
'fa fa-refresh fa-lg',
N_('Refresh Embedded Ansible Provider'),
N_('Refresh Embedded Ansible Provider'),
:klass => ApplicationHelper::Button::EmbeddedAnsible,
:url => "credential_refresh",
:url_parms => "main_div",
:confirm => N_("Refresh relationships for all items from Embedded Ansible Provider?")),
separator,
button(
:embedded_automation_manager_credentials_add,
'pficon pficon-edit fa-lg',
t = N_('Add New Credential'),
t,
:klass => ApplicationHelper::Button::EmbeddedAnsible,
:url_parms => "new_div"),
button(
:embedded_automation_manager_credentials_edit,
'pficon pficon-edit fa-lg',
t = N_('Edit this Credential'),
t,
:klass => ApplicationHelper::Button::EmbeddedAnsible,
:enabled => false,
:onwhen => "1",
:url_parms => "edit_div"),
button(
:embedded_automation_manager_credentials_delete,
'pficon pficon-delete fa-lg',
t = N_('Remove selected Credentials'),
t,
:klass => ApplicationHelper::Button::EmbeddedAnsible,
:url_parms => "delete_div",
:enabled => false,
:onwhen => "1+",
:confirm => N_("Warning: The selected Credentials will be permanently removed!")),
]
)
])
end