=semantic_form_for [:admin, @p_fournisseur_order], :html => {:class => "qi_price_form"}, :remote => false do |form|

  -@p_fournisseur = @p_fournisseur_order.p_fournisseur if @p_fournisseur_order.p_fournisseur 
  .qi_row
    .qi_pannel.qi_plain.padding
      
  
      =form.inputs do
        %table
          %tr
            %td 
              =form.input :enter_date, :label => "Date de livraison", :as => :date
            %td
              =form.input :p_fournisseur_id, :label => "Fournisseur :", :collection => PFournisseur.all,:member_label => :member_label, :as => :select, :include_blank => false, :input_html => {:id => "p_fournisseur_id"}
            %td
              = form.input :ref, :label => "Référence :" 
              
            %td
              = form.input :state, :label => "Etat :", :collection => PFournisseurOrder::STATES, :as => :select, :include_blank => false
            %td
              = form.input :payment_state, :label => "Etat :", :collection => PFournisseurOrder::PAYMENT_STATES, :as => :select, :include_blank => false
      
      %hr
  

  .qi_row
    .qi_pannel.qi_plain.padding
      .price_line_block_form
        =form.semantic_fields_for :price_line_block do |f|
          =render :partial => "admin/price_line_blocks/fournisseur_order_form", :locals => {:f => f}

    
  
  .large_actions
    .actions
      =form.submit "sauvegarder", :class => "btn btn-primary btn-ap-add"