4d89322d67
Project - restyled show page, removed info page Repository - restyled show page, added download option Tags - added download options
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
%h3= "New Team member"
|
|
%hr
|
|
= form_for @team_member, :as => :team_member, :url => project_team_members_path(@project, @team_member) do |f|
|
|
-if @team_member.errors.any?
|
|
.alert-message.block-message.error
|
|
%ul
|
|
- @team_member.errors.full_messages.each do |msg|
|
|
%li= msg
|
|
|
|
.clearfix
|
|
= f.label :user_id, "Name"
|
|
.input= f.select(:user_id, User.not_in_project(@project).all.collect {|p| [ p.name, p.id ] }, { :include_blank => "Select user" }, { :style => "width:300px" })
|
|
|
|
.clearfix
|
|
= f.label :project_access, "Project Access"
|
|
.input= f.select :project_access, options_for_select(Project.access_options, @team_member.project_access), {}, :class => "project-access-select"
|
|
|
|
.clearfix
|
|
= f.label :repo_access, "Repository Access"
|
|
.input= f.select :repo_access, options_for_select(Repository.access_options, @team_member.repo_access), {}, :class => "repo-access-select"
|
|
|
|
.actions
|
|
= f.submit 'Save', :class => "btn primary"
|
|
= link_to "Cancel", team_project_path(@project), :class => "btn"
|
|
|
|
:css
|
|
form select {
|
|
width:300px;
|
|
}
|
|
|
|
:javascript
|
|
$('select#team_member_user_id').chosen();
|
|
$('select#team_member_repo_access').chosen();
|
|
$('select#team_member_project_access').chosen();
|