
=f.inputs do


  -if !@p_customer_sheet or (@p_customer_sheet and @p_customer_sheet.state != "commande")
  
    
    = 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 => "Votre référence de cotation :"
     
    
    %div{:style => ("display:none" if !current_admin)}
    
      .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"} if current_admin
  
  
      