mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-05 02:41:33 +00:00
33 lines
999 B
Plaintext
33 lines
999 B
Plaintext
= form_for @report.search, :url => spree.bulk_coop_admin_reports_path do |f|
|
|
= render 'date_range_form', f: f
|
|
|
|
.row
|
|
.four.columns.alpha
|
|
= label_tag nil, t(:report_distributor)
|
|
= f.collection_select(:distributor_id_eq, @distributors, :id, :name, {:include_blank => t(:all)}, {:class => "select2 fullwidth"})
|
|
= label_tag nil, t(:report_type)
|
|
%br
|
|
= select_tag(:report_type, options_for_select([:bulk_coop_supplier_report, :bulk_coop_allocation, :bulk_coop_packing_sheets, :bulk_coop_customer_payments].map{ |e| [t(".#{e}"), e] }, @report_type))
|
|
%br
|
|
%br
|
|
= check_box_tag :csv
|
|
= label_tag :csv, t(:report_customers_csv)
|
|
%br
|
|
%br
|
|
= button t(:search)
|
|
%br
|
|
%br
|
|
%table#listing_orders.index
|
|
%thead
|
|
%tr{'data-hook' => "orders_header"}
|
|
- @report.header.each do |heading|
|
|
%th=heading
|
|
%tbody
|
|
- @table.each do |row|
|
|
%tr
|
|
- row.each do |column|
|
|
%td= column
|
|
- if @table.empty?
|
|
%tr
|
|
%td{:colspan => "2"}= t(:none)
|