<% content_for :header_tags do %> <%= javascript_include_tag 'principal_roles', :plugin => 'redmine_global_roles'%> <% end %>
<%= call_hook(:view_users_global_roles_table_header, :user => @user )%> <% @user.principal_roles.each do |principal_role| %> <%= render :partial => 'principal_roles/show_table_row', :locals => {:principal_role => principal_role} %> <%end%>
<%= l(:label_role) %>

<%= l(:label_no_data) %>

<%= l(:label_role_plural) %> <% remote_form_for(:principal_roles, :url => principal_roles_url, :method => :post) do %> <%= hidden_field_tag 'principal_role[principal_id]', @user.id %> <% @global_roles.each do |role| %>
<%= check_box_tag 'principal_role[role_ids][]', role.id, false, :id => "principal_role_role_ids_#{role.id}" %><%= label_tag "principal_role_role_ids_#{role.id}", h(role) %>
<% end %>

<%= submit_tag l(:button_add) %>

<% end %>