2013-01-22 23:20:27 +01:00
|
|
|
= form_tag admin_team_member_path(@team, @member), method: :put do
|
|
|
|
-if @member.errors.any?
|
2013-01-19 18:47:08 +01:00
|
|
|
.alert-message.block-message.error
|
|
|
|
%ul
|
2013-01-22 23:20:27 +01:00
|
|
|
- @member.errors.full_messages.each do |msg|
|
2013-01-19 18:47:08 +01:00
|
|
|
%li= msg
|
|
|
|
|
|
|
|
.clearfix
|
2013-01-22 23:20:27 +01:00
|
|
|
%label Default access for Team projects:
|
|
|
|
.input
|
|
|
|
= select_tag :default_project_access, options_for_select(UserTeam.access_roles, @team.default_projects_access(@member)), class: "project-access-select chosen span3"
|
2013-01-19 18:47:08 +01:00
|
|
|
.clearfix
|
2013-01-22 23:20:27 +01:00
|
|
|
%label Team admin?
|
|
|
|
.input
|
|
|
|
= check_box_tag :group_admin, true, @team.admin?(@member)
|
2013-01-19 18:47:08 +01:00
|
|
|
|
2013-01-22 23:20:27 +01:00
|
|
|
%br
|
2013-01-19 18:47:08 +01:00
|
|
|
.actions
|
2013-01-22 23:20:27 +01:00
|
|
|
= submit_tag 'Save', class: "btn primary"
|
|
|
|
= link_to 'Cancel', :back, class: "btn"
|