diff --git a/app/views/roles/_form.rhtml b/app/views/roles/_form.rhtml
index 58dc2af4..4aad4547 100644
--- a/app/views/roles/_form.rhtml
+++ b/app/views/roles/_form.rhtml
@@ -12,7 +12,7 @@
<% end %>
<%= l(:label_permissions) %>
-
+
<% perms_by_module = @permissions.group_by {|p| p.project_module.to_s} %>
<% perms_by_module.keys.sort.each do |mod| %>
<% end %>
-
<%= check_all_links 'role_form' %>
+
<%= check_all_links 'permissions' %>
<%= hidden_field_tag 'role[permissions][]', '' %>