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
|
|
|
|
2014-01-02 11:32:27 +00:00
|
|
|
= form_for @user_project_relation, as: :team_member, url: project_team_members_path(@project), html: { class: "form-horizontal users-project-form" } do |f|
|
2013-01-22 17:20:39 +00:00
|
|
|
-if @user_project_relation.errors.any?
|
2013-12-31 14:34:14 +00:00
|
|
|
.alert.alert-danger
|
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-12-30 23:27:02 +00:00
|
|
|
.form-group
|
2014-01-02 11:32:27 +00:00
|
|
|
= f.label :user_ids, "People", class: 'control-label'
|
2013-12-30 23:27:02 +00:00
|
|
|
.col-sm-10
|
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-12-30 23:27:02 +00:00
|
|
|
.form-group
|
2014-01-02 11:32:27 +00:00
|
|
|
= f.label :project_access, "Project Access", class: 'control-label'
|
2014-01-11 10:11:54 +00:00
|
|
|
.col-sm-10= select_tag :project_access, options_for_select(Gitlab::Access.options, @user_project_relation.project_access), class: "project-access-select select2"
|
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"
|