diff --git a/app/views/users/admin_index.html.erb b/app/views/users/admin_index.html.erb index 6648a31..58d8acc 100644 --- a/app/views/users/admin_index.html.erb +++ b/app/views/users/admin_index.html.erb @@ -1,7 +1,7 @@
-

<%= _('List of users') %>

-

+

<%= _('List of users') %>

+

<%= _('Below is a list of users registered for your organisation. You can sort the data by each field.')%>

@@ -9,57 +9,59 @@
- - - <% if @users.count > TABLE_FILTER_MIN_ROWS %> +
+
+ + <% if @users.count > TABLE_FILTER_MIN_ROWS %> + + + + <% end %> - + + + + + - <% end %> - - - - - - - - - - <% @users.each do |user| %> - <% if !user.nil? then%> - - + <% @users.each do |user| %> + <% if !user.nil? then%> + + + + + + - - - - - - <% end %> - <% end %> - -
+ <%= render(partial: "shared/table_filter", + locals: {path: admin_index_users_path, + placeholder: _('Filter users')}) %> +
- <%= render(partial: "shared/table_filter", - locals: {path: admin_index_users_path, - placeholder: _('Filter users')}) %> - <%= _('Name') %><%= _('Email address') %><%= _('Last logged in') %><%= _('How many plans?') %><%= _('Privileges') %>
<%= _('Name') %><%= _('Email address') %><%= _('Last logged in') %><%= _('How many plans?') %><%= _('Privileges') %>
- <% if !user.name.nil? then%> - <%= user.name(false) %> + +
+ <% if !user.name.nil? then%> + <%= user.name(false) %> + <% end %> + + <%= user.email %> + + <% if !user.last_sign_in_at.nil? then%> + <%= l user.last_sign_in_at.to_date, :formats => :short %> + <% end %> + + <% if !user.roles.nil? then%> + <%= user.roles.length %> + <% end %> + + <% unless current_user == user %> + <% b_label = _('Edit')%> + <%= link_to b_label, admin_grant_permissions_user_path(user)%> <% end %> - - <%= user.email %> - - <% if !user.last_sign_in_at.nil? then%> - <%= l user.last_sign_in_at.to_date, :formats => :short %> - <% end %> - - <% if !user.roles.nil? then%> - <%= user.roles.length %> - <% end %> - - <% unless current_user == user %> - <% b_label = _('Edit')%> - <%= link_to b_label, admin_grant_permissions_user_path(user), :class => "dmp_table_link"%> - <% end %> -
+ + + <% end %> + <% end %> + + +
\ No newline at end of file