.qi_header
  .right= link_to ic(:plus)+' Ajouter', new_admin_m_event_path(), :class => "btn btn-primary btn-ap-add", :remote => true
  %h1
    Journées de roulage
    

      
.qi_search_row
  =form_tag "", :method => "get",  :onsubmit => "" do
  
    %table
      %tr
        %td
          Circuit :
          =select_tag "search[circuit_id]", options_for_select([["",""]]+Circuit.order(:name).all.map{|a| [a.name, a.id]}, params[:search][:circuit_id])
        
        %td
          Organisateur :
          =select_tag "search[organisateur_id]", options_for_select([["",""]]+Organisateur.order(:name).all.map{|a| [a.name, a.id]}, params[:search][:organisateur_id])
        
        
        %td
          .input-group
            =text_field_tag :start, params[:start],:class => "form-control datepicker", :placeholder => "Début"
            %span.input-group-addon.btn{:onclick => "$(this).prev('input').val('');"}
              =ic(:times)
        
         
  
        %td
          .input-group
            =text_field_tag :stop, params[:stop],:class => "form-control datepicker", :placeholder => "Fin"
            %span.input-group-addon.btn{:onclick => "$(this).prev('input').val('');"}
              =ic(:times)
        
        
        
    =render :partial => "qi/qi_ordered_table_search_footer", :locals => {:collection_object => @m_events}


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



