crossey_app/app/views/admin/articles/_form.html.haml
2013-09-30 17:42:55 +02:00

28 lines
1.1 KiB
Plaintext

= semantic_form_for [:admin,@article], :remote => true do |form|
.content
= form.inputs do
=form.input :priority_level, :label => "priorité",:as => :select, :collection => [0,1,2,3,4,5], :include_blank => false
= form.input :published_at, :label => "Date de publication : ",:as => :qi_date_picker
= form.input :end_at, :label => "Date de fin de publication : ",:as => :qi_date_picker
= form.input :enabled,:as => :boolean , :label => "Actif"
= form.input :frontpage, :label => "Page d'accueil ?"
= form.input :image_file_id, :label => "Image :" , :as => :qi_image_select
= form.input :title, :label => "Titre :"
=# form.input :slug, :label => "Slug :"
= form.input :description, :label => "Description courte :", :as => :text
=# form.input :tags_cache, :label => "Tags :"
=#%script
=# $("#article_tags_cache").select2({
=# =raw'tags:'+Tag.tag_list.to_json+','
=# tokenSeparators: [","]});
.actions
= form.submit "Sauvegarder", :class => "btn btn-primary"