gitlabhq/app/views/team_members/_form.html.haml

25 lines
926 B
Text
Raw Normal View History

2011-10-08 23:36:38 +02:00
%div
= form_for @team_member, :as => :team_member, :url => project_team_members_path(@project, @team_member), :remote => "true" do |f|
-if @team_member.errors.any?
%ul
- @team_member.errors.full_messages.each do |msg|
%li= msg
.span-6.append-bottom
%b Name
.span-6
2011-11-30 22:41:00 +01:00
= f.select(:user_id, User.not_in_project(@project).all.collect {|p| [ p.name, p.id ] }, { :include_blank => "Select user" }, { :style => "width:300px" })
2011-10-08 23:36:38 +02:00
.span-6
2011-12-07 09:04:57 +01:00
%b Project Access:
2011-10-08 23:36:38 +02:00
.span-6
2011-12-07 09:04:57 +01:00
= f.select :project_access, options_for_select(Project.access_options, @team_member.project_access), {}, :class => "project-access-select"
2011-10-08 23:36:38 +02:00
.span-6
2011-12-07 09:04:57 +01:00
%b Repository Access:
.span-6
= f.select :repo_access, options_for_select(Repository.access_options, @team_member.repo_access), {}, :class => "repo-access-select"
%br
2011-10-08 23:36:38 +02:00
.span-6
= f.submit 'Save', :class => "grey-button"
2011-12-07 09:04:57 +01:00