= semantic_form_for [:admin,@article], :remote => true do |form| 
  .content
    = form.inputs do 
      =form.input :category_id, :as => :select, :collection => Category.order(:name), :label => "Catégorie :"
      =form.input :article_author_id, :as => :select, :collection => ArticleAuthor.order(:name), :label => "Auteur :"
      
      = form.input :published_at, :label => "Date de publication : ",:as => :qi_date_picker
      = form.input :image_file_id, :label => "Image :" , :as => :qi_image_select
      
      = form.input :title_cached, :label => "Cacher le titre ?"
      = form.input :gradient_cached, :label => "Dégradé caché ?"
      = form.input :title_bottom, :label => "Espace entre le bas de l'image et le titre :"
      = form.input :commentable, :label => "Commentaires activés ?"
      =# form.input :title, :label => "Titre :" 
      =# form.input :title_cached,:as => :boolean , :label => "Titre masqué ?" 
      =# form.input :slug, :label => "Slug :"   
      =#form.input :thumb_style, :as => :select, :collection => {  "Image en fond" => "article_img"}
      
     
      =form.semantic_fields_for :lang_articles do |lang_article| 

        %h3=lang_article.object.lang_site.name

        = lang_article.inputs do
          = lang_article.hidden_field :id
          = lang_article.hidden_field :lang_site_id
          = lang_article.input :enabled,:as => :boolean , :label => "Actif" 
          = lang_article.input :title, :as => :string, :label => "Titre :"
          = lang_article.input :description, :label => "Description courte :", :as => :text
      
      =form.input :tags, :label => "Mots clef", :as => :check_boxes
          
    
    
      
      

    
  .actions
    = form.submit "Sauvegarder", :class => "btn btn-primary"
