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/principal_roles/_show_table_row.html.erb

16 lines
704 B

<tr id="principal_role-<%= principal_role.id %>">
<td class="role assigned_global_role_<%= principal_role.role_id%>">
<%=h principal_role.role %>
</td>
<%= call_hook(:principal_roles_table_row, :user => @user, :principal_role => principal_role )%>
<td class="buttons">
<% buttons = {:edit => false} %>
<%= call_hook(:principal_roles_edit_button_needed, :buttons => buttons) %>
<% if buttons[:edit]%>
<%= link_to_function l(:button_edit), "return false;", :class => 'icon icon-edit' %>
<%end%>
<%= link_to_remote(l(:button_delete), { :url => principal_role_url(principal_role.id),
:method => :delete },
:class => 'icon icon-del') %>
</td>
</tr>