blob: 9140da7c43c9b3bfe45c1b431055e1639821b786 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<fieldset class="box">
<legend><%= label_tag("principal_search", l(:label_principal_search)) %></legend>
<p><%= text_field_tag('principal_search', nil) %></p>
<%= javascript_tag "observeSearchfield('principal_search', null, '#{ escape_javascript autocomplete_project_memberships_path(@project, :format => 'js') }')" %>
<div id="principals_for_new_member">
<%= render_principals_for_new_members(@project) %>
</div>
</fieldset>
<fieldset class="box">
<legend><%= l(:label_role_plural) %> <%= toggle_checkboxes_link('.roles-selection input') %></legend>
<div class="roles-selection">
<% Role.givable.all.each do |role| %>
<label><%= check_box_tag 'membership[role_ids][]', role.id, false, :id => nil %> <%= role %></label>
<% end %>
</div>
</fieldset>
|