Sha256: 6ee4e3a56ea96c5cf7fafbac624c6fbf5652be032f1ebd657311b120a4e104fc

Contents?: true

Size: 1.44 KB

Versions: 12

Compression:

Stored size: 1.44 KB

Contents

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

  <% if  params[:action] == "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 collections.collection_path(@collection.noid), method: :get, class: 'per_page form-inline' do %>
          <%= label_tag(:sort, "<span>Sort By:</span>".html_safe) %>
          <%= 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(params_for_search.except(:per_page, :sort)) %>
            &nbsp;&nbsp;&nbsp;
            <button class="btn btn-primary"><i class="glyphicon glyphicon-refresh"></i> Refresh</button>
            <%= render 'view_type_group' %>
         <% end %>
      <% end unless sort_fields.empty? %>
   </div>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
sufia-5.0.0 app/views/collections/_sort_and_per_page.html.erb
sufia-5.0.0.rc1 app/views/collections/_sort_and_per_page.html.erb
sufia-6.0.0.rc2 app/views/collections/_sort_and_per_page.html.erb
sufia-6.0.0.rc1 app/views/collections/_sort_and_per_page.html.erb
sufia-4.3.1 app/views/collections/_sort_and_per_page.html.erb
sufia-6.0.0.beta1 app/views/collections/_sort_and_per_page.html.erb
sufia-4.2.0 app/views/collections/_sort_and_per_page.html.erb
sufia-4.1.0 app/views/collections/_sort_and_per_page.html.erb
sufia-4.0.1 app/views/collections/_sort_and_per_page.html.erb
sufia-4.0.0 app/views/collections/_sort_and_per_page.html.erb
sufia-4.0.0.rc2 app/views/collections/_sort_and_per_page.html.erb
sufia-4.0.0.rc1 app/views/collections/_sort_and_per_page.html.erb