diff --git a/app/helpers/watchers_helper.rb b/app/helpers/watchers_helper.rb
index b05e0b286..793581664 100644
--- a/app/helpers/watchers_helper.rb
+++ b/app/helpers/watchers_helper.rb
@@ -251,6 +251,7 @@ module WatchersHelper
end
def exit_project_link(project)
- link_to("退出项目",exit_cur_project_path(project.id),:remote => true )
+ link_to(l(:label_exit_project),exit_cur_project_path(project.id),
+ :remote => true, :confirm => l(:lable_sure_exit_project) )
end
end
diff --git a/app/views/courses/settings/_members.html.erb b/app/views/courses/settings/_members.html.erb
index d0c77ae83..a62a9c613 100644
--- a/app/views/courses/settings/_members.html.erb
+++ b/app/views/courses/settings/_members.html.erb
@@ -20,26 +20,34 @@
<% 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 => membership_path(member),
- :method => :put,
- :html => {:id => "member-#{member.id}-roles-form", :class => 'hol'}}
+
+ <%= 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'}}
) 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 %>
|
@@ -71,8 +79,10 @@
<%= form_for(@member, {:as => :membership, :url => course_memberships_path(@course), :remote => true, :method => :post}) do |f| %>