= form.inputs do 
  
  
  -if false
    =form.input :image_file_id, :label => "Image", :as => :qi_image_select
    = form.input :title_image, :label => "Afficher un bandeau titre sur la page ?", :as => :boolean
  
  = form.input :menu_id,:as => :hidden 
  = form.input :parent_id,:as => :hidden 
  
  - LangSite.all.each do |lang|
    =form.semantic_fields_for :menu_item_langs do |menu_item_lang| 
      -if menu_item_lang.object.lang_site == lang
        = menu_item_lang.inputs do
          %p= menu_item_lang.object.lang_site.name
          = menu_item_lang.hidden_field :lang_site_id
          
          = menu_item_lang.input :enabled, :label => "Publié ?"
          = menu_item_lang.input :visible, :label => "Visible ?"
          
          = menu_item_lang.input :name, :as => :string, :label => "Nom :"
          = menu_item_lang.input :slug, :as => :string, :label => "Slug :" if form.object.id?
          
    =render :partial => "admin/"+@menu_item.menu_content_type.tableize.to_s+"/form", :locals => {:form => form, :lang => lang}
      