
=f.inputs do


  -if !@p_customer_sheet or (@p_customer_sheet and @p_customer_sheet.state != "commande")
    .qi_pannel.qi_plain.padding{:style => "margin:20px 0;"}
      
      = f.input :p_fournisseur_id, :label => "Fournisseur", :collection => PFournisseur.all, :as => :select, :member_label => :name if @price_document.label == "Réponse fournisseur" and current_admin
      = f.input :customer_ref, :label => "Référence cotation fournisseur :"
       
    
    .price_lines_form
      =f.semantic_fields_for :price_lines do |f|
        =render :partial => "admin/price_lines/form_#{f.object.block_type_slug}", :locals => {:form => f}
  
    %p= link_to_add_fields "Ajouter une ligne", f, :price_lines, {:class => "btn btn-primary"}
  
  
      