diff options
Diffstat (limited to 'app/views/members/_new_form.html.erb')
-rw-r--r-- | app/views/members/_new_form.html.erb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/views/members/_new_form.html.erb b/app/views/members/_new_form.html.erb new file mode 100644 index 000000000..9140da7c4 --- /dev/null +++ b/app/views/members/_new_form.html.erb @@ -0,0 +1,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> |