* Display gdpr delete requests for deleted users in admin * Added a test for destroy a gdpr request * Reorganized gdpr requests menu * Update schema version * Added a link to the flash notice after user delete by admin * Fix namespace for tests * Aligh schema.rb with master * Added a missing newline * Removed unused partial * Fix typo Co-authored-by: Michael Kohl <me@citizen428.net> * Replaced string with symbols for AR Co-authored-by: Michael Kohl <me@citizen428.net> * Added an AuditLog record on gdpr delete confirmation * Make email and user_id required in Users::GdprDeleteRequest * Checked out package.json from master * Fix Gdpr => GDPR * Added missing space * Remove unneeded freeze Co-authored-by: Michael Kohl <me@citizen428.net>
27 lines
816 B
Text
27 lines
816 B
Text
<%= render "admin/users/menu" %>
|
|
|
|
<table class="crayons-table" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">User</th>
|
|
<th scope="col">ID</th>
|
|
<th scope="col">Name</th>
|
|
<th scope="col">Email</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="crayons-card">
|
|
<% @invitations.each do |user| %>
|
|
<tr>
|
|
<td><%= link_to user.username, admin_user_path(user) %></td>
|
|
<td><%= user.id %></td>
|
|
<td><%= user.name %></td>
|
|
<td><%= user.email %></td>
|
|
<h5>
|
|
<td><%= link_to "Delete", url_for(action: :destroy, id: user.id), method: :delete, data: { confirm: "Are you sure you want to delete this pending invite?" }, class: "btn btn-danger" %></td>
|
|
</h5>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<%= paginate @invitations, theme: "internal" %>
|