ecole_eft_app/app/views/admin/quotes/_form.html.haml
2013-07-18 01:23:48 +02:00

33 lines
648 B
Plaintext

=semantic_form_for [:admin, @quote], :remote => true do |f|
.content
%h2
-if @quote.id
Modifier une citation
-else
Ajouter une citation
= f.inputs do
= f.input :enabled, :label => "actif ?"
= f.input :quote, :label => "Citation :", :as => :string
= f.input :author, :label => "Auteur :"
= f.input :tags_cache, :label => "Tags :"
%script
$("#quote_tags_cache").select2({
=raw'tags:'+Tag.tag_list.to_json+','
tokenSeparators: [","]});
.actions
=f.submit "Sauvegarder", :class => "btn btn-primary"