forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlifecycle_mixin.rb
31 lines (31 loc) · 1018 Bytes
/
lifecycle_mixin.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
module ApplicationHelper::Toolbar::Service::LifecycleMixin
def self.included(included_class)
included_class.button_group('service_lifecycle', [
included_class.select(
:service_lifecycle_choice,
'fa fa-recycle fa-lg',
t = N_('Lifecycle'),
t,
:enabled => false,
:items => [
included_class.button(
:service_retire,
'fa fa-clock-o fa-lg',
N_('Set Retirement Dates for the selected items'),
N_('Set Retirement Dates'),
:enabled => false,
:url_parms => "main_div",
:onwhen => "1+"),
included_class.button(
:service_retire_now,
'fa fa-clock-o fa-lg',
N_('Retire the selected items'),
N_('Retire selected items'),
:url_parms => "main_div",
:confirm => N_("Retire the selected items?"),
:enabled => false,
:onwhen => "1+"),
]),
])
end
end