From e36b4ed01aa2dec07dff4d7d2ca1d65188073a06 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Tue, 16 Jul 2019 14:53:02 +0100 Subject: [PATCH] Move temp_controller_list deface to shipping_categories index view --- .../index/add_temp_controlled_td.html.haml.deface | 5 ----- .../index/add_temp_controlled_th.html.haml.deface | 4 ---- app/views/spree/admin/shipping_categories/index.html.haml | 5 +++++ 3 files changed, 5 insertions(+), 9 deletions(-) delete mode 100644 app/overrides/spree/admin/shipping_categories/index/add_temp_controlled_td.html.haml.deface delete mode 100644 app/overrides/spree/admin/shipping_categories/index/add_temp_controlled_th.html.haml.deface diff --git a/app/overrides/spree/admin/shipping_categories/index/add_temp_controlled_td.html.haml.deface b/app/overrides/spree/admin/shipping_categories/index/add_temp_controlled_td.html.haml.deface deleted file mode 100644 index 825a764914..0000000000 --- a/app/overrides/spree/admin/shipping_categories/index/add_temp_controlled_td.html.haml.deface +++ /dev/null @@ -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/ diff --git a/app/overrides/spree/admin/shipping_categories/index/add_temp_controlled_th.html.haml.deface b/app/overrides/spree/admin/shipping_categories/index/add_temp_controlled_th.html.haml.deface deleted file mode 100644 index 0b41db13d5..0000000000 --- a/app/overrides/spree/admin/shipping_categories/index/add_temp_controlled_th.html.haml.deface +++ /dev/null @@ -1,4 +0,0 @@ -/ insert_after "[data-hook='categories_header'] th:first-child" - -%th - = t(:temperature_controlled) diff --git a/app/views/spree/admin/shipping_categories/index.html.haml b/app/views/spree/admin/shipping_categories/index.html.haml index d91e0a22ab..e4b9356e32 100644 --- a/app/views/spree/admin/shipping_categories/index.html.haml +++ b/app/views/spree/admin/shipping_categories/index.html.haml @@ -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