=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"
  
      
    
  