<%=l(:label_permissions)%> | <% @roles.each do |role| %><%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %> | <% end %>
---|---|
<%= permission.name.to_s.humanize %> | <% @roles.each do |role| %><% if role.setable_permissions.include? permission %> <%= check_box_tag "permissions[#{role.id}][]", permission.name, (role.permissions.include? permission.name) %> <% end %> | <% end %>
<%= check_all_links 'permissions_form' %>
<%= submit_tag l(:button_save) %>
<% end %>