Commit 9ef57e8e authored by jplang's avatar jplang

Add tooltip on Permissions report matrix (#24780).

Patch by Go MAEDA.

git-svn-id: https://svn.redmine.org/redmine/trunk@16202 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 08e1746d
......@@ -33,20 +33,23 @@
</tr>
<% end %>
<% perms_by_module[mod].each do |permission| %>
<% humanized_perm_name = l_or_humanize(permission.name, :prefix => 'permission_') %>
<tr class="<%= cycle('odd', 'even') %> permission-<%= permission.name %>">
<td class="name">
<%= link_to_function('',
"toggleCheckboxesBySelector('.permission-#{permission.name} input')",
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}",
:class => 'icon-only icon-checked') %>
<%= l_or_humanize(permission.name, :prefix => 'permission_') %>
<%= humanized_perm_name %>
</td>
<% @roles.each do |role| %>
<td>
<% if role.setable_permissions.include? permission %>
<%= check_box_tag "permissions[#{role.id}][]", permission.name, (role.permissions.include? permission.name), :id => nil, :class => "role-#{role.id}" %>
<% end %>
</td>
<% if role.setable_permissions.include? permission %>
<td title="<%= "#{humanized_perm_name} (#{role.name})" %>">
<%= check_box_tag "permissions[#{role.id}][]", permission.name, (role.permissions.include? permission.name), :id => nil, :class => "role-#{role.id}" %>
</td>
<% else %>
<td></td>
<% end %>
<% end %>
</tr>
<% end %>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment