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