Sha256: db7776468b2593e252dd7dcb108defc9b5d35a1af4a06b6789dad71e1f9fc291

Contents?: true

Size: 1.38 KB

Versions: 54

Compression:

Stored size: 1.38 KB

Contents

<div class="batch-info">
  <div>
    <%= render 'collections/form_for_select_collection', user_collections: @user_collections %>
  </div>

  <% if action_name == "edit" %>
    <div class="batch-toggle">
      <% session[:batch_edit_state] = "on" %>
      <%= button_for_remove_selected_from_collection collection %>
    </div>
  <% end %>
  <div class="sort-toggle">
    <%-# kind of hacky way to get this to work on catalog and folder controllers.  May be able to simple do {:action=>"index"} but I'm not sure -%>
    <% unless @response.response['numFound'] < 2 %>
      <%= form_tag collection_path(collection), method: :get, class: 'per_page form-inline' do %>
        <%= label_tag :sort do %>
          <span>Sort By:</span>
        <% end %>
        <%= select_tag :sort, options_for_select(sort_fields, h(params[:sort])) %>
        &nbsp;&nbsp;&nbsp;
        <%= label_tag :per_page do %>
          Show <%= select_tag :per_page, options_for_select(['10', '20', '50', '100'], h(params[:per_page])), title: "Number of results to display per page" %> per page
        <% end %>
        <%= render_hash_as_hidden_fields search_state.params_for_search.except(:per_page, :sort) %>
        &nbsp;&nbsp;&nbsp;
        <button class="btn btn-primary"><i class="icon-refresh"></i> Refresh</button>
        <%= render 'view_type_group' %>
      <% end %>
    <% end unless sort_fields.empty? %>
   </div>
</div>

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 app/views/collections/_sort_and_per_page.html.erb
curation_concerns-1.7.7 app/views/collections/_sort_and_per_page.html.erb
curation_concerns-2.0.0 app/views/collections/_sort_and_per_page.html.erb
curation_concerns-2.0.0.rc2 app/views/collections/_sort_and_per_page.html.erb
curation_concerns-1.7.6 app/views/collections/_sort_and_per_page.html.erb
curation_concerns-1.7.5 app/views/collections/_sort_and_per_page.html.erb
curation_concerns-1.7.4 app/views/collections/_sort_and_per_page.html.erb
curation_concerns-1.7.3 app/views/collections/_sort_and_per_page.html.erb
curation_concerns-1.7.2 app/views/collections/_sort_and_per_page.html.erb
curation_concerns-2.0.0.rc1 app/views/collections/_sort_and_per_page.html.erb
curation_concerns-1.7.1 app/views/collections/_sort_and_per_page.html.erb
curation_concerns-1.7.0 app/views/collections/_sort_and_per_page.html.erb
curation_concerns-1.7.0.beta1 app/views/collections/_sort_and_per_page.html.erb
curation_concerns-1.6.3 app/views/collections/_sort_and_per_page.html.erb
curation_concerns-1.6.2 app/views/collections/_sort_and_per_page.html.erb
curation_concerns-1.6.1 app/views/collections/_sort_and_per_page.html.erb
curation_concerns-1.6.0 app/views/collections/_sort_and_per_page.html.erb
curation_concerns-1.5.0 app/views/collections/_sort_and_per_page.html.erb
curation_concerns-1.4.0 app/views/collections/_sort_and_per_page.html.erb
curation_concerns-1.3.3 app/views/collections/_sort_and_per_page.html.erb