.p_payment_document_form.field
  %hr
  %table{:style => "width:100%;"}
    %tr
      %td
        -p_documents = PDocument.where(:p_document_type_id => 4)
        -if @p_customer
          -p_documents = p_documents.where(:p_customer_id => @p_customer.id)
        = form.input :p_document_id, :label => "Document :", :collection => p_documents.all, :as => :select, :include_blank => false, :member_label => :name_for_payment
      %td
        = form.input :amount, :label => "Montant"
      
      %td{:style => "padding:10px"}  
        =link_to_remove_fields ic(:"trash-o"), form