= semantic_form_for [:admin,@event], :remote => true do |form| .content = form.inputs do = form.input :start_at,:as => :datetime , :label => "Date" = form.input :category_id, :label => "Catégorie :", :as => :select, :collection => Event::CATEGORIES.map {|u| [u[1], u[0]] } = form.input :title, :label => "Titre :" = form.input :description, :label => "Description courte :", :as => :text = form.input :image_file_id, :label => "Image :", :as => :qi_image_select .actions = form.submit "Sauvegarder"