=semantic_form_for [:admin, @p_customer_sheet],:url => set_sheet_line_ship_save_admin_p_customer_sheet_path(@p_customer_sheet, :p_sheet_line_ids => params[:p_sheet_line_ids]), :remote => true, :html => {:method => :post} do |form|


    
  .content  
    .p_sheet_lines_form
      =form.semantic_fields_for :p_sheet_lines do |form|
        -if form.object.p_product.p_product_cat_id != 6 or form.object.externe and params[:p_sheet_line_ids].include?(form.object.id.to_s)
          -form.object.ok = true
          .product_stock_form.field
            %hr
            = form.hidden_field :ok
          
            %table{:style => "width:100%;"}
     
              %tr
                %td
                  Quantité annoncée : 
                  =form.object.qte
              
                %td
                  Quantité annoncée : 
                  = number_to_currency form.object.price
    
              %tr
    
              
      
              %tr
      
                %td= form.input :ok_qte, :label => "Quantité livrée :" , :input_html =>{:readonly => (true if form.object.lock == true)}
                %td= form.input :ok_price, :label => "Prix livré :" , :input_html =>{:readonly => (true if form.object.lock == true)}
                %td= form.input :ok_at, :label => "Date de livraison :", :input_html =>{:readonly => (true if form.object.lock == true)}, :as => :date_select
              
              
    
     
  .right.actions=form.submit "sauvegarder", :class => "btn btn-primary"
  .clear
  