]> git.openstreetmap.org Git - rails.git/blob - app/views/users/_page.html.erb
Merge remote-tracking branch 'upstream/pull/5111'
[rails.git] / app / views / users / _page.html.erb
1 <turbo-frame id="pagination" target="_top" data-turbo="false">
2   <%= form_tag do %>
3     <div class="row">
4       <div class="col">
5         <%= render "shared/pagination",
6                    :newer_key => "users.page.newer",
7                    :older_key => "users.page.older",
8                    :newer_id => @newer_users_id,
9                    :older_id => @older_users_id %>
10       </div>
11       <div class="col col-auto">
12         <%= t ".found_users", :count => @users_count %>
13       </div>
14     <div>
15
16     <%= hidden_field_tag :status, params[:status] if params[:status] %>
17     <%= hidden_field_tag :ip, params[:ip] if params[:ip] %>
18     <%= hidden_field_tag :page, params[:page] if params[:page] %>
19     <table id="user_list" class="table table-borderless table-striped">
20       <thead>
21         <tr>
22           <td colspan="2">
23           </td>
24           <td>
25             <%= check_box_tag "user_all", "1", false %>
26           </td>
27         </tr>
28       </thead>
29       <%= render @users %>
30     </table>
31
32     <div class="row">
33       <div class="col">
34         <%= render "shared/pagination",
35                    :newer_key => "users.page.newer",
36                    :older_key => "users.page.older",
37                    :newer_id => @newer_users_id,
38                    :older_id => @older_users_id %>
39       </div>
40       <div class="col col-auto">
41         <%= t ".found_users", :count => @users_count %>
42       </div>
43     <div>
44
45     <div>
46       <%= submit_tag t(".confirm"), :name => "confirm", :class => "btn btn-primary" %>
47       <%= submit_tag t(".hide"), :name => "hide", :class => "btn btn-primary" %>
48     </div>
49   <% end %>
50 </turbo-frame>