66
77< div class ="white_background ">
88 <%= form_tag ( admin_update_permissions_user_path ( @user ) , method : :put ) do %>
9- < table id ="dmp_table " class ="dmp_table tablesorter ">
9+ < table id ="dmp_table " class ="dmp_table ">
1010 < thead >
1111 < tr >
1212 <% @perms . each do |perm | %>
13- < th class ="dmp_th_medium "> <%= perm . name %> </ th >
13+ <% case perm . name when 'grant_permissions' %>
14+ < th class ="dmp_th_medium " title ="
15+ <%= _ ( 'Allows the user to assign permissions to other users within the same organisation. Users can only assign permissions they own themselves' ) %> ">
16+ <%= _ ( 'Grant permissions' ) %>
17+ </ th >
18+ <% when 'modify_templates' %>
19+ < th class ="dmp_th_medium " title ="
20+ <%= _ ( 'Allows the user to create new institutional templates, edit existing ones and customise funder templates' ) %> ">
21+ <%= _ ( 'Modify templates' ) %>
22+ </ th >
23+ <% when 'modify_guidance' %>
24+ < th class ="dmp_th_medium " title ="
25+ <%= _ ( 'Allows the user to create and edit guidance' ) %> ">
26+ <%= _ ( 'Modify guidance' ) %>
27+ </ th >
28+ <% when 'use_api' %>
29+ < th class ="dmp_th_medium " title ="
30+ <%= _ ( 'Provides the user with an API token and grants rights to harvest information from the tool' ) %> ">
31+ <%= _ ( 'API rights' ) %>
32+ </ th >
33+ <% when 'change_org_details' %>
34+ < th class ="dmp_th_medium " title ="
35+ <%= _ ( 'Allows the user to amend the organisation details (name, URL etc) and add basic branding such as the logo' ) %> ">
36+ <%= _ ( 'Change organisation details' ) %>
37+ </ th >
38+ <% end %>
1439 <% end %>
1540 </ tr >
1641 </ thead >
2651 </ table >
2752 <%= submit_tag _ ( 'Save' ) %>
2853 <% end %>
29- </ div >
54+ </ div >
0 commit comments