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

35 lines
1.2 KiB

<% content_for :header_tags do %>
<%= javascript_include_tag 'principal_roles', :plugin => 'redmine_global_roles'%>
<% end %>
<div class="splitcontentleft">
<table id="table_principal_roles" class="list">
<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>
<div class="splitcontentright" id="available_principal_roles">
<fieldset><legend><%= l(:label_role_plural) %></legend>
<% remote_form_for(:principal_roles, :url => principal_roles_url, :method => :post) do %>
<%= hidden_field_tag 'principal_role[principal_id]', @user.id %>
<% available_additional_principal_roles(@global_roles, @user).each do |role| %>
<%= render :partial => 'users/available_global_role', :locals => {:role => role} %>
<% end %>
<p><%= submit_tag l(:button_add) %></p>
<% end %>
</fieldset>
</div>