-if form.object.created_at
  Date de création :
  =l form.object.created_at, :format => :date

= form.inputs do 
  
  
  
  =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 :title_cached, :label => "Cacher le titre ?"
  
  = 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
  
  
  .row
  
  
    - LangSite.all.each do |lang|
      .col-sm-6
        =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
                %strong= 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 => "Permalien :" if form.object.id?
          
            =render :partial => "admin/"+@menu_item.menu_content_type.tableize.to_s+"/form", :locals => {:form => form, :lang => lang}
            =menu_item_lang.input :image_file_id, :label => "Image de bandeau :", :as => :qi_image_select
            
  
            
            
  = form.input :icon_image_file_id, :label => "Icon", :as => :qi_image_select
  = form.input :icon_b_image_file_id, :label => "Icon noir", :as => :qi_image_select
  = form.input :icon_v_image_file_id, :label => "Icon vert", :as => :qi_image_select
  