

= form.inputs do 
  
  
  
  =form.input :image_file_id, :label => "Image", :as => :qi_image_select

  
  = form.input :menu_id,:as => :hidden 
  = form.input :parent_id,:as => :hidden 
  
  =form.semantic_fields_for :menu_content do |content| 

    = content.inputs do 
      =#content.input :page_type_id, :collection => Page::PAGE_TYPE, :label => "Type de page :", :as => :select, :include_blank => false
  

  
  
    - 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

            = 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 => "Permalien :" if form.object.id?
        
          =render :partial => "admin/"+@menu_item.menu_content_type.tableize.to_s+"/form", :locals => {:form => form, :lang => lang}
         
            
            