Sha256: c463801ebf829bca1b9d6ae92255c9325a712b01b560c3716896c73aa0abb384

Contents?: true

Size: 625 Bytes

Versions: 20

Compression:

Stored size: 625 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), :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

20 entries across 20 versions & 1 rubygems

Version Path
curate-0.6.6 app/views/catalog/_folder_control.html.erb
curate-0.6.5 app/views/catalog/_folder_control.html.erb
curate-0.6.4 app/views/catalog/_folder_control.html.erb
curate-0.6.3 app/views/catalog/_folder_control.html.erb
curate-0.6.1 app/views/catalog/_folder_control.html.erb
curate-0.6.0 app/views/catalog/_folder_control.html.erb
curate-0.5.6 app/views/catalog/_folder_control.html.erb
curate-0.5.5 app/views/catalog/_folder_control.html.erb
curate-0.5.4 app/views/catalog/_folder_control.html.erb
curate-0.5.2 app/views/catalog/_folder_control.html.erb
curate-0.5.1 app/views/catalog/_folder_control.html.erb
curate-0.5.0 app/views/catalog/_folder_control.html.erb
curate-0.4.2 app/views/catalog/_folder_control.html.erb
curate-0.3.2 app/views/catalog/_folder_control.html.erb
curate-0.3.1 app/views/catalog/_folder_control.html.erb
curate-0.2.0 app/views/catalog/_folder_control.html.erb
curate-0.1.3 app/views/catalog/_folder_control.html.erb
curate-0.1.2 app/views/catalog/_folder_control.html.erb
curate-0.1.1 app/views/catalog/_folder_control.html.erb
curate-0.1.0 app/views/catalog/_folder_control.html.erb