.qi_header
  .right= link_to 'Ajouter un client', new_admin_p_customer_path(), :class => "btn btn-primary", :remote => true
  %h1
    Ventes
    %span
      Clients
 
  

-if false and params[:search].to_s == "" and ! params[:page]
  .qi_row
    .qi_pannel.qi_plain.padding
  
  
      %table.table
        %tr
          %th Email
          %th Code
          %th Nom
          %th CA (HT)
          %th
  

        %tbody#p_customers_rows
          =render @fav_p_customers
        

.qi_row
  .qi_pannel.qi_plain.padding
  
    =form_tag "", :method => "get",  :onsubmit => "" do
    

      =text_field_tag :search, params[:search],:class => "form-control", :placeholder => "Rechercher"
            
        
      =submit_tag "Recherche", :class => "btn btn-default", :style => "margin-bottom: 10px;"
    
  
  
    %table.table
      %tr
        %th Email
        %th Code
        %th Nom
       
        %th
  

      %tbody#p_customers_rows
        =render @p_customers
        
      
    #pagination
      = paginate @p_customers #, :remote => true

  