mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
33 lines
969 B
Plaintext
33 lines
969 B
Plaintext
= form_for @search, :url => spree.payments_admin_reports_path do |f|
|
|
= render 'date_range_form', f: f
|
|
|
|
.row
|
|
.four.columns.alpha
|
|
= label_tag nil, "Distributor: "
|
|
= f.collection_select(:distributor_id_eq, @distributors, :id, :name, {:include_blank => 'All'}, {:class => "select2 fullwidth"})
|
|
= label_tag nil, "Report Type: "
|
|
%br
|
|
= select_tag(:report_type, options_for_select([['Payments By Type',:payments_by_payment_type],['Itemised Payment Totals',:itemised_payment_totals],['Payment Totals',:payment_totals]], @report_type))
|
|
%br
|
|
%br
|
|
= check_box_tag :csv
|
|
= label_tag :csv, "Download as csv"
|
|
%br
|
|
%br
|
|
= button t(:search)
|
|
%br
|
|
%br
|
|
%table#listing_orders.index
|
|
%thead
|
|
%tr{'data-hook' => "orders_header"}
|
|
- @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)
|