
=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;"}
      
      %table{:style => "width:100%;"}
        %tr
          %td{:style => "width:50%;"}
            = f.input :wish_date, :label => "Date de livraison souhaitée :", :as => :date
        
      
      -if @price_document.label != "Demande prix" 
        = f.input :customer_ref, :label => "Référence commande client :"
        -if current_admin.has_permission?("customer-sheets-bl")
          = f.input :bl_comment, :label => "Commentaire à mettre sur le BL :", :input_html => {:style => "min-height:50px;height:50px;"}
  
    
    .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"}
  
  
      