diff --git a/app/views/courses/settings/_members.html.erb b/app/views/courses/settings/_members.html.erb index e73e9cf7b..c76f1c48e 100644 --- a/app/views/courses/settings/_members.html.erb +++ b/app/views/courses/settings/_members.html.erb @@ -20,8 +20,10 @@ <% 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(', ') %> @@ -31,9 +33,14 @@ ) do |f| %>

<% roles.each do |role| %> -
- <% end %>

+ +
+ <% end %> +

<%= hidden_field_tag 'membership[role_ids][]', '' %>

<%= submit_tag l(:button_change), :class => "small" %> <%= link_to_function l(:button_cancel), @@ -43,7 +50,9 @@ <% if member.roles.first.to_s == "Manager" %> - + + + <% else %> <%= link_to_function l(:button_edit), @@ -61,7 +70,9 @@ <% else %> -

<%= l(:label_no_data) %>

+

+ <%= l(:label_no_data) %> +

<% end %> @@ -69,9 +80,14 @@ <% if roles.any? %> <%= form_for(@member, {:as => :membership, :url => course_memberships_path(@course), :remote => true, :method => :post}) do |f| %>
- <%= l(:label_member_new) %> + + <%= 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') }')" %>
@@ -83,13 +99,22 @@ <% roles.each do |role| %> <% if role.id == 10 %> - + <% else %> - + <% end %> - <% end %>

+ <% end %> +

-

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

+

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

<% end %> <% end %>