forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmiq_schedule_center.rb
31 lines (31 loc) · 952 Bytes
/
miq_schedule_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
class ApplicationHelper::Toolbar::MiqScheduleCenter < ApplicationHelper::Toolbar::Basic
button_group('miq_schedule_vmdb', [
select(
:miq_schedule_vmdb_choice,
'fa fa-cog fa-lg',
t = N_('Configuration'),
t,
:items => [
button(
:schedule_edit,
'pficon pficon-edit fa-lg',
t = N_('Edit this Schedule'),
t),
button(
:schedule_delete,
'pficon pficon-delete fa-lg',
t = N_('Delete this Schedule from the Database'),
t,
:url_parms => "&refresh=y",
:confirm => N_("Warning: This Schedule and ALL of its components will be permanently removed!")),
separator,
button(
:schedule_run_now,
'fa fa-play-circle-o fa-lg',
t = N_('Queue up this Schedule to run now'),
t,
:klass => ApplicationHelper::Button::ScheduleRunNow),
]
),
])
end