<%= page_title(t('.section'), t('.page_title')) %> <%= bootstrap_form_for Spotlight::Engine.user_class.new, url: spotlight.admin_users_path do |f| %>

<%= t :'.instructions' %>

<% @site.roles.map(&:user).each do |user| %> <% end %>
<%= Spotlight::Engine.user_class.human_attribute_name(:email) %>
<%= user.email %> <%= t('.pending') %> <%= link_to(t('.destroy'), admin_user_path(user), method: :delete, class: 'btn btn-danger pull-right') unless user == current_user %>
<%= f.email_field :email, hide_label: true, data: { behavior: 'check-user-existence', 'user-exists-url': spotlight.exists_admin_users_path } %>
<%= cancel_link f.object, '#', class: 'btn btn-link', data: { behavior: 'cancel-edit' } %> <%= f.submit t('.save'), class: 'btn btn-primary'%>
<%= link_to(t('.add'), 'javascript:;', class: 'btn btn-default', data: { behavior: 'new-user' }) %>
<% end %>