2012-09-07 08:50:35 +02:00
|
|
|
%h3.page_title
|
|
|
|
= "New Team member(s)"
|
2012-02-08 00:00:49 +01:00
|
|
|
%hr
|
2012-08-11 00:07:50 +02:00
|
|
|
= form_for @team_member, as: :team_member, url: project_team_members_path(@project, @team_member) do |f|
|
2012-01-14 18:54:41 +01:00
|
|
|
-if @team_member.errors.any?
|
2012-02-08 00:00:49 +01:00
|
|
|
.alert-message.block-message.error
|
|
|
|
%ul
|
|
|
|
- @team_member.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
|
|
|
|
2012-09-07 08:50:35 +02:00
|
|
|
%h6 1. Choose people you want in the team
|
2012-02-08 00:00:49 +01:00
|
|
|
.clearfix
|
2012-09-10 08:09:55 +02:00
|
|
|
= f.label :user_ids, "People"
|
2012-12-04 14:22:22 +01:00
|
|
|
.input= select_tag(:user_ids, options_from_collection_for_select(User.active.not_in_project(@project).all, :id, :name), {data: {placeholder: "Select users"}, class: "chosen xxlarge", multiple: true})
|
2012-02-15 22:51:04 +01:00
|
|
|
|
2012-09-07 08:50:35 +02:00
|
|
|
%h6 2. Set access level for them
|
2012-02-08 00:00:49 +01:00
|
|
|
.clearfix
|
|
|
|
= f.label :project_access, "Project Access"
|
2012-09-10 08:09:55 +02:00
|
|
|
.input= select_tag :project_access, options_for_select(Project.access_options, @team_member.project_access), class: "project-access-select chosen"
|
2012-02-15 22:51:04 +01:00
|
|
|
|
2012-02-08 00:00:49 +01:00
|
|
|
.actions
|
2012-09-07 08:50:35 +02:00
|
|
|
= f.submit 'Save', class: "btn save-btn"
|
2012-09-16 15:21:20 +02:00
|
|
|
= link_to "Cancel", project_team_index_path(@project), class: "btn cancel-btn"
|