gitlabhq/app/views/admin/projects/members/_form.html.haml
2013-01-30 16:53:18 +02:00

16 lines
594 B
Text

= form_for @team_member_relation, as: :team_member, url: admin_project_member_path(@project, @member) do |f|
-if @team_member_relation.errors.any?
.alert.alert-error
%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
= f.submit 'Save', class: "btn btn-primary"
= link_to 'Cancel', :back, class: "btn"