=semantic_form_for [:admin, @photo], :remote => true do |f| 
  .content
    = f.inputs do
      = f.input :title, :label => "Titre :"
      = f.input :description, :label => "Description :"
      = f.input :tags_cache, :label => "Tags :"
      
    %script
      $("#photo_tags_cache").select2({
      =raw'tags:'+Tag.tag_list.to_json+','
      tokenSeparators: [","]});
      
      
  .actions
    =f.submit "Sauvegarder", :class => "btn"