2013-01-21 20:55:55 +01:00
|
|
|
= form_for @team_member_relation, as: :team_member, url: admin_project_member_path(@project, @member) do |f|
|
|
|
|
-if @team_member_relation.errors.any?
|
2013-01-30 15:53:18 +01:00
|
|
|
.alert.alert-error
|
2013-01-21 20:55:55 +01:00
|
|
|
%ul
|
|
|
|
- @team_member_relation.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
|
|
|
|
|
|
|
.clearfix
|
|
|
|
%label Project Access:
|
|
|
|
.input
|
|
|
|
= f.select :project_access, options_for_select(Project.access_options, @team_member_relation.project_access), {}, class: "project-access-select chosen span3"
|
|
|
|
|
|
|
|
%br
|
|
|
|
.actions
|
2013-01-29 21:18:19 +01:00
|
|
|
= f.submit 'Save', class: "btn btn-primary"
|
2013-01-21 20:55:55 +01:00
|
|
|
= link_to 'Cancel', :back, class: "btn"
|