Sha256: b719730a9f85d725d2c72101e6e0662a6aa59c041956b3c27859e008bb914645

Contents?: true

Size: 1.72 KB

Versions: 13

Compression:

Stored size: 1.72 KB

Contents

<%#
Copyright © 2012 The Pennsylvania State University

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
%>

<div class="batch-info"> 
   <% session[:batch_edit_state] = "on" %>
    <%=batch_delete%> <%=batch_edit_continue("Edit Selected") %>   
	<% unless @response.response['numFound'] < 2 %>
	  <%-# 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 -%>
    <%= form_tag params[:controller] == "folder" ? sufia.folder_index_path : sufia.dashboard_index_path, :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])), :class => "span15") %>			      
      &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", :class => "span10") %> per page
        <% end %>
        <%= search_as_hidden_fields(:omit_keys => [:per_page, :sort]) %>
        &nbsp;&nbsp;&nbsp;
        <button class="btn btn-primary"><i class="icon-refresh"></i> Update</button>
		<% end unless sort_fields.empty? %>
  <% end %>
</div>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sufia-1.3.0 app/views/dashboard/_sort_and_per_page.html.erb
sufia-1.2.0 app/views/dashboard/_sort_and_per_page.html.erb
sufia-1.1.0 app/views/dashboard/_sort_and_per_page.html.erb
sufia-1.0.0 app/views/dashboard/_sort_and_per_page.html.erb
sufia-0.1.0 app/views/dashboard/_sort_and_per_page.html.erb
sufia-0.0.8 app/views/dashboard/_sort_and_per_page.html.erb
sufia-0.0.7 app/views/dashboard/_sort_and_per_page.html.erb
sufia-0.0.6 app/views/dashboard/_sort_and_per_page.html.erb
sufia-0.0.5 app/views/dashboard/_sort_and_per_page.html.erb
sufia-0.0.4 app/views/dashboard/_sort_and_per_page.html.erb
sufia-0.0.3 app/views/dashboard/_sort_and_per_page.html.erb
sufia-0.0.2 app/views/dashboard/_sort_and_per_page.html.erb
sufia-0.0.1 app/views/dashboard/_sort_and_per_page.html.erb