<%= f.text_field :name, :required => true %>
<%= f.check_box :assignable %>
<%=l(:label_permissions)%>
<% permissions = @permissions.group_by {|p| p.group_id } %>
<% permissions.keys.sort.each do |group_id| %>
<% end %>
<%= check_all_links 'role_form' %>