gitlab-org--gitlab-foss/app/views/projects/team_members/_form.html.haml

25 lines
987 B
Plaintext
Raw Normal View History

%h3.page-title
2013-08-27 09:59:44 +00:00
= "New project member(s)"
2013-07-13 06:05:28 +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|
-if @user_project_relation.errors.any?
.alert.alert-danger
%ul
- @user_project_relation.errors.full_messages.each do |msg|
%li= msg
2013-08-27 09:59:44 +00:00
%p 1. Choose people you want in the project
.form-group
= f.label :user_ids, "People", class: 'control-label'
.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
.form-group
= f.label :project_access, "Project Access", class: 'control-label'
.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"