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| %>
<%= l(:label_member_new) %> -

- <%= label_tag "principal_search", l(:label_principal_search) %> - <%= text_field_tag 'principal_search', nil %> -

+ +

<%= label_tag "principal_search", l(:label_principal_search) %><%= text_field_tag 'principal_search', nil %>

<%= javascript_tag "observeSearchfield('principal_search', null, '#{ escape_javascript autocomplete_course_memberships_path(@course, :format => 'js') }')" %>
@@ -92,12 +81,10 @@

<%= l(:label_role_plural) %>: <% roles.each do |role| %> - - <% end %> -

+ + + <% end %>

+

<%= submit_tag l(:button_add), :id => 'member-add-submit' %>

<% end %>