=semantic_form_for [:admin, @press_release] do |f| =f.inputs do =f.input :press_type_id, :label => "Type :", :as => :select, :collection => [["Communiqué de presse", 1], ["Fiche sentience", 2]], :include_blank => false =f.input :lang_site_id, :label => "Langue :", :as => :select, :collection => LangSite.all, :include_blank => false = f.input :image_file_id, :label => "Image :" , :as => :qi_image_select =f.input :enabled, :label => "Publié ?", :as => :boolean = f.input :title, :label => "Titre" = f.input :slug, :label => "Slug" = f.input :description, :label => "Description" = f.input :published_at, :label => "Date de publication : ",:as => :qi_date_picker %p %br =f.submit "sauvegarder", :class => "btn btn-primary" :javascript $(".redactor_textarea").redactor({ focus: true, callbacks: { init: function() { } } }); :css .redactor-editor{ padding: 24px 32px; border: 1px solid rgba(0, 0, 0, 0.07); }