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

25 lines
886 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) do |f|
-if @user_project_relation.errors.any?
2013-01-30 14:53:18 +00:00
.alert.alert-error
%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
.control-group
= f.label :user_ids, "People"
.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
.control-group
= 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"