=semantic_form_for [:admin, @p_ship_bill], :remote => true do |f|
  
  .content
    =f.inputs do
      = f.input :p_fournisseur_id, :label => "Fournisseur :", :collection => PFournisseur.all, :as => :select, :include_blank => false
      = f.input :bill_at, :label => "Date de la facture", :as => :date
      
      = f.input :ref, :label => "Référence :" 
      
      %hr
      %h3
        Lignes :
      %p= link_to_add_fields "Ajouter une ligne", f, :p_ship_bill_lines 

      .p_ship_bill_lines_form
        =f.semantic_fields_for :p_ship_bill_lines do |form|
          =render :partial => "admin/p_ship_bill_lines/form", :locals => {:form => form}
          
          
  .actions=f.submit "sauvegarder", :class => "btn btn-primary"
  