= semantic_form_for [:admin,@article], :remote => true do |form| .content = form.inputs do .row.qi_cancel_margins .col-sm-6=form.input :category_id, :as => :select, :collection => Category.order(:name), :label => "Catégorie :" .col-sm-6=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 générale :" , :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 :juridique, :label => "Article juridique ?" = 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"} .row.qi_cancel_margins =form.semantic_fields_for :lang_articles do |lang_article| .col-sm-6 %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 = lang_article.input :html_title, :as => :string, :label => "Titre avec HTML (exceptions) :" = lang_article.input :fb_title, :as => :string, :label => "Titre pour réseaux (exceptions):" = lang_article.input :image_file_id, :label => "Image :" , :as => :qi_image_select =form.input :tags, :label => "Mots clef", :as => :check_boxes = form.input :without_text_image_file_id, :label => "Image sans texte (réseaux) :" , :as => :qi_image_select .actions = form.submit "Sauvegarder", :class => "btn btn-primary"