From 2f75efc13e242b9fa9f771dbe33ce078c3f0bc35 Mon Sep 17 00:00:00 2001 From: Brandon Date: Fri, 1 Nov 2024 19:55:52 -0400 Subject: [PATCH] fixed visuals for pagination --- app/views/users/list.html.erb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/users/list.html.erb b/app/views/users/list.html.erb index d89a94d5f74..b3675b523ed 100644 --- a/app/views/users/list.html.erb +++ b/app/views/users/list.html.erb @@ -12,9 +12,8 @@ <%= select_tag(:search_by, options_for_select([['Username', 1], ['Full name', 2], ['Email', 3]])) %> <%= submit_tag("Search") %> - <%= label_tag :per_page, 'Users per page: ' %> - <%= select_tag(:per_page, options_for_select(@pagination_options, selected: params[:per_page] || '3')) %> - <%= submit_tag("Apply", name: nil) %> +<%= label_tag :per_page, 'Users per page: ' %> + <%= select_tag(:per_page, options_for_select(@pagination_options, selected: params[:per_page]), onchange: 'this.form.submit()') %> <% end %>