2013-07-13 05:45:48 +00:00
|
|
|
%h3.page-title
|
2013-08-27 09:59:44 +00:00
|
|
|
= "New project member(s)"
|
2013-07-13 06:05:28 +00:00
|
|
|
|
2013-01-22 17:20:39 +00:00
|
|
|
= 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 14:53:18 +00:00
|
|
|
.alert.alert-error
|
2012-02-07 23:00:49 +00:00
|
|
|
%ul
|
2013-01-22 17:20:39 +00:00
|
|
|
- @user_project_relation.errors.full_messages.each do |msg|
|
2012-02-07 23:00:49 +00:00
|
|
|
%li= msg
|
|
|
|
|
2013-08-27 09:59:44 +00:00
|
|
|
%p 1. Choose people you want in the project
|
2013-08-07 20:30:40 +00:00
|
|
|
.control-group
|
2012-09-10 06:09:55 +00:00
|
|
|
= f.label :user_ids, "People"
|
2013-08-07 20:30:40 +00:00
|
|
|
.controls
|
2013-03-13 20:32:04 +00:00
|
|
|
= users_select_tag(:user_ids, multiple: true)
|
2012-02-15 21:51:04 +00:00
|
|
|
|
2013-08-27 09:59:44 +00:00
|
|
|
%p 2. Set access level for them
|
2013-08-07 20:30:40 +00:00
|
|
|
.control-group
|
2012-02-07 23:00:49 +00:00
|
|
|
= f.label :project_access, "Project Access"
|
2013-08-20 12:59:45 +00:00
|
|
|
.controls= select_tag :project_access, options_for_select(Gitlab::Access.options, @user_project_relation.project_access), class: "project-access-select chosen"
|
2012-02-15 21:51:04 +00:00
|
|
|
|
2013-08-07 20:35:24 +00:00
|
|
|
.form-actions
|
2013-01-30 15:13:05 +00:00
|
|
|
= f.submit 'Add users', class: "btn btn-create"
|
2013-01-29 20:18:19 +00:00
|
|
|
= link_to "Cancel", project_team_index_path(@project), class: "btn btn-cancel"
|