.product_stock_form
  %hr
  %table{:style => "width:100%;"}
    %tr
      %td
        = form.input :p_brut_product_id, :label => "Matière :", :collection => PBrutProduct.all, :as => :select, :include_blank => false , :input_html =>{:readonly => (true if form.object.lock == true)}
      %td
        = form.input :p_tank_id, :label => "Stockage :", :collection => PTank.all, :as => :select, :include_blank => true , :input_html =>{:readonly => (true if form.object.lock == true)}
      %td
        = form.input :externe, :label => "Stock externe ?"

    %tr
    
      %td
        = form.input :qte, :label => "Quantité annoncée:", :input_html =>{:readonly => (true if form.object.lock == true)}, :inline => true
      %td  
        = form.input :price, :label => "Prix annoncé :" , :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
      
    %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
        -if form.object.lock == true
          Livrée :
        -else
          = form.input :ok, :label => "Livrée ?", :input_html =>{:readonly => (true if form.object.lock == true)}