pic_vert_app/app/views/admin/faqs/_form.html.haml
Nicolas Bally 9e3dd91a06 FAQ admin
2015-10-21 16:29:25 +02:00

25 lines
680 B
Plaintext

= semantic_form_for [:admin,@faq], :remote => true do |form|
.content
= form.inputs do
=form.input :enabled, :label => "Publier"
=form.input :image_file_id, :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
$("#faq_tags_cache").select2({
=raw'tags:'+Tag.tag_list.to_json+','
tokenSeparators: [","]});
.actions
= form.submit "Sauvegarder", :class => "btn btn-primary"