mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Move temp_controller_list deface to shipping_categories index view
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
/ insert_after "[data-hook='category_row'] td:first-child"
|
||||
|
||||
%td.align-center
|
||||
= shipping_category.temperature_controlled ? t(:yes) : t(:no)
|
||||
%br/
|
||||
@@ -1,4 +0,0 @@
|
||||
/ insert_after "[data-hook='categories_header'] th:first-child"
|
||||
|
||||
%th
|
||||
= t(:temperature_controlled)
|
||||
@@ -14,11 +14,16 @@
|
||||
%thead
|
||||
%tr{"data-hook" => "categories_header"}
|
||||
%th= Spree.t(:name)
|
||||
%th
|
||||
= t(:temperature_controlled)
|
||||
%th.actions
|
||||
%tbody
|
||||
- @shipping_categories.each do |shipping_category|
|
||||
%tr{:class => "#{cycle('odd', 'even')}", "data-hook" => "category_row", :id => "#{spree_dom_id shipping_category}"}
|
||||
%td{:style => "width:350px;"}= shipping_category.name
|
||||
%td.align-center
|
||||
= shipping_category.temperature_controlled ? t(:yes) : t(:no)
|
||||
%br/
|
||||
%td.actions
|
||||
= link_to_edit shipping_category, :no_text => true
|
||||
= link_to_delete shipping_category, :no_text => true
|
||||
|
||||
Reference in New Issue
Block a user