Sha256: ee1b1493350b836a3aa48cfd298092606c35b43bea0782fb1bce6c6a100b0bf6

Contents?: true

Size: 688 Bytes

Versions: 85

Compression:

Stored size: 688 Bytes

Contents

<%= form_tag url_for, method: :get, class: 'per-page-select-form' do |f| %>
  <% search_filter_params.reject { |k, _| k == 'page' || k == 'per_page' }.each do |key, value| %>
    <% if value.is_a? Hash %>
      <% value.each do |k, v| %>
        <%= hidden_field_tag "#{key}[#{k}]", v, id: nil %>
      <% end %>
    <% else %>
      <%= hidden_field_tag key, value, id: nil %>
    <% end %>
  <% end %>
  <label>
    <%= Alchemy.t(:items_per_page, model_name: resource_model.model_name.human(count: 2)) %>
    <%= select_tag :per_page,
      options_for_select(
        items_per_page_options,
        items_per_page
      ),
      onchange: 'this.form.submit()' %>
  </label>
<% end %>

Version data entries

85 entries across 85 versions & 1 rubygems

Version Path
alchemy_cms-7.1.0.pre.b1 app/views/alchemy/admin/resources/_per_page_select.html.erb
alchemy_cms-7.0.8 app/views/alchemy/admin/resources/_per_page_select.html.erb
alchemy_cms-7.0.7 app/views/alchemy/admin/resources/_per_page_select.html.erb
alchemy_cms-7.0.6 app/views/alchemy/admin/resources/_per_page_select.html.erb
alchemy_cms-7.0.5 app/views/alchemy/admin/resources/_per_page_select.html.erb
alchemy_cms-7.0.4 app/views/alchemy/admin/resources/_per_page_select.html.erb
alchemy_cms-7.0.3 app/views/alchemy/admin/resources/_per_page_select.html.erb
alchemy_cms-6.1.9 app/views/alchemy/admin/resources/_per_page_select.html.erb
alchemy_cms-7.0.2 app/views/alchemy/admin/resources/_per_page_select.html.erb
alchemy_cms-6.1.8 app/views/alchemy/admin/resources/_per_page_select.html.erb
alchemy_cms-6.1.7 app/views/alchemy/admin/resources/_per_page_select.html.erb
alchemy_cms-7.0.1 app/views/alchemy/admin/resources/_per_page_select.html.erb
alchemy_cms-7.0.0 app/views/alchemy/admin/resources/_per_page_select.html.erb
alchemy_cms-7.0.0.pre.rc1 app/views/alchemy/admin/resources/_per_page_select.html.erb
alchemy_cms-6.1.6 app/views/alchemy/admin/resources/_per_page_select.html.erb
alchemy_cms-7.0.0.pre.c app/views/alchemy/admin/resources/_per_page_select.html.erb
alchemy_cms-7.0.0.pre.b app/views/alchemy/admin/resources/_per_page_select.html.erb
alchemy_cms-6.1.5 app/views/alchemy/admin/resources/_per_page_select.html.erb
alchemy_cms-6.0.14 app/views/alchemy/admin/resources/_per_page_select.html.erb
alchemy_cms-6.1.4 app/views/alchemy/admin/resources/_per_page_select.html.erb