diff --git a/app/views/organisation_users/admin_index.html.erb b/app/views/organisation_users/admin_index.html.erb index da08365..1418cf9 100644 --- a/app/views/organisation_users/admin_index.html.erb +++ b/app/views/organisation_users/admin_index.html.erb @@ -1,55 +1,64 @@ <%= stylesheet_link_tag "admin" %>
| <%= t('org_admin.user_full_name') %> | -<%= t('org_admin.user_name') %> | -<%= t('org_admin.last_logged_in') %> | -<%= t('org_admin.how_many_plans') %> | -<%= t('org_admin.api_privleges') %> | - -
|---|---|---|---|---|
| - <% if !user_id.user.name.nil? then%> - <%= user_id.user.name %> - <%end%> - | -- <%= user_id.user.email %> - | -- <% if !user_id.user.last_sign_in_at.nil? then%> - <%= l user_id.user.last_sign_in_at.to_date, :formats => :short %> - <%end%> - | -- <% if !user_id.user.project_groups.nil? then%> - <%= user_id.user.project_groups.count %> - <%end%> - | -- #if the organisation has any api permissions - #show tickboxes which allow for users to have api_tokens - # if the user has an api_token, the tickbox is shown as ticked - # upon hitting save, - # any user which previously had an apitoken, but no longer has a check, looses their token - # any user which perviously had no apitoken, and now has a check, gains a token, and gets sent an email - | -
| <%= t('org_admin.user_full_name') %> | +<%= t('org_admin.user_name') %> | +<%= t('org_admin.last_logged_in') %> | +<%= t('org_admin.how_many_plans') %> | + <% if current_user.organisation.token_permission_types.count > 0 %> +<%= t('org_admin.api_privleges') %> | + <% end %> +
|---|---|---|---|---|
| + <% if !user_id.user.name.nil? then%> + <%= user_id.user.name %> + <% end %> + | ++ <%= user_id.user.email %> + | ++ <% if !user_id.user.last_sign_in_at.nil? then%> + <%= l user_id.user.last_sign_in_at.to_date, :formats => :short %> + <% end %> + | ++ <% if !user_id.user.project_groups.nil? then%> + <%= user_id.user.project_groups.count %> + <% end %> + | + <% if current_user.organisation.token_permission_types.count > 0 %> ++ <%= check_box_tag "user_ids[]", user_id %> + + | + <% end %> +