Files
openfoodnetwork/app/views/admin/reports/_table.html.haml
Sebastian Castro 213c0dd060 Packing Report: add price and reorder columns
Adds price column
last_name column first because it's used for ordering
2022-05-12 16:54:12 +02:00

19 lines
421 B
Plaintext

- report ||= @report
%table.report__table
%thead
%tr
- report.table_headers.each do |heading|
%th
= t("admin.reports.table.headings.#{heading}")
%tbody
- report.table_rows.each do |row|
- if row
%tr
- row.each do |cell|
%td
= cell
- if report.table_rows.empty?
%tr
%td{colspan: report.table_headers.count}= t(:none)