2015-11-13 17:23:52 +08:00
|
|
|
|
<div class="polls_head">
|
|
|
|
|
<h2>所有试卷
|
|
|
|
|
<span>(<%= @obj_count%>)</span>
|
|
|
|
|
</h2>
|
|
|
|
|
<% if @is_teacher%>
|
|
|
|
|
<%#= link_to "导入", other_poll_poll_index_path(:polls_group_id => @course.id), :remote=>true,:class => "newbtn"%>
|
|
|
|
|
<%= link_to "新建试卷 ", new_exercise_path(:course_id => @course.id), :class => "newbtn" %>
|
|
|
|
|
<% end%>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<div id="polls_list" class="polls_list">
|
|
|
|
|
|
|
|
|
|
<% @exercises.each do |exercise|%>
|
2015-11-20 20:44:27 +08:00
|
|
|
|
<ul id="exercises_<%= exercise.id %>" class="polls_list_ul">
|
2015-11-13 17:23:52 +08:00
|
|
|
|
<%= render :partial => 'exercise', :locals => {:exercise => exercise} %>
|
|
|
|
|
</ul>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<% end%>
|
|
|
|
|
|
|
|
|
|
<ul class="wlist">
|
|
|
|
|
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false, :remote => false, :flag => true%>
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div><!--列表end-->
|