.qi_header
  .right= link_to ic(:plus)+' Ajouter', new_admin_m_odr_prime_path(), :class => "btn btn-primary btn-ap-add", :remote => true
  %h1
    Primes
    %span 
      Primes
    

      
.qi_search_row
  =form_tag "", :method => "get",  :onsubmit => "" do
    =render :partial => "qi/qi_ordered_table_search_footer", :locals => {:collection_object => @m_odr_primes, :csv => true}
    -params[:search] =params[:search] || {}
    
    %table
      %tr
        %td=text_field_tag "search[name]", params[:search][:name],:class => "form-control", :placeholder => "Nom"
        
        %td
          Statut :
          =select_tag "search[state]", options_for_select([["",""]]+MOdrPrime.group(:state).order(:state).all.map{|a| [a.state, a.state]}, params[:search][:state])


      
      
    

=render :partial => "qi/qi_ordered_table", :locals => {:qi_ordered_table_collection => @m_odr_primes}


%table.table

  
  -if true
    -if true
      -#MOdrPrime.reset_primes

    -#PCustomer.all.each do |p_customer|
    -#p_customer.generate_prime
      



    