gitlabhq/app/views/groups/_new_group_member.html.haml

19 lines
839 B
Plaintext
Raw Normal View History

2012-12-26 17:31:18 +01:00
= form_for @team_member, as: :team_member, url: team_members_group_path(@group) do |f|
2012-12-25 23:52:49 +01:00
%fieldset
%legend= "New Team member(s) for projects in #{@group.name}"
%h6 1. Choose people you want in the team
.clearfix
= f.label :user_ids, "People"
.input= select_tag(:user_ids, options_from_collection_for_select(User.active.alphabetically, :id, :name), {data: {placeholder: "Select users"}, class: "chosen xxlarge", multiple: true})
2012-12-25 23:52:49 +01:00
%h6 2. Set access level for them
.clearfix
= f.label :project_access, "Project Access"
.input= select_tag :project_access, options_for_select(Project.access_options, @team_member.project_access), class: "project-access-select chosen"
.form-actions
= hidden_field_tag :redirect_to, people_group_path(@group)
2013-01-29 21:18:19 +01:00
= f.submit 'Add', class: "btn btn-save"
2012-12-25 23:52:49 +01:00