2015-01-13 15:59:02 +08:00
|
|
|
|
<%= stylesheet_link_tag 'polls', :media => 'all' %>
|
2015-01-13 16:58:44 +08:00
|
|
|
|
<div class="polls_content" id="polls" style="width:677px;">
|
2015-01-12 17:25:48 +08:00
|
|
|
|
<div class="polls_head">
|
|
|
|
|
<h2>所有问卷
|
2015-01-13 11:54:07 +08:00
|
|
|
|
<span>(<%= @obj_count%>)</span>
|
2015-01-12 17:25:48 +08:00
|
|
|
|
</h2>
|
2015-01-13 11:54:07 +08:00
|
|
|
|
<% if @is_teacher%>
|
|
|
|
|
<%= link_to l(:label_new_poll), new_poll_path(:polls_type => "Course",:polls_group_id => @course.id), :class => "newbtn" %>
|
|
|
|
|
<% end%>
|
2015-01-12 17:25:48 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<div class="polls_list">
|
|
|
|
|
<% @polls.each do |poll|%>
|
2015-01-17 13:30:50 +08:00
|
|
|
|
<ul id="polls_<%= poll.id %>">
|
2015-01-20 11:42:28 +08:00
|
|
|
|
<%= render :partial => 'poll', :locals => {:poll => poll} %>
|
2015-01-17 13:30:50 +08:00
|
|
|
|
</ul>
|
2015-01-12 17:25:48 +08:00
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<% end%>
|
|
|
|
|
|
2015-01-13 11:44:28 +08:00
|
|
|
|
<ul class="wlist">
|
|
|
|
|
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false, :remote => false, :flag => true%>
|
2015-01-12 17:25:48 +08:00
|
|
|
|
</ul>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div><!--列表end-->
|
|
|
|
|
|
2015-01-13 15:59:02 +08:00
|
|
|
|
</div><!--问卷内容end-->
|