Sha256: f8d6ddc75d68a6dd50e550b883ebea061f211f94cb87c209a4e4d8413c7d9324

Contents?: true

Size: 1.9 KB

Versions: 10

Compression:

Stored size: 1.9 KB

Contents

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

  <div class="batch-toggle">
    <% session[:batch_edit_state] = "on" %>
    <div class="button_to-inline">
      <%= button_to "Edit Selected", hyrax.edit_batch_edits_path, method: :get, class: "btn btn-update btn-primary hidden submits-batches", data: { behavior: 'batch-edit' }, id: 'batch-edit' %>
    </div>
    <% if on_my_works? %>
      <%= batch_delete %>
      <%= button_tag "Add to Collection", class: 'btn btn-primary submits-batches submits-batches-add',
          data: { toggle: "modal", target: "#collection-list-container" } %>
    <% end %>
  </div>

  <div class="sort-toggle">
    <% if @response.response['numFound'] > 1 && !sort_fields.empty? %>
      <%= form_tag search_action_for_dashboard, method: :get, class: 'per_page form-inline' do %>
            <div class="form-group">
              <fieldset class="col-xs-12">
                <legend class="sr-only"><%= t('hyrax.sort_label') %></legend>
                <%= label_tag(:sort, "<span>Sort By:</span>".html_safe) %>
                <%= select_tag(:sort, options_for_select(sort_fields, h(params[:sort]))) %>
                <%= 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, :utf8)) %>
                &nbsp;&nbsp;&nbsp;
                <button class="btn btn-info" id="dashboard_sort_submit"><span class="glyphicon glyphicon-refresh"></span>
                  Refresh
                </button>
              </fieldset>
            </div>

      <% end %>
    <% end %>
  </div>

</div>

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 app/views/hyrax/my/_sort_and_per_page.html.erb
hyrax-1.1.0 app/views/hyrax/my/_sort_and_per_page.html.erb
hyrax-1.0.5 app/views/hyrax/my/_sort_and_per_page.html.erb
hyrax-1.0.4 app/views/hyrax/my/_sort_and_per_page.html.erb
hyrax-1.0.3 app/views/hyrax/my/_sort_and_per_page.html.erb
hyrax-1.0.2 app/views/hyrax/my/_sort_and_per_page.html.erb
hyrax-1.0.1 app/views/hyrax/my/_sort_and_per_page.html.erb
hyrax-1.0.0.rc2 app/views/hyrax/my/_sort_and_per_page.html.erb
hyrax-1.0.0.rc1 app/views/hyrax/my/_sort_and_per_page.html.erb
test_hyrax-0.0.1.alpha app/views/hyrax/my/_sort_and_per_page.html.erb