gitlab-org--gitlab-foss/app/views/groups/_new_group_member.html.haml

20 lines
688 B
Text

= form_for @users_group, url: group_users_groups_path(@group) do |f|
%fieldset
%legend
New member(s) for
%strong #{@group.name}
group
%p 1. Choose users you want in the group
.control-group
= f.label :user_ids, "People"
.controls= users_select_tag(:user_ids, multiple: true, class: 'input-large')
%p 2. Set access level for them
.control-group
= f.label :group_access, "Group Access"
.controls= select_tag :group_access, options_for_select(UsersGroup.group_access_roles, @users_group.group_access), class: "project-access-select chosen"
.form-actions
= f.submit 'Add users into group', class: "btn btn-create"