A list of all users in the system.
<% if Rails.env.development? %> Emails are being delivered using <%= email_delivery_method %> and will open in your browser. <% else %> SMTP settings are not configured. Invitation emails and other notifications will not be sent. <% end %>
<% if Rails.env.development? %> To configure SMTP for production, set environment variables like SMTP_ADDRESS, SMTP_PORT, SMTP_USERNAME, etc. <% else %> Configure SMTP settings by setting environment variables: SMTP_ADDRESS, SMTP_PORT, SMTP_USERNAME, SMTP_PASSWORD, etc. <% end %>
| Status | Role | 2FA | Groups | Actions | |
|---|---|---|---|---|---|
| <%= user.email_address %> | <% if user.status.present? %> <% case user.status.to_sym %> <% when :active %> Active <% when :disabled %> Disabled <% when :pending_invitation %> Pending <% end %> <% else %> - <% end %> | <% if user.admin? %> Admin <% else %> User <% end %> | <% if user.totp_enabled? %> <% else %> <% end %> | <%= user.groups.count %> |
<% if user.pending_invitation? %>
<%= link_to "Resend", resend_invitation_admin_user_path(user),
data: { turbo_method: :post },
class: "text-yellow-600 hover:text-yellow-900" %>
<% end %>
<%= link_to "Edit", edit_admin_user_path(user), class: "text-blue-600 hover:text-blue-900" %>
<%= link_to "Delete", admin_user_path(user),
data: { turbo_method: :delete, turbo_confirm: "Are you sure you want to delete this user?" },
class: "text-red-600 hover:text-red-900" %>
|