OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/app/views/users/_global_roles.html.erb

23 lines
846 B

<% content_for :header_tags do %>
<%= javascript_include_tag 'principal_roles', :plugin => 'redmine_global_roles'%>
<% end %>
<div id="assigned_principal_roles" class="splitcontentleft">
<table id="table_principal_roles" class="list principal_roles">
<thead>
<tr>
<th><%= l(:label_role) %></th>
<%= call_hook(:view_users_global_roles_table_header, :user => @user )%>
<th style="width:15%"></th>
</tr>
</thead>
<tbody id="table_principal_roles_body">
<% @user.principal_roles.each do |principal_role| %>
<%= render :partial => 'principal_roles/show_table_row', :locals => {:principal_role => principal_role} %>
<%end%>
</tbody>
</table>
<p id="no_data" class="nodata"><%= l(:label_no_data) %></p>
</div>
<%= render :partial => 'users/available_global_roles', :locals => {:user => @user, :global_roles => @global_roles}%>