.qi_header
  .right= link_to ic(:plus)+' Ajouter', new_admin_v_contact_path(), :class => "btn btn-primary btn-ap-add", :remote => true
  %h1
    Cartes Club Vulco
    

      
.qi_search_row
  =form_tag "", :method => "get",  :onsubmit => "" do

    -params[:search] =params[:search] || {}
    %table
      %tr
        -if current_admin.super_admin
          %td
            Actif :
            =select_tag "search[enabled]", options_for_select([[""], "Oui", "Non"], params[:search][:enabled])
        
        %td=text_field_tag :code, params[:code],:class => "form-control", :placeholder => "Numéro CCV"
        
        %td=text_field_tag :name, params[:name],:class => "form-control", :placeholder => "Nom"
        
        %td=text_field_tag :cp, params[:cp],:class => "form-control", :placeholder => "Code postal"
        
        %td=text_field_tag :city, params[:city],:class => "form-control", :placeholder => "Ville"
      
        %td
          Centre :
          =select_tag "search[codeproprietaire]", options_for_select([["",""]]+(current_admin.super_admin ? Societe : current_admin.societes).where(:enabled => true).order(:nom).all.map{|a| [a.nom, a.socmanaginn]}, params[:search][:codeproprietaire])
        
    

    =render :partial => "qi/qi_ordered_table_search_footer", :locals => {:collection_object => @v_contacts, :csv => true}
  
    
  
    =#render :partial => "qi/qi_ordered_table_search_footer", :locals => {:collection_object => @v_contacts}


=render :partial => "qi/qi_ordered_table", :locals => {:qi_ordered_table_collection => @v_contacts, :masqued_columns => (!current_admin.super_admin ? [:enabled, :id, :codeproprietaire, :corbeille, :datecreation,:cc_centre] : [] )}



