forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpxe_servers_center.rb
48 lines (48 loc) · 1.62 KB
/
pxe_servers_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::PxeServersCenter < ApplicationHelper::Toolbar::Basic
button_group('pxe_server_vmdb', [
select(
:pxe_server_vmdb_choice,
'fa fa-cog fa-lg',
t = N_('Configuration'),
t,
:items => [
button(
:pxe_server_new,
'pficon pficon-add-circle-o fa-lg',
t = N_('Add a New PXE Server'),
t,
:klass => ApplicationHelper::Button::ButtonNewDiscover),
button(
:pxe_server_edit,
'pficon pficon-edit fa-lg',
N_('Select a single PXE Servers to edit'),
N_('Edit Selected PXE Servers'),
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1"),
button(
:pxe_server_delete,
'pficon pficon-delete fa-lg',
N_('Remove selected PXE Servers'),
N_('Remove PXE Servers'),
:url_parms => "main_div",
:send_checked => true,
:confirm => N_("Warning: The selected PXE Servers and ALL of their components will be permanently removed!"),
:enabled => false,
:onwhen => "1+"),
separator,
button(
:pxe_server_refresh,
'fa fa-refresh fa-lg',
N_('Refresh Relationships for selected PXE Servers'),
N_('Refresh Relationships'),
:url_parms => "main_div",
:send_checked => true,
:confirm => N_("Refresh Relationships for selected PXE Servers?"),
:enabled => false,
:onwhen => "1+"),
]
),
])
end