Sha256: ce25bcd76a54985c1d811179bbce9727b3431e08af97eae25785da480d1315a8

Contents?: true

Size: 557 Bytes

Versions: 3

Compression:

Stored size: 557 Bytes

Contents

<div id="pagination_form">
  <%= form_tag do %>
    <div class="filter_form_field filter_string select_and_search">
      <%= label_tag :per_page, "Number of Items per page:", class: "label" %>
      <%= select_tag :per_page, options_for_select([10, 50, 100], params[:per_page]), include_blank: true %>
    </div>
    <div class="buttons">
      <%= submit_tag "Set" %>
    </div>
  <% end %>
</div>

<script>
  $("#pagination_form form").submit(function(e){
    e.preventDefault();
    window.location = "?per_page=" + $("#per_page").val();
  })
</script>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
active_admin_pagination-0.2.1 app/views/active_admin/base/_paginate.html.erb
active_admin_pagination-0.2.0 app/views/active_admin/base/_paginate.html.erb
active_admin_pagination-0.1.0 app/views/active_admin/base/_paginate.html.erb