|
19 | 19 | <tr> |
20 | 20 | <th scope="col"><%= _('Name') %> <%= paginable_sort_link('users.firstname') %></th> |
21 | 21 | <th scope="col"><%= _('Email') %> <%= paginable_sort_link('users.email') %></th> |
22 | | - <th scope="col"><%= _('School or Department') %> <%= paginable_sort_link('departments.name') %></th> |
| 22 | + <th scope="col"><%= _('School or department') %> <%= paginable_sort_link('departments.name') %></th> |
23 | 23 | <th scope="col"><%= _('Organisation') %> <%= paginable_sort_link('orgs.name') %></th> |
24 | 24 | <th scope="col" class="text-center date-column"><%= _('Created date') %> <%= paginable_sort_link('users.created_at') %></th> |
25 | 25 | <th scope="col" class="text-center date-column"><%= _('Last activity') %> <%= paginable_sort_link('users.last_sign_in_at') %></th> |
26 | 26 | <th scope="col" class="text-center sorter-false"><%= _('Plans') %></th> |
27 | | - <th scope="col" class="text-center sorter-false"><%= _('Current Privileges') %></th> |
| 27 | + <th scope="col" class="text-center sorter-false"><%= _('Current privileges') %></th> |
28 | 28 | <th scope="col" class="text-center"><%= _('Active') %></th> |
| 29 | + <th scope="col" class="text-center"><%= _('Confirmed') %></th> |
29 | 30 | <th scope="col" class="text-center sorter-false"><%= _('Identifiers') %></th> |
30 | 31 | </tr> |
31 | 32 | </thead> |
|
43 | 44 | <%= user.name(false) %> |
44 | 45 | <% end %> |
45 | 46 | <% else %> |
46 | | - <%= is_super_admin ? link_to(_('Edit Profile'), edit_user_registration_path(user)) : '' %> |
| 47 | + <%= is_super_admin ? link_to(_('Edit profile'), edit_user_registration_path(user)) : '' %> |
47 | 48 | <% end %> |
48 | 49 | </td> |
49 | 50 | <td><%= user.email %></td> |
|
92 | 93 | <%= user.active? ? _('Yes') : _('No') %> |
93 | 94 | <% end %> |
94 | 95 | </td> |
| 96 | + <td class="text-center user-status"> |
| 97 | + <% if user.confirmed_at %> |
| 98 | + <%= 'Yes' %> |
| 99 | + <% else %> |
| 100 | + <%= check_box_tag "confirmed_#{user.id}", "confirmed", false, disabled: false, authenticity_token: true, class: "confirm-user", |
| 101 | + data: {remote: true, method: :put, url: confirm_user_path(user)} %> |
| 102 | + <% end %> |
| 103 | + </td> |
95 | 104 | <td class="text-center"> |
96 | 105 | <% presenter = IdentifierPresenter.new(identifiable: user) %> |
97 | 106 | <% presenter.identifiers.each do |identifier| %> |
|
0 commit comments