<%= l(:label_invite_trustie_user) %>
<% if roles.any? %>
<%= form_for(@member, {:as => :membership, :url => project_memberships_path(@project), :method => :post}) do |f| %>
>
搜索
<%= javascript_tag "observeSearchfield('principal_search', null, '#{ escape_javascript autocomplete_project_memberships_path(@project, :format => 'js',:flag => true) }')" %>
<%= render_project_members(@project) %>
-
<%= l(:label_role_plural) %>:
<% roles.each do |role| %>
-
<%= check_box_tag 'membership[role_ids][]', role.id %>
<% if User.current.language == "zh" %>
<% if role.id == 3 %>
<% elsif role.id == 4 %>
<% else %>
<% end %>
<% else %>
<% end %>
<% end %>
<%= l(:label_invite_members)%>
<% end %>
<% end %>