%tr#p_article_serial_num_row{:id => p_article_serial_num.id}
  -tr = {}

  -tr[:p_article_id] = capture do
    %td
      = p_article_serial_num.p_article.id

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


  -tr[:p_serial_num_type] = capture do
    %td
      = p_article_serial_num.p_serial_num_type.name

  -tr[:value] = capture do
    %td
      = p_article_serial_num.value


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



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