=# form.input :ref, :label => "Ref :" 
.qi_row.field
  .qi_pannel.qi_plain.padding
  
    %table.form-table
      %tr
        %td
          = form.input :enabled, :label => "Actif ?"
        %td
          = form.input :assembled, :label => "Assemblé ?", :input_html => {:onchange => 'if ($(this).is(":checked")) {$(this).closest(".field").find(".p_product_assembleds_part").show();}else{$(this).closest(".field").find(".p_product_assembleds_part").hide();}'}
        
        %td
          = form.input :ref, :label => "Réf int. :"
      
        %td
          = form.input :ct_sub_name, :label => "Désignation :"  
      
        %td
          = form.input :ct_price_ht, :label => "Prix HT :" 
        %td
          = form.input :uv, :label => "Unité de vente :"
        %td
          = form.input :weight, :label => "Poids (Kg) :"
      %tr
        %td{:colspan => 2}
        %td{:colspan => 5}
          %p Références fournisseur :
          
          .fournisseur_product_refs_form
            =form.semantic_fields_for :fournisseur_product_refs do |form|
              =render :partial => "admin/fournisseur_product_refs/form", :locals => {:form => form}
      
          %p= link_to_add_fields "Ajouter une référence fournisseur", form, :fournisseur_product_refs

    .p_product_assembleds_part{:style => ("display:none;" if !form.object.assembled)}
      %hr
    
      %p Produits composants :
  
      .p_product_assembleds_form
        =form.semantic_fields_for :p_product_assembleds do |form|
          =render :partial => "admin/p_product_assembleds/form", :locals => {:form => form}

      %p= link_to_add_fields "Ajouter un produit composant", form, :p_product_assembleds
      
      
-if false
  %td
    .p_product_features_form
      =form.semantic_fields_for :p_product_features do |form|
        =render :partial => "admin/p_product_features/form", :locals => {:form => form}

    %p= link_to_add_fields "Ajouter une caractéristique", form, :p_product_features

