2014-12-04 19:09:10 +08:00
|
|
|
|
|
|
|
|
2014-12-03 19:17:10 +08:00
|
|
|
|
|
|
|
<ul>
|
|
|
|
|
|
|
|
<li style=" color:#8b8b8b;">分班:</li>
|
2014-12-04 19:09:10 +08:00
|
|
|
|
2014-12-03 19:17:10 +08:00
|
|
|
<li class="classbox">
|
2014-12-04 19:09:10 +08:00
|
|
|
<%= form_tag( searchgroupmembers_course_path(@course, :group_id => 0), method: 'get',:remote=>true) do %>
|
|
|
|
|
|
|
|
|
|
|
|
<%= hidden_field_tag "all", params[:group_id], name: 'all' %>
|
|
|
|
<%= submit_tag l(:label_all), :style => "background: #f8df8c; border:0px; color: black" %>
|
2014-12-03 19:17:10 +08:00
|
|
|
|
2014-12-04 19:09:10 +08:00
|
|
|
<% end %>
|
2014-12-03 19:17:10 +08:00
|
|
|
</li>
|
2014-12-04 19:09:10 +08:00
|
|
|
<% if course_groups.any? %>
|
2014-12-03 19:17:10 +08:00
|
|
|
<% course_groups.each do |group| %>
|
|
|
|
<li class="classbox" id="group_name_<%= group.id %>">
|
2014-12-04 19:09:10 +08:00
|
|
|
<%= form_tag(searchgroupmembers_course_path(@course,:group_id => group.id), method: 'get', remote: true) do %>
|
|
|
|
<%#= text_field_tag "group_id", params[:group_id] %>
|
|
|
|
<%= submit_tag group.name, :onclick => "$asign_id(#{group.id})",:style => "background: #f8df8c; border:0px; color: black; float:left;"%>
|
|
|
|
<% if @canShowCode %>
|
|
|
|
<a href="javascript:void(0)" class="f_l" onclick="$('#add_tag_<%= group.id %>').slideToggle();"><img src="/images/pic_edit.png" width="14" height="15" alt="编辑班级" /></a>
|
|
|
|
<% end %>
|
2014-12-03 19:17:10 +08:00
|
|
|
<% end %>
|
2014-12-04 19:09:10 +08:00
|
|
|
</li>
|
2014-12-03 19:17:10 +08:00
|
|
|
<li>
|
2014-12-04 19:09:10 +08:00
|
|
|
<%= form_tag(updategroupname_course_path(@course,:group_id => group.id), method: 'get', remote:true, update: 'group_name') do %>
|
2014-12-03 19:17:10 +08:00
|
|
|
<span id="add_tag_<%= group.id %>" style="display:none; vertical-align: middle;" class=" f_l">
|
2014-12-04 19:09:10 +08:00
|
|
|
<%= text_field_tag "group_name", params[:group_name], :size=>10, :class=>"isTxt w90 f_l", :style=>"padding: 0px", :max => 100 %>
|
2014-12-03 19:17:10 +08:00
|
|
|
<!--<input type="button" class="submit f_l" onclick="addTag();" style="width: 43px"/>-->
|
2014-12-04 19:09:10 +08:00
|
|
|
<%= submit_tag '', class: "submit f_l", style: "width: 43px;height: 21px;background: url(/images/btn.png) no-repeat 0 0;" %>
|
|
|
|
</span>
|
2014-12-03 19:17:10 +08:00
|
|
|
<% end %>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
2014-12-04 19:09:10 +08:00
|
|
|
<% end %>
|
2014-12-03 19:17:10 +08:00
|
|
|
<li style="margin-left:15px;">
|
|
|
|
<a href="javascript:void(0)" class="st_add f_l" onclick="$('#add_tag04').slideToggle();">+添加分班</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
2014-12-04 19:09:10 +08:00
|
|
|
<span id="add_tag04" style="display:none; vertical-align: middle;" class="ml10 f_l">
|
|
|
|
<%= form_tag( addgroups_course_path(@course), method: 'get',:remote=>true) do %>
|
|
|
|
|
|
|
|
<%= text_field_tag "group_name", params[:group_name], size: "20", class: "isTxt w90 f_l", style: "padding: 0px", maxlength: "100" %>
|
|
|
|
<%= submit_tag '', class: "submit f_l", style: "width: 43px;height: 21px;background: url(/images/btn.png) no-repeat 0 0;" %>
|
|
|
|
<%= link_to_function '', "$('#add_tag04').slideToggle();", class: "submit_2", style: "width: 43px"%>
|
2014-12-03 19:17:10 +08:00
|
|
|
|
2014-12-04 19:09:10 +08:00
|
|
|
<% end %>
|
|
|
|
</span>
|
|
|
|
</li>
|
2014-12-03 19:17:10 +08:00
|
|
|
</ul>
|
2014-12-04 22:02:10 +08:00
|
|
|
|
|
|
|
|
2014-12-03 19:17:10 +08:00
|
|
|
|