Nicolas Bally 1fa250e0e4 Initial
2011-07-15 12:29:09 +02:00

13 lines
531 B
Plaintext

= 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"