forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dialogs_center.rb
46 lines (46 loc) · 1.46 KB
/
dialogs_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
class ApplicationHelper::Toolbar::DialogsCenter < ApplicationHelper::Toolbar::Basic
button_group('dialog_vmdb', [
select(
:dialog_vmdb_choice,
'fa fa-cog fa-lg',
t = N_('Configuration'),
t,
:items => [
button(
:dialog_new,
'pficon pficon-add-circle-o fa-lg',
t = N_('Add a new Dialog'),
t,
:klass => ApplicationHelper::Button::DialogNew),
button(
:dialog_edit,
'pficon pficon-edit fa-lg',
t = N_('Edit the selected Dialog'),
t,
:url_parms => "main_div",
:enabled => false,
:onwhen => "1",
:klass => ApplicationHelper::Button::DialogAction),
button(
:dialog_copy,
'fa fa-files-o fa-lg',
t = N_('Copy the selected Dialog to a new Dialog'),
t,
:url_parms => "main_div",
:enabled => false,
:onwhen => "1",
:klass => ApplicationHelper::Button::DialogAction),
button(
:dialog_delete,
'pficon pficon-delete fa-lg',
t = N_('Remove selected Dialogs'),
t,
:url_parms => "main_div",
:confirm => N_("Warning: The selected Dialog will be permanently removed from the Virtual Management Database!"),
:enabled => false,
:onwhen => "1+",
:klass => ApplicationHelper::Button::DialogAction),
]
),
])
end