= 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.joins(:category_langs).order("category_langs.name").uniq, :label => "Catégorie :" =#form.input :new_cat_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 => :datetime_select = 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 :slug, :as => :string, :label => "Permalien :" if form.object.id? = lang_article.input :description, :label => "Description courte :", :as => :text = lang_article.input :chapeau, :label => "Chapeau :", :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 :twitter_title, :as => :string, :label => "Titre pour twitter (exceptions):" = lang_article.input :image_file_id, :label => "Image bandeau article :" , :as => :qi_image_select = lang_article.input :slider_image_file_id, :label => "Image slider HP blog :" , :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 =form.input :animals, :label => "Animaux concernés", :as => :check_boxes, :collection => Animal.order(:name).all =form.input :categories, :label => "Catégories supplémentaires", :as => :check_boxes, :collection => Category.joins(:category_langs).where("category_langs.lang_site_id = 1").order("category_langs.name") =form.input :popups, :label => "Popups", :as => :check_boxes, :collection => Popup.all .actions = form.submit "Sauvegarder", :class => "btn btn-primary"