jfn_app/app/views/admin/articles/_form.html.haml
Nicolas Bally 0d62fbe429 initial
2011-12-29 11:06:37 +01:00

15 lines
660 B
Plaintext

= semantic_form_for [:admin,@article], :remote => true do |form|
.content
= form.inputs do
=form.input :category_id, :as => :select, :collection => Category.order(:name)
= form.input :enabled,:as => :boolean , :label => "Actif"
= form.input :published_at, :lable => "Date de publication : ", :as => :datetime
= form.input :title, :label => "Titre :"
= form.input :slug, :label => "Slug :"
= form.input :tags_cache, :label => "Tags :"
= form.input :description, :label => "Description courte :", :as => :text
= form.input :image_file_id, :label => "Image :", :as => :qi_image_select
.actions
= form.submit "Sauvegarder"