- 分班:
-
<%= link_to l(:label_all), searchgroupmembers_course_path(@course,:group_id => 0), :onclick => "checkclass('course_group_0')", method: 'get', remote: true%>
-
<%= link_to "未分班", searchgroupmembers_course_path(@course,:group_id => -1), :onclick => "checkclass('course_group_0')", method: 'get', remote: true, :class => 'fl mr5'%>
(<%=@no_group_count %>人)
<% unless course_groups.nil? %>
<% course_groups.each do |group| %>
<%# group_name = " #{ group.name}( #{group.members.count.to_s}人)".html_safe %>
-
<%= link_to group.name, searchgroupmembers_course_path(@course,:group_id => group.id), class: 'fl mr5', method: 'get', remote: true,:onclick => "checkclass('group_name_#{group.id}')"%>
(<%=group.members.count.to_s %>人)
<% if @canShowCode%>
<% if group.members.empty?%>
<%= link_to '', deletegroup_course_path(:group_id => group.id), :method => 'delete', :remote => true,
:data => {confirm: l(:label_delete_group)},
:class => 'sy_icons_del fl'
%>
<% else%>
<% end%>
<% end %>
<% end %>
<% if @canShowCode%>
-
<%= form_tag(updategroupname_course_path(@course), method: 'get', remote:true, :id => 'update_group_form') do %>
确定
取消
<% end %>
<% end %>
<% end %>