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

34 lines
1.1 KiB

<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2010-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
12 years ago
<%= render :partial => 'shared/global_roles_header' %>
<div id="assigned_principal_roles" class="splitcontentleft">
<table id="table_principal_roles" class="list principal_roles">
<thead>
<tr>
<th><%= Role.model_name.human %></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>
12 years ago
<%= render :partial => 'users/available_global_roles', :locals => {:user => @user, :global_roles => @global_roles}%>