%= error_messages_for 'member_role' %>
<%= error_messages_for 'global_role' %>
<%= f.text_field :name, :required => true %>
<%= check_box_tag "global_role"%>
<%= render :partial => "member_attributes", :locals => { :f => f, :role => member_role, :roles => member_roles }%>
<%= render :partial => "global_attributes", :locals => { :f => f, :role => global_role, :roles => global_roles }%>
<%= l(:label_permissions) %>
<%= render :partial => "permissions", :locals => {:permissions => member_permissions, :role => member_role }%>
<%= render :partial => "permissions", :locals => {:permissions => global_permissions, :role => global_role }%>