forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmiq_schedules_center.rb
60 lines (60 loc) · 1.8 KB
/
miq_schedules_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
49
50
51
52
53
54
55
56
57
58
59
60
class ApplicationHelper::Toolbar::MiqSchedulesCenter < 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_add,
'pficon pficon-add-circle-o fa-lg',
t = N_('Add a new Schedule'),
t),
button(
:schedule_edit,
'pficon pficon-edit fa-lg',
t = N_('Edit the selected Schedule'),
t,
:url_parms => "main_div",
:enabled => false,
:onwhen => "1"),
button(
:schedule_delete,
'pficon pficon-delete fa-lg',
t = N_('Delete the selected Schedules'),
t,
:url_parms => "main_div",
:confirm => N_("Warning: The selected Schedules and ALL of their components will be permanently removed!"),
:enabled => false,
:onwhen => "1+"),
button(
:schedule_enable,
'fa fa-check fa-lg',
t = N_('Enable the selected Schedules'),
t,
:url_parms => "main_div",
:enabled => false,
:onwhen => "1+"),
button(
:schedule_disable,
'fa fa-ban fa-lg',
t = N_('Disable the selected Schedules'),
t,
:url_parms => "main_div",
:enabled => false,
:onwhen => "1+"),
separator,
button(
:schedule_run_now,
'fa fa-play-circle-o fa-lg',
t = N_('Queue up selected Schedules to run now'),
t,
:url_parms => "main_div",
:enabled => false,
:onwhen => "1+",
:klass => ApplicationHelper::Button::ScheduleRunNow),
]
),
])
end