-field_form = field_form || false
.p_payment_form.field

  
  =form.inputs do
  
    %table{:style => "width:100%;"}
      %tr
        %td{:style => "width:200px;"}
          = form.input :p_payment_type_id, :label => "Type de paiement :", :include_blank => false, :collection => PPaymentType.order(:name).all, :as => :select, :input_html => {:class => "payment_type_id_select"}
          
        %td{:style => "width:160px;"} 
          = form.input :paid_at, :label => "Date de paiement :" , :as => :date
        %td{:style => "width:160px;"} 
          .not_comptant{:style => ("display:none" if !PPaymentType.where(:comptant => false).ids.include?(form.object.p_payment_type_id))}
            = form.input :theo_date, :label => "Date paiement th. :" , :as => :date
          
        -if false
          %td{:style => "width:100px;"} 
            %br
            = form.input :paid, :label => "Encaissé ?"
      
        %td{:style => "width:100px;"} 
          = form.input :amount, :label => "Montant :", :input_html => {:class => "payment_amount"}
        %td
          = form.input :number, :label => "N° / réf. :" 
    
    
        -if !@p_payment
          %td{:style => "width:40px;padding-top:28px;text-align:center;"}
            
            =link_to_remove_fields ic(:"trash-o"), form