mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Add header to the table
This commit is contained in:
@@ -12,4 +12,12 @@
|
||||
|
||||
#products_table
|
||||
%table
|
||||
= render(ProductComponent.with_collection(@products, columns: @columns_selected))
|
||||
%thead
|
||||
%tr
|
||||
%th
|
||||
Name
|
||||
- @columns_selected.each do |column|
|
||||
%th
|
||||
= @columns.find{ |c| c[:value] == column }[:label]
|
||||
%tbody
|
||||
= render(ProductComponent.with_collection(@products, columns: @columns_selected))
|
||||
|
||||
Reference in New Issue
Block a user