gitlabhq/app/views/team_members/_form.html.haml

24 lines
1,016 B
Plaintext
Raw Normal View History

%h3.page_title
= "New Team member(s)"
%hr
= form_for @user_project_relation, as: :team_member, url: project_team_members_path(@project) do |f|
-if @user_project_relation.errors.any?
2013-01-30 15:53:18 +01:00
.alert.alert-error
%ul
- @user_project_relation.errors.full_messages.each do |msg|
%li= msg
%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.not_in_project(@project).alphabetically, :id, :name), {data: {placeholder: "Select users"}, class: "chosen xxlarge", multiple: true})
2012-02-15 22:51:04 +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, @user_project_relation.project_access), class: "project-access-select chosen"
2012-02-15 22:51:04 +01:00
.actions
2013-01-30 16:13:05 +01:00
= f.submit 'Add users', class: "btn btn-create"
2013-01-29 21:18:19 +01:00
= link_to "Cancel", project_team_index_path(@project), class: "btn btn-cancel"