% content_for :secondary do %>
Member Setup
- <%= link_to content_tag(:span, t('admin.list_users')), admin_users_path %>
- <%= link_to content_tag(:span, t('admin.list_user_roles')), admin_user_role_models_path %>
<% end -%>
<%= flash_messages %>
<%= link_to t('admin.new_user'), new_admin_user_path %>
-
Roles
Name
Email
Admin
Action
<% @users.each do |user| %>
-
<%= user.get_roles %>
<%= user.name ? user.name : 'bob' %>
<%= user.email %>
<%= user.admin ? t(:yes_) : t(:no_) %>
<%= link_to t(:show), admin_user_path(user), :class => 'show' %>
<%= link_to t(:edit), edit_admin_user_path(user), :class => 'edit' %>
<%= link_to t(:delete), admin_user_path(user), :class => 'delete', :confirm => t('sure?'), :method => :delete %>
<% end %>
<%= link_to t('admin.new_user'), new_admin_user_path %>