.qi_header
  .right= link_to ic(:plus)+' Ajouter un paiement', new_admin_p_payment_path(), :class => "btn btn-primary btn-ap-add", :remote => true
  %h1
    Paiements
    %span
      Liste des paiements

.qi_search_row
  =form_tag "", :method => "get",  :onsubmit => "" do
  
    %table.search_table
      %tr
        
        %td
          Montant : 
        %td
          de
        %td
          =number_field_tag :amount_min, params[:amount_min],:class => "form-control", :placeholder => "Min", :step => 0.01
        %td
          à
        %td
          =number_field_tag :amount_max, params[:amount_max],:class => "form-control", :placeholder => "Max", :step => 0.01
        %td
        
        %td
          Date de paiement :
        %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
          au
        %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)
              
        
        %td
          Type de paiement :
        %td
          -params[:p_payment_type_ids] = params[:p_payment_type_ids] || []
      
          %div{:style => "height:150px;overflow:auto;"}
            -PPaymentType.order("name").all.each do |pdt|
            
              %div
            
                = check_box_tag "p_payment_type_ids[]", pdt.id, (true if params[:p_payment_type_ids].include?(pdt.id.to_s)), {:id => "p_payment_type_ids_#{pdt.id}"}
                = label_tag "p_payment_type_ids_"+pdt.id.to_s, pdt.name
        
        %td
        
          

        
       
          
    :scss
      .search_table{
        td{
          vertical-align:top;
        }
      }  
    
      .search_label{
        
        text-align:right;
        padding-right:5px;
      }
      .search_op{
        width:25px;
        text-align:center;
        color:rgba(0,0,0,0.5);
      }
      
      
      
          
      
      
  
    =render :partial => "qi/qi_ordered_table_search_footer", :locals => {:collection_object => @p_payments}


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


:scss
  .qi_search_row_top{
    td{
      vertical-align:top;
    }
    p{
      margin:0;
    }
  }


  
    