= render :partial => 'spree/admin/shared/configuration_menu'

- content_for :page_title do
  = Spree.t(:shipping_categories)

- content_for :page_actions do
  %li
    = button_link_to Spree.t(:new_shipping_category), new_object_url, :icon => 'icon-plus'

%table.index
  %colgroup
    %col{:style => "width: 85%"}/
    %col{:style => "width: 15%"}/
  %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
