=#debug form.object.errors.messages
=# form.input :ref, :label => "Ref :" 
.qi_row.field
  .qi_pannel.qi_plain.padding
  
    %table.form-table
      %tr
        =# form.input :enabled, :label => "Actif ?"
        =# 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. :"
          =#form.hidden_field :ref_id
      
        %td
          = form.input :ct_sub_name, :label => "Désignation :"  
      
        %td
          = form.input :ct_price_ht, :label => "Prix vente HT :" 
        
        %td
          =form.input :p_product_color_id, :label => "Couleur :", :collection => PProductColor.all, :as => :select, :include_blank => true
        %td
          =form.input :ct_sorecop, :label => "Sorecop personalisée :"
        %td
          =form.input :sorecop_comment, :label => "Type de Sorecop :"
        %td
          =form.input :ct_deee, :label => "DEEE personalisée :"
        %td
          =form.input :ean




      %tr
        %td{:colspan => 4}
          .p_product_ref_specs_form
            = form.semantic_fields_for :p_product_ref_specs do |f|
              =render :partial => "admin/p_product_ref_specs/form", :locals => {:form => f}
          %p= link_to_add_fields "Ajouter une spec", form, :p_product_ref_specs

          
        
      %tr
        %td{:colspan => 2}
        %td{:colspan => 4}
          = form.input :description, :label => "Désignation longue :" , :input_html => {:style => "height:100px;"}
         
      -if false
        %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

  
