%tr#m_odr_prime_row{:id => m_odr_prime.id}
  -tr = {}
  
  -tr[:p_customer] = capture do
    %td
      =link_to m_odr_prime.p_customer.show_name, [:admin, m_odr_prime.p_customer] if m_odr_prime.p_customer

  -tr[:state] = capture do
    %td
      =state_helper(m_odr_prime.state)
      

  -tr[:actions] = capture do
    %td.actions
      = link_to i(:"trash-o"), [:admin, m_odr_prime], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cette prime ? ' } , :remote => true
      =# link_to i(:pencil), edit_admin_m_odr_prime_path(m_odr_prime), :remote => true
      = link_to i(:eye), admin_m_odr_prime_path(m_odr_prime), :remote => false



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