<%= flash_messages %>
<%= link_to t('admin.new_user'), new_admin_user_path, :class => 'new' %>
<%= t('admin.role') %> |
<%= t('admin.name') %> |
<%= t('admin.email') %> |
<%= t('admin.admin') %> |
<%= t('admin.action') %> |
<% @users.each do |user| %>
<% active_role = UserRoleModel.get_role_model_from_key(user.active_role) %>
<%= active_role.i18n_variable[I18n.locale] rescue nil %> |
<%= 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, :class => 'new' %>