=semantic_form_for [:admin, @p_product], :remote => true do |f|

  .content
    =f.inputs do
      = f.input :enabled, :label => "Dispo en vente en ligne ?" 
      = f.input :p_product_cat_id, :label => "Catégorie produit :", :collection => PProductCat.all, :as => :select, :include_blank => false
      
      = f.input :image_file_id, :label => "Image", :as => :qi_image_select
      
      = f.input :name, :label => "Nom :" 
      
      = f.input :description, :label => "Description :" 
      
      = f.input :code, :label => "Code :" 
      
      = #f.input :compte_achat, :label => "Compte achat :" 
      = #f.input :compte_vente, :label => "Compte vente :" 
      
      = f.input :p_origine, :label => "Origine :", :collection => POrigine.all, :as => :select
      
      = f.input :p_ep, :label => "Epaisseur :", :collection => PEp.all, :as => :select, :member_label => :ep
      
      = f.input :p_sizes, :label => "Tailles :", :collection => PSize.where(:archived => false).all, :as => :check_boxes
      
      = f.input :p_colors, :label => "Couleurs :", :collection => PColor.where(:archived => false).all, :as => :check_boxes
      
      = f.input :p_qtes, :label => "Nbr / cartons :", :collection => PQte.all, :as => :check_boxes, :member_label => :qte
      
      = f.input :p_certifs, :label => "Certifications :", :collection => PCertif.all, :as => :check_boxes
      
      
      
      
      
   
   
   
   
  .actions=f.submit "sauvegarder", :class => "btn btn-primary"
  