

%br
%br


.qi_pannel.padding.new_table_container
  .table-area
    .table-area-inner

      %table.table.table-striped.table-hover.table-bordered
        %thead
          %tr
            %th
              Photo
            %th
              Code
            %th
              Nom
            %th
              Catégorie
            %th
              Format
            %th
              PCB
            -if false
              %th
                Prix


        %tbody
          -p_products.all.each do |p|
            -PProductRef.where(p_product_id: p.id).all.each do |ppf|
              %tr
                %td
                  =link_to public_p_product_path(p) do
                    .img_cover.img.with_ratio{:style => "background-image:url('#{(p.default_image.image_file.file.large.medium.small.url if p.default_image and p.default_image.image_file)}');"+("background-color:white;background-position:center center;background-size:contain;" if p.conserve_proportion).to_s, :data => {:ratio => 1}}
                %td
                  =link_to public_p_product_path(p) do
                    =p.code
                %td
                  =link_to public_p_product_path(p) do
                    =p.name
                %td
                  =ppf.cc_cat_name
                %td
                  =ppf.uv
                %td
                  =ppf.capacite || ppf.weight
                -if false
                  %td
                    =number_to_currency(ppf.ct_price_ht)




:scss

  .table-area{
    overflow:auto;
  }

