=semantic_form_for [:admin, @p_customer_sheet], :html => {:class => "qi_price_form"}, :remote => false do |form|
  =form.semantic_fields_for :price_line_block do |f|
    =render :partial => "admin/price_line_blocks/form", :locals => {:f => f}

  .content
    .qi_row
      .qi_pannel.qi_plain.padding.row
        .col-2
          -if @p_customer_sheet and @p_customer_sheet.state != "commande"
            =#form.input :demande_type, :collection => ["Brouillon", "Demande de bon de commande","Demande de devis"], :as => :select, :include_blank => false, :label => "Type de demande :"

          =form.input :state, :collection => ["AV BPA", "PAS BPA","BPA", "Traitée"], :as => :select, :include_blank => false, :label => "Statut :"

          =form.input :past_id, :label => "N° système actuel"
          =yield :discount
        .col-2
          =yield :shipping_date
        .col-8
          =yield :particular

    
  =yield :price_lines
  .large_actions
    .actions
      =link_to "Annuler", admin_p_customer_sheets_path(), :class => "btn"
      =form.submit "sauvegarder", :class => "btn btn-primary btn-ap-add"
  .clear
  
