forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchargeback_rate_center.rb
37 lines (37 loc) · 1.26 KB
/
chargeback_rate_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
class ApplicationHelper::Toolbar::ChargebackRateCenter < ApplicationHelper::Toolbar::Basic
button_group('chargeback_rate_vmdb', [
select(
:chargeback_rate_vmdb_choice,
nil,
t = N_('Configuration'),
t,
:items => [
button(
:chargeback_rates_edit,
'pficon pficon-edit fa-lg',
t = N_('Edit this Chargeback Rate'),
t,
:url_parms => "main_div",
:send_checked => true,
:klass => ApplicationHelper::Button::ChargebackRateEdit),
button(
:chargeback_rates_copy,
'fa fa-files-o fa-lg',
t = N_('Copy this Chargeback Rate'),
t,
:klass => ApplicationHelper::Button::ChargebackRates,
:url_parms => "main_div",
:send_checked => true),
button(
:chargeback_rates_delete,
'pficon pficon-delete fa-lg',
N_('Remove this Chargeback Rate from the VMDB'),
N_('Remove from the VMDB'),
:url_parms => "main_div",
:send_checked => true,
:confirm => N_("Warning: This Chargeback Rate will be permanently removed!"),
:klass => ApplicationHelper::Button::ChargebackRateRemove),
]
),
])
end