Files
openfoodnetwork/app/views/admin/reports/_rendering_options.html.haml
Sebastian Castro 09247b21cd Reports Refactor 1
Use code closer to the new packing report controller
Handle nil @report_subtypes
2022-05-12 16:54:12 +02:00

21 lines
771 B
Plaintext

- if @report_subtypes.present? && @report_subtypes.count > 1
.row
.alpha.two.columns= label_tag nil, t(:report_type)
.omega.fourteen.columns
= select_tag(:report_subtype, options_for_select(@report_subtypes, @report_subtype))
.row.rendering-options
.alpha.two.columns
= label_tag :report_format, t(".generate_report")
.omega.fourteen.columns
= select_tag :report_format, options_for_select({ |
t('.on_screen') => '', |
t('.pdf') => 'pdf', |
t('.csv_spreadsheet') => 'csv', |
t('.excel_spreadsheet') => 'xlsx', |
t('.openoffice_spreadsheet') => 'ods'})
-#.inline-checkbox
-# = check_box_tag "options[exclude_summaries]", true, params[:options].andand[:exclude_summaries]
-# = label_tag t(".hide_summary_rows")