docbrown/app/views/admin/users/index.html.erb
Andy Zhao 33e9bac0f7
Filter admin users by status (#16238)
* Use correct table heading for username

* WIP add role filter and crayonsify forms

* styling

* responsive

* Add form back in that was removed by merge conflict fix

* Suggest only valid search options

* Add basic tests for search and filter by role

* Add aria for search field

Co-authored-by: Suzanne Aitchison <suzanne@forem.com>

* Add email to aria

Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>

Co-authored-by: Paweł Ludwiczak <ludwiczakpawel@gmail.com>
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>
2022-03-02 11:13:59 -05:00

33 lines
847 B
Text

<header>
<h1 class="crayons-title">People</h1>
<%= render "menu" %>
</header>
<%= paginate @users, theme: "internal" %>
<table class="crayons-table" width="100%">
<thead>
<tr>
<th scope="col">Username</th>
<th scope="col">ID</th>
<th scope="col">Name</th>
<th scope="col">Twitter</th>
<th scope="col">GitHub</th>
<th scope="col">Email</th>
</tr>
</thead>
<tbody class="crayons-card">
<% @users.each do |user| %>
<tr>
<td><%= link_to user.username, admin_user_path(user) %></td>
<td class="whitespace-nowrap"><%= user.id %></td>
<td><%= user.name %></td>
<td><%= user_twitter_link(user) %></td>
<td><%= user_github_link(user) %></td>
<td><%= user.email %></td>
</tr>
<% end %>
</tbody>
</table>
<%= paginate @users, theme: "internal" %>