%= page_title(t('.page_title')) %> <%= bootstrap_form_for Spotlight::Engine.user_class.new, html: { class: 'admin-users' }, url: spotlight.admin_users_path do |f| %>
<%= Spotlight::Engine.user_class.human_attribute_name(:email) %> | |
---|---|
<%= user.email %> <%= t('.pending') %> | <%= link_to(t('.destroy'), admin_user_path(user), data: { method: :delete, turbo_method: :delete }, class: 'btn btn-sm btn-danger float-right float-end') unless user == current_user %> |
<%= f.email_field :email, hide_label: true %> |
<%= cancel_link f.object, '#', class: 'btn btn-link', role: 'button', data: { behavior: 'cancel-edit' } %>
<%= f.submit t('.save'), class: 'btn btn-primary'%>
|
<%= Spotlight::Engine.user_class.human_attribute_name(:email) %> | <%= Spotlight::Engine.user_class.human_attribute_name(:role) %> | |
---|---|---|
<%= user.email %> <%= t('.pending') %> | <%= user.roles.map { |r| r.role.titleize }.uniq.join(", ") %> | <% if user.superadmin? %> <%= link_to(t('.destroy'), admin_user_path(user), data: { method: :delete, turbo_method: :delete }, class: 'btn btn-sm btn-danger') unless user == current_user %> <% else %> <%= link_to(t('.update'), admin_user_path(user), data: { method: :patch, turbo_method: :patch }, class: 'btn btn-sm btn-secondary') %> <% end %> |