- model_class = ProductCategory
.page-header= title :index, model_class
.well
  - if @product_categories.any?
    ul#product-category-list data-update-url=sort_suppliers_product_categories_path
      - for product_category in @product_categories
        = content_tag_for :li, product_category do
          span.handle.fa.fa-arrows
          span.name= link_to product_category.name, [:suppliers, product_category]
          span= product_category.visible_on
          .pull-right.actions
            = link_to [:edit, :suppliers, product_category], class: 'table-edit' do
              span data-title="helpers.links.edit"
            = link_to [:suppliers, product_category], method: :delete, data: {confirm: are_you_sure? }, class: 'table-destroy' do
              span data-title="helpers.links.destroy"
  - else
    = no_content_given model_class
= supplier_form_actions :new, for: :product_categories

.import.panel.hide
  = form_tag import_suppliers_product_categories_path, multipart: true do
    = file_field_tag :file
    = submit_tag 'import'
