diff --git a/app/views/courses/settings/_members.html.erb b/app/views/courses/settings/_members.html.erb
index 1d8b059c7..f685e4543 100644
--- a/app/views/courses/settings/_members.html.erb
+++ b/app/views/courses/settings/_members.html.erb
@@ -20,34 +20,25 @@
<% members.each do |member| %>
<% next if member.new_record? %>
-
- <%= link_to_user member.principal %>
- |
+ <%= link_to_user member.principal %> |
<%= h member.roles.sort.collect(&:to_s).join(', ') %>
- <%= form_for(member, {:as => :membership, :remote => true,
- :url => course_memberships_path(member),:method => :put,
- :html => {:id => "member-#{member.id}-roles-form",
- :class => 'hol'}}
+ <%= form_for(member, {:as => :membership, :remote => true, :url => membership_path(member),
+ :method => :put,
+ :html => {:id => "member-#{member.id}-roles-form", :class => 'hol'}}
) do |f| %>
<% roles.each do |role| %>
-
-
- <% end %>
-
+
+ <% end %>
<%= hidden_field_tag 'membership[role_ids][]', '' %>
-
- <%= submit_tag l(:button_change), :class => "small" %>
+ <%= submit_tag l(:button_change), :class => "small" %>
<%= link_to_function l(:button_cancel),
"$('#member-#{member.id}-roles').show(); $('#member-#{member.id}-roles-form').hide(); return false;"
- %>
-
+ %>
<% end %>
|
@@ -79,10 +70,8 @@
<%= form_for(@member, {:as => :membership, :url => course_memberships_path(@course), :remote => true, :method => :post}) do |f| %>