2012-02-11 18:56:18 +01:00
|
|
|
= form_for @admin_team_member, :as => :team_member, :url => admin_team_member_path(@admin_team_member) do |f|
|
2011-10-08 23:36:38 +02:00
|
|
|
-if @admin_team_member.errors.any?
|
2012-02-11 18:56:18 +01:00
|
|
|
.alert-message.block-message.error
|
2011-10-08 23:36:38 +02:00
|
|
|
%ul
|
|
|
|
- @admin_team_member.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
|
|
|
|
2012-02-11 18:56:18 +01:00
|
|
|
.clearfix
|
|
|
|
%label Project Access:
|
|
|
|
.input
|
|
|
|
= f.select :project_access, options_for_select(Project.access_options, @admin_team_member.project_access), {}, :class => "project-access-select"
|
2011-11-21 08:26:10 +01:00
|
|
|
|
|
|
|
%br
|
2011-10-08 23:36:38 +02:00
|
|
|
.actions
|
2012-02-11 18:56:18 +01:00
|
|
|
= f.submit 'Save', :class => "btn primary"
|
|
|
|
= link_to 'Cancel', :back, :class => "btn"
|
2011-11-21 08:26:10 +01:00
|
|
|
|
2011-12-07 09:04:57 +01:00
|
|
|
:css
|
|
|
|
form select {
|
|
|
|
width:300px;
|
|
|
|
}
|
|
|
|
|
2011-11-21 08:26:10 +01:00
|
|
|
:javascript
|
2011-12-07 09:04:57 +01:00
|
|
|
$('select#team_member_user_id').chosen();
|
|
|
|
$('select#team_member_project_id').chosen();
|
|
|
|
$('select#team_member_repo_access').chosen();
|
|
|
|
$('select#team_member_project_access').chosen();
|
2011-11-21 08:26:10 +01:00
|
|
|
|