2012-01-14 22:46:06 +01: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
|
|
|
%div
|
|
|
|
%span.entity-info
|
|
|
|
- if request.xhr?
|
2012-01-14 22:46:06 +01:00
|
|
|
= link_to project_team_members_path(@project) do
|
2012-01-14 18:54:41 +01:00
|
|
|
.entity-button
|
|
|
|
Team List
|
|
|
|
%i
|
|
|
|
%h2= "New Team member"
|
2011-10-08 23:36:38 +02:00
|
|
|
|
2012-01-14 18:54:41 +01:00
|
|
|
%hr
|
|
|
|
-if @team_member.errors.any?
|
|
|
|
%ul
|
|
|
|
- @team_member.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
2011-12-07 09:04:57 +01:00
|
|
|
|
2012-01-14 18:54:41 +01:00
|
|
|
.span-6.append-bottom
|
|
|
|
%b Name
|
|
|
|
.span-6
|
|
|
|
= f.select(:user_id, User.not_in_project(@project).all.collect {|p| [ p.name, p.id ] }, { :include_blank => "Select user" }, { :style => "width:300px" })
|
|
|
|
.span-6
|
|
|
|
%b Project Access:
|
|
|
|
.span-6
|
|
|
|
= f.select :project_access, options_for_select(Project.access_options, @team_member.project_access), {}, :class => "project-access-select"
|
|
|
|
|
|
|
|
.span-6
|
|
|
|
%b Repository Access:
|
|
|
|
.span-6
|
|
|
|
= f.select :repo_access, options_for_select(Repository.access_options, @team_member.repo_access), {}, :class => "repo-access-select"
|
|
|
|
%br
|
|
|
|
.merge-tabs
|
|
|
|
= f.submit 'Save', :class => "grey-button"
|
2011-12-07 09:04:57 +01:00
|
|
|
|