
.p_vol_except_form.field{:style => ("display:none" if form.object.marked_for_destruction?)}
  =form.inputs do
    %table{:style => "width:100%;"}
      %tr
        %td
          = form.input :p_brut_product_id, :label => "Matière :", :collection => PBrutProduct.joins("LEFT JOIN `p_product_brut_products` ON `p_product_brut_products`.`p_brut_product_id` = `p_brut_products`.`id` INNER JOIN `p_products` ON `p_products`.`id` = `p_product_brut_products`.`p_product_id`").where(:p_products => {:p_product_cat_id => 6}).all.uniq, :as => :select, :include_blank => false 
        %td{:style => "width:100px;"}
          = form.input :qte, :label => "Quantité :"
        %td{:style => "width:400px;"}
          = form.input :justif, :label => "Raison :", :input_html => {:style => "height:100px;"}
        
        %td{:style => "width:100px;"}
          = form.input :stock, :label => "Stock ?"
    
    

  =link_to_remove_fields ic(:"trash-o"), form