Move temp_controller_list deface to shipping_categories index view

This commit is contained in:
luisramos0
2019-07-16 14:53:02 +01:00
parent 4f60273198
commit e36b4ed01a
3 changed files with 5 additions and 9 deletions

View File

@@ -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/

View File

@@ -1,4 +0,0 @@
/ insert_after "[data-hook='categories_header'] th:first-child"
%th
= t(:temperature_controlled)

View File

@@ -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