forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmiq_alert_center.rb
35 lines (35 loc) · 1.03 KB
/
miq_alert_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
class ApplicationHelper::Toolbar::MiqAlertCenter < ApplicationHelper::Toolbar::Basic
button_group('miq_alert_vmdb', [
select(
:miq_alert_vmdb_choice,
'fa fa-cog fa-lg',
t = N_('Configuration'),
t,
:items => [
button(
:alert_edit,
'pficon pficon-edit fa-lg',
t = N_('Edit this Alert'),
t,
:url_parms => "main_div",
:send_checked => true),
button(
:alert_copy,
'fa fa-files-o fa-lg',
t = N_('Copy this Alert'),
t,
:confirm => N_("Are you sure you want to copy this Alert?"),
:url_parms => "?copy=true"),
button(
:alert_delete,
'pficon pficon-delete fa-lg',
t = N_('Delete this Alert'),
t,
:url_parms => "main_div",
:send_checked => true,
:confirm => N_("Are you sure you want to delete this Alert?"),
:klass => ApplicationHelper::Button::MiqAlertDelete),
]
),
])
end