= semantic_form_for [:admin,@product_category], :remote => true do |form|

  = form.input :parent_id,:as => :hidden

  .content
    = form.input :image_file_id, :label => "Image", :as => :qi_image_select
    
    =form.semantic_fields_for :product_category_langs do |product_category_lang|

      = product_category_lang.inputs do
      
        
        
        = product_category_lang.hidden_field :id
        = product_category_lang.hidden_field :parent_id
        = product_category_lang.hidden_field :lang
        = product_category_lang.input :name, :as => :string, :label => "Nom (#{product_category_lang.object.lang}) :"
        = product_category_lang.input :description, :label => "Description (#{product_category_lang.object.lang}) :"
    = form.input :image_file_left_id, :label => "Image gauche :", :as => :qi_image_select
    = form.input :image_file_right_id, :label => "Image droite :", :as => :qi_image_select
    
    = form.input :top_image_id, :label => "Grande image du haut :", :as => :qi_image_select
    = form.input :color, :label => "Couleur :"
  .actions
    = form.submit "Sauvegarder"
