%tr#p_product{:id => p_product.id}
  %td= p_product.code
  %td
    = p_product.name
    ="-"
    = "#{p_product.p_ep.ep}g/m²" if p_product.p_ep
  
  %td= p_product.p_origine.name if p_product.p_origine
  
  %td
    - p_product.p_colors.each do |p_color|
      =p_color.name
  
  %td
    - p_product.p_certifs.each do |p_certif|
      =p_certif.name
      
  %td
    - p_product.p_sizes.each do |p_size|
      =p_size.name
  
  %td
    - p_product.p_qtes.each do |p_qte|
      =p_qte.qte
   


  %td.actions
    = link_to i(:"trash-o"), [:admin, p_product], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cet auteur ? ' } , :remote => true
    = link_to i(:cubes), stock_admin_p_product_path(p_product), :remote => true
    = link_to i(:euro), degressif_admin_p_product_path(p_product), :remote => true
    
    = link_to i(:pencil), edit_admin_p_product_path(p_product), :remote => true
    

