%tr#p_article_row{:id => p_article.id}
  -tr = {}
  
  -tr[:p_product_ref_code] = capture do
    %td
      = p_article.p_product_ref.code

  -tr[:p_grade] = capture do
    %td
      = p_article.p_grade.grade

  -tr[:color] = capture do
    %td
      = p_article.p_product_ref.p_product_color.color

  -tr[:p_product_ref] = capture do
    %td
      = p_article.p_product_ref.p_product.name
      \-
      = p_article.p_product_ref.ct_sub_name
      \-
      = p_article.p_product_ref.p_product_color.name

  -tr[:p_article_serial_nums] = capture do
    %td
      - p_article.p_article_serial_nums.each do |sn|
        = sn.p_serial_num_type.name + " : " + sn.value
        %br


  -tr[:actions] = capture do
    %td.actions
      = link_to i(:"trash-o"), [:admin, p_article], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cet enregistrement ? ' } , :remote => true
      = link_to i(:pencil), edit_admin_p_article_path(p_article), :remote => true
      = link_to i(:eye), admin_p_article_path(p_article), :remote => true



  =render :partial => "qi/qi_ordered_table_object", :locals => {:tr => tr, :object => p_article}
    
  
  
  
