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