1. Choose permission to change

<%= select_tag :privilege, options_for_select(@privileges.map(&:to_s).sort, @privilege.to_s) %>
<%= select_tag :context, options_for_select(@contexts.map(&:to_s).sort, @context.to_s) %>
<%= link_to_function "Current permissions", "show_current_permissions()", :class => 'unimportant' %>

2. Whose permission should be changed?

<% @users.each do |user| %> <% end %>
User Current roles ? Yes No
<%=h user.id %> <%=h user.login %> <%=h user.role_symbols * ', ' %> <%= radio_button_tag "user[#{user.id}][permission]", "undetermined", true %> <%= radio_button_tag "user[#{user.id}][permission]", "yes" %> <%= radio_button_tag "user[#{user.id}][permission]", "no" %>
    Current permission

Prohibited actions

<%= button_to_function "Suggest Changes", "suggest_changes()" %>