Sha256: afcd24fa95bd359c0ecc899907172e6c6b80132318af460d6af25b7286fe3536
Contents?: true
Size: 1.79 KB
Versions: 7
Compression:
Stored size: 1.79 KB
Contents
<%- if user_signed_in? -%> <%- unless @bookmark.blank? -%> <!-- bookmarked_by_me --> <%= form_for(:bookmark, :url => bookmark_path(@bookmark, :mode => 'tag_edit'), :html => { :method => :put }) do |f| -%> <div> <%= f.text_field :tag_list, :value => @bookmark.tag_list.join(' '), :class => 'editable_text_field' -%> <%= submit_tag t('page.update') -%> (<a onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#tag_list').html(request);}, type:'get', url:'<%= manifestation_path(manifestation, :mode => 'tag_list') %>'}); return false;" href="#"><%= t('page.cancel') %></a>) <br /> <%= t('tag.use_space_as_delimiter') -%> </div> <%- end -%> <%= javascript_tag("$(function(){$('#bookmark_tag_list').focus()})") %> <%- else -%> <!-- bookmarked_by_other_patron_or_not_bookmarked --> <%= form_for(:bookmark, :url => bookmarks_path(:mode => 'tag_edit'), :html => { :method => :post }) do |f| -%> <div> <%= f.text_field :tag_list, :class => 'editable_text_field' -%> <%= f.hidden_field :title, :value => manifestation.original_title -%> <%= f.hidden_field :url, :value => manifestation_url(manifestation) -%> <%= submit_tag t('page.create') -%> (<a onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#tag_list').html(request);}, type:'get', url:'<%= manifestation_path(manifestation, :mode => 'tag_list') %>'}); return false;" href="#"><%= t('page.cancel') %></a>) <br /> <%= t('tag.use_space_as_delimiter') -%> </div> <%- end -%> <%= javascript_tag("$(function(){$('#bookmark_tag_list').focus()})") %> <%- end -%> <%- end -%>
Version data entries
7 entries across 7 versions & 1 rubygems