Sha256: 8bdddb69786684374061688381043a7dcf0805687aece03c888da211c20d890d

Contents?: true

Size: 1.56 KB

Versions: 33

Compression:

Stored size: 1.56 KB

Contents

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

  <% if params[:action] == "edit" && show_sort_and_per_page? %>
    <div class="batch-toggle">
      <% session[:batch_edit_state] = "on" %>
      <%= button_for_remove_selected_from_collection collection %>
    </div>
  <% end %>

  <% if show_sort_and_per_page? && active_sort_fields.many? %>
    <div class="sort-toggle">
      <%= form_tag dashboard_collection_path(collection), method: :get, class: 'per_page form-horizontal' do %>
         <div class="form-group form-group-lg">
           <fieldset class="col-sm-9">
             <legend class="sr-only"><%= t('hyrax.sort_label') %></legend>
             <%= label_tag(:sort, 'Sort By:') %>
             <%= select_tag(:sort, options_from_collection_for_select(active_sort_fields, 'first', lambda {|field| field.last.label}, h(params[:sort]))) %>
             <%= label_tag(:per_page) do %>
                 Show <%= select_tag(:per_page, options_for_select(['10', '20', '50', '100'], params[:per_page]), title: t('hyrax.dashboard.my.sr.results_per_page')) %>
                 per page
             <% end %>
             <%= render_hash_as_hidden_fields(search_state.params_for_search.except(:per_page, :sort)) %>
             <button class="btn btn-info"><span class="glyphicon glyphicon-refresh"></span> <%= t('helpers.action.refresh') %></button>
           </fieldset>
           <div class="col-sm-3">
             <%= render 'view_type_group' %>
           </div>
         </div>
       <% end %>
    </div>
  <% end %>
</div>

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb
hyrax-2.9.5 app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb
hyrax-2.9.4 app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb
hyrax-2.9.3 app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb
hyrax-2.9.2 app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb
hyrax-2.9.1 app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb
hyrax-2.9.0 app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb
hyrax-2.8.0 app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb
hyrax-2.7.2 app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb
hyrax-2.7.1 app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb
hyrax-2.7.0 app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb
hyrax-2.6.0 app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb
hyrax-2.5.1 app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb
hyrax-2.5.0 app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb
hyrax-3.0.0.pre.beta2 app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb
hyrax-2.4.1 app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb
hyrax-3.0.0.pre.beta1 app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb
hyrax-2.4.0 app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb
hyrax-2.3.3 app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb
hyrax-2.3.2 app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb