pic_vert_app/app/views/admin/articles/_form.html.haml
2015-11-06 16:56:19 +01:00

30 lines
1.1 KiB
Plaintext

= semantic_form_for [:admin,@article], :remote => true do |form|
.content
= form.inputs do
= form.input :echo, :label => "Echo du réseau ?"
=form.input :image_file_id, :as => :qi_image_select
=form.input :author_id, :as => :select, :collection => Author.order(:name), :include_blank => false
=form.input :category_id, :as => :select, :collection => Category.order(:name)
= form.input :enabled,:as => :boolean , :label => "Actif"
= form.input :published_at, :label => "Date de publication : ",:as => :qi_date_picker
= form.input :title, :label => "Titre :"
= form.input :title_cached,:as => :boolean , :label => "Titre masqué ?"
= 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"