=semantic_form_for [:admin, @p_document], :remote => true do |f|

  .content
    =f.inputs do
      = f.input :p_commercial_id, :label => "Commercial :", :include_blank => true, :collection => PCommercial.order(:name).all, :as => :select, :member_label => :long_name if @p_document.id
      
      = f.input :created_at, :label => "Date :", :as => :date
      = f.input :p_payment_type_id, :label => "Type de paiement :", :include_blank => false, :collection => PPaymentType.order(:name).all, :as => :select, :input_html => {:id => "payment_type_id_select"} 
      = f.input :comptant, :label => "Paiement comptant nécessaire ?" 
      = f.input :payment_delais, :label => "Délais jour de paiement :"
      
      = f.input :i_archive, :label => "Indiquer le lettrage comme effectué ? (forcer, même si aucun paiements rattachés)" 
      
      
  .actions=f.submit "sauvegarder", :class => "btn btn-primary"
  