Module: Hyrax::BatchEditsHelper

Defined in:
app/helpers/hyrax/batch_edits_helper.rb

Instance Method Summary collapse

Instance Method Details

#batch_deleteObject

Displays the delete button for batch editing



5
6
7
# File 'app/helpers/hyrax/batch_edits_helper.rb', line 5

def batch_delete
  render 'hyrax/batch_edits/delete_selected'
end

#render_check_allObject

Displays a “check all” button with a dropdown that has “Select None” and “Select current page” actions



11
12
13
14
# File 'app/helpers/hyrax/batch_edits_helper.rb', line 11

def render_check_all
  return if params[:controller] == "hyrax/my/collections"
  render 'hyrax/batch_edits/check_all'
end