%tr#m_odr_virement_row{:id => m_odr_virement.id}
  -tr = {}
  
  -tr[:m_odr_rep_link] = capture do
    %td
      -if m_odr_virement.m_odr_rep
        =link_to [:admin, m_odr_virement.m_odr_rep]  do
          ="##{m_odr_virement.m_odr_rep_id} -"
          = m_odr_virement.m_odr_rep.cc_particular_civilite
          = m_odr_virement.m_odr_rep.cc_particular_name
          = m_odr_virement.m_odr_rep.cc_particular_firstname
        
        
  -tr[:amount] = capture do
    %td=number_to_currency m_odr_virement.amount
    
    
  -tr[:enabled] = capture do
    %td
      -if m_odr_virement.enabled 
        =ic(:check)
        Oui
      -else
        -if !@m_odr_rep
          = link_to ic(:check)+" ok pour remise", admin_valid_admin_m_odr_virement_path(m_odr_virement), :remote => true, :class => "btn btn-success"
    
  -tr[:refused] = capture do
    %td
      -if m_odr_virement.refused 
        Refusé
      -else
        -if @m_odr_remise
          = link_to "Indiquer comme refusé par la banque", refuse_admin_m_odr_virement_path(m_odr_virement), :remote => true, :class => "btn btn-danger"
  
  
  -tr[:sended] = capture do
    %td
      -if m_odr_virement.sended 
        =ic(:check)
        Envoyé
  
     
  -tr[:actions] = capture do
    %td.actions
      -if !m_odr_virement.enabled
        = link_to i(:"trash-o"), [:admin, m_odr_virement], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cet enregistrement ? ' } , :remote => true
      
    


  
  
  
  
  
  -if !@qi_table_orders

    =render :partial => "qi/qi_ordered_table_head", :locals => {:qi_ordered_table_name => m_odr_virement.class.to_s.tableize, :qi_ordered_table_model => m_odr_virement.class}


  -@qi_table_orders[:m_odr_virements].each do |key,value|

    -if tr[:"#{key}"]

      =raw tr[:"#{key}"]

    -elsif (m_odr_virement.respond_to?(key))

      %td

        =m_odr_virement.send(key.to_s)

  

    -else

      %td

        Err :

        =key



  

