%tr#p_product_stock{:id => p_product_stock.id}
  
  %td{:style => "width:100px;"}
    = p_product_stock.p_product.code
  %td{:style => "width:300px;"}
    = p_product_stock.p_product.name
  
  %td{:style => "width:100px;"}= p_product_stock.code
  
  %td{:style => "width:220px;"}= p_product_stock.p_color.name if p_product_stock.p_color
  
  %td{:style => "width:100px;"}= p_product_stock.p_size.name if p_product_stock.p_size
  
  %td{:style => "width:100px;"}= p_product_stock.stock_ok
  
  %td= p_product_stock.stock_th_ok
  
  %td.actions
    = link_to i(:cubes), stock_admin_p_product_path(p_product_stock.p_product), :remote => true

  -if false
    %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
    

