.recherche_filtre
  -params[:search] = params[:search] || []
  -params[:search][:m_event_type_title] = params[:search][:m_event_type_title] || []

  .centre_filtre
    =link_to image_tag('https://www.mamotosurcircuit.com/images/interface/btn_inscription.png'), public_my_account_path(), :class => "ins"
    %h4 Trouvez votre circuit
    
    =form_tag "", :method => "get",  :onsubmit => "" do
      
      
      .right{:style => "position:relative;top:10px;"}
        =submit_tag "Rechercher", :class => "submit"
      %p
        .select.inline_large_input=select_tag "search[circuit_region_id]", options_for_select([["Région",""]]+CircuitRegion.order(:name).all.map{|a| [a.name, a.id]}, params[:search][:circuit_region_id]), :class => ""

        
      
        =text_field_tag "search[name]", params[:search][:name],:class => "form-control inline_input", :placeholder => "Nom"
        
        
        .clear
      

.center_content
  
  %center
    %h1 Circuits
  =render @circuits
  
  .prevnext= paginate @circuits 
  