= semantic_form_for [:admin,@article], :remote => true do |form| .content = form.inputs do =form.input :breve, :label => "Afficher comme brève ?", :as => :boolean =form.input :category_id, :as => :select, :collection => Category.joins(:category_langs).uniq, :label => "Domaine :", :include_blank => false = 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 :label_text, :label => "Texte du bouton pour lire la suite :" =form.semantic_fields_for :lang_articles do |lang_article| = 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 .actions = form.submit "Sauvegarder", :class => "btn btn-primary"