Skip to content

Commit

Permalink
fixed visuals for pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
brwali committed Nov 1, 2024
1 parent 33d422f commit 2f75efc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/views/users/list.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>

<div class="exp">
Expand Down

0 comments on commit 2f75efc

Please sign in to comment.