.qi_header
  .right= link_to 'Ajouter ', new_admin_m_odr_remise_path(), :class => "btn btn-primary", :remote => true
  %h1
    Primes
    %span
      Remises en banque
      


.qi_search_row
  =form_tag "", :method => "get",  :onsubmit => "" do
    -params[:search] =params[:search] || {}
    %table
      %tr
        %td
          Statut :
          =select_tag "search[state]", options_for_select([["",""]]+MOdrRep.group(:state).order(:state).all.map{|a| [a.state, a.state]}, params[:search][:state])
          
          
        %td
          Opération :
          =select_tag "search[m_odr_id]", options_for_select([["",""]]+MOdr.order(:name).all.map{|a| [a.name, a.id]}, params[:search][:m_odr_id])
        
        
        %td=text_field_tag :name, params[:name],:class => "form-control", :placeholder => "Nom"

    
    =render :partial => "qi/qi_ordered_table_search_footer", :locals => {:collection_object => @m_odr_remises}
    
    
=render :partial => "qi/qi_ordered_table", :locals => {:qi_ordered_table_collection => @m_odr_remises}