mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Factorize column sorter partial
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
|
||||
- ['number', 'state', 'payment_state', 'shipment_state', 'email', 'total'].each do |column_name|
|
||||
%th
|
||||
= render partial: 'sortable_header', locals: {column_name: column_name}
|
||||
= render partial: 'spree/admin/shared/sortable_header', locals: {column_name: column_name}
|
||||
|
||||
%th.actions
|
||||
%tbody
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
%th.producer{ 'ng-show' => 'columns.producer.visible' }=t('admin.producer')
|
||||
%th.sku{ 'ng-show' => 'columns.sku.visible' }=t('admin.sku')
|
||||
%th.name{ 'ng-show' => 'columns.name.visible' }
|
||||
= render partial: 'spree/admin/orders/sortable_header', locals: {column_name: 'name'}
|
||||
= render partial: 'spree/admin/shared/sortable_header', locals: {column_name: 'name'}
|
||||
%th.unit{ 'ng-show' => 'columns.unit.visible' }=t('.unit')
|
||||
%th.display_as{ 'ng-show' => 'columns.unit.visible' }=t('.display_as')
|
||||
%th.price{ 'ng-show' => 'columns.price.visible' }=t('admin.price')
|
||||
|
||||
Reference in New Issue
Block a user