app/helpers/application_helper/toolbar/chargeback_report_center.rb
class ApplicationHelper::Toolbar::ChargebackReportCenter < ApplicationHelper::Toolbar::Basic
button_group('chargeback_reports_download_main', [
select(
:chargeback_reports_download_choice,
'fa fa-download fa-lg',
N_('Download'),
nil,
:klass => ApplicationHelper::Button::ChargebackReportDownloadChoice,
:items => [
button(
:chargeback_reports_download_text,
'fa fa-file-text-o fa-lg',
N_('Download this report in text format'),
N_('Download as Text'),
:url => "/render_txt"),
button(
:chargeback_reports_download_csv,
'fa fa-file-text-o fa-lg',
N_('Download this report in CSV format'),
N_('Download as CSV'),
:url => "/render_csv"),
button(
:chargeback_reports_download_pdf,
'pficon pficon-print fa-lg',
N_('Print or export this report in PDF format'),
N_('Print or export as PDF'),
:popup => true,
:url => "/render_pdf"),
]
),
button(
:chargeback_reports_report_only,
'fa fa-file-text-o fa-lg',
N_('Show full screen report'),
nil,
:klass => ApplicationHelper::Button::ChargebackReportOnly,
:url => "/report_only",
:popup => true,
:confirm => N_("This will show the entire report (all rows) in your browser. Do you want to proceed?")),
])
end