Sha256: e2938e120cddfde7fc8cde4cd8adf4e71396d0a5ba5fc303a952cd39d85b3130

Contents?: true

Size: 645 Bytes

Versions: 15

Compression:

Stored size: 645 Bytes

Contents

<%-   
  # pass in local :document with a SolrDocument
  method = (item_in_folder?(document[:id]) ? "delete" : "put")
  label = (item_in_folder?(document[:id]) ? "Unselect" : "Select")
  cssClass = (item_in_folder?(document[:id]) ? "deleteFolder" : "addFolder")
-%>

<%= form_tag( folder_path(document[:id]), :method => method, :class=> "folder_toggle #{cssClass}", "data-doc-id" => document[:id], :title=>h(document[document_show_link_field])) do -%>  
  <%= hidden_field(:bookmark, :title, :value => document[document_show_link_field]) %>
  <%= submit_tag(label, :class=>"folder_submit", :id => "folder_submit_#{document[:id]}") %>
<% end %>

Version data entries

15 entries across 13 versions & 2 rubygems

Version Path
atrium-0.0.1 app/views/atrium/collections/_folder_control.html.erb
atrium-0.0.1 app/views/atrium/exhibits/_folder_control.html.erb
atrium-0.0.1.alpha app/views/atrium/collections/_folder_control.html.erb
atrium-0.0.1.alpha app/views/atrium/exhibits/_folder_control.html.erb
blacklight-3.1.2 app/views/catalog/_folder_control.html.erb
blacklight-3.1.1 app/views/catalog/_folder_control.html.erb
blacklight-3.1.0 app/views/catalog/_folder_control.html.erb
blacklight-3.0.0 app/views/catalog/_folder_control.html.erb
blacklight-3.0.0pre8 app/views/catalog/_folder_control.html.erb
blacklight-3.0.0pre7 app/views/catalog/_folder_control.html.erb
blacklight-3.0.0pre6 app/views/catalog/_folder_control.html.erb
blacklight-3.0.0pre4 app/views/catalog/_folder_control.html.erb
blacklight-3.0.0pre3 app/views/catalog/_folder_control.html.erb
blacklight-3.0pre2 app/views/catalog/_folder_control.html.erb
blacklight-3.0pre1 app/views/catalog/_folder_control.html.erb