socialforge/app/views/courses/_course_student.html.erb

23 lines
1.0 KiB
Plaintext
Raw Normal View History

2015-03-25 16:21:47 +08:00
<div class="st_list">
<div class="st_search">
2015-03-25 19:25:17 +08:00
<%= form_tag( searchmembers_course_path(@course), method: 'get',:class => "f_l",:remote=>true,:id => "search_student") do %>
<%= text_field_tag 'name', params[:name], name: "name", :class => 'st_search_input', :placeholder => '输入学生姓名、学号进行搜索'%>
<% if @group %>
<%= hidden_field "search_group_id", params[:search_group_id],:value => "#{@group.id}", name: 'search_group_id' %>
<input type="hidden" name="ingroup">
<% else %>
<input type="hidden" name="incourse">
<% end %>
<% end %>
<a href="javascript:" class="f_l" onclick="$('#search_student').submit();">搜索</a>
2015-03-25 16:21:47 +08:00
</div>
<div class="cl"></div>
2015-03-25 19:25:17 +08:00
2015-03-25 16:21:47 +08:00
<div class="st_addclass">
2015-03-25 19:25:17 +08:00
<%= render :partial => 'new_groups_name', :locals => {:course_groups => @course_groups} %>
2015-03-25 16:21:47 +08:00
</div>
<div class="cl"></div>
2015-03-25 19:25:17 +08:00
2015-03-25 20:13:48 +08:00
<%= render :partial => 'new_member_list', :locals => {:members => members} %>
2015-03-25 16:21:47 +08:00
</div> <!-- st_list end-->
<div class="cl"></div>