2015-01-12 17:25:48 +08:00
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
<head>
|
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
|
<title>问卷调查_列表</title>
|
|
|
|
|
<%= stylesheet_link_tag 'polls', :media => 'all' %>
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
<div class="polls_content" id="polls">
|
|
|
|
|
<div class="polls_head">
|
|
|
|
|
<h2>所有问卷
|
|
|
|
|
<span>(<%= @polls.count%>)</span>
|
|
|
|
|
</h2>
|
2015-01-12 17:30:33 +08:00
|
|
|
|
<%= link_to l(:label_new_poll), new_poll_path(:polls_type => "Course",:polls_group_id => @course.id), :class => "newbtn" %>
|
2015-01-12 17:25:48 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<div class="polls_list">
|
|
|
|
|
<% @polls.each do |poll|%>
|
2015-01-12 17:55:22 +08:00
|
|
|
|
<ul id="polls_<%= poll.id %>">
|
2015-01-12 17:25:48 +08:00
|
|
|
|
<li>
|
|
|
|
|
<a href="#" class="polls_title fl">
|
|
|
|
|
<%= poll.polls_name%>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-01-13 11:44:28 +08:00
|
|
|
|
<%if @is_teacher%>
|
|
|
|
|
<a href="#" class="pollsbtn fl ml10">
|
|
|
|
|
<%= l(:label_statistical_results)%>
|
|
|
|
|
</a>
|
|
|
|
|
<% end%>
|
2015-01-12 17:25:48 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-01-13 11:44:28 +08:00
|
|
|
|
<% if @is_teacher%>
|
|
|
|
|
<%= link_to(l(:button_delete), poll,
|
|
|
|
|
method: :delete, :confirm => l(:text_are_you_sure), :remote => true, :class => "polls_de fr ml20 mr10") %>
|
|
|
|
|
<% end%>
|
2015-01-12 17:25:48 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li class="polls_date fr">
|
|
|
|
|
<%= format_time poll.created_at%>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<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-->
|
|
|
|
|
|
|
|
|
|
</div><!--问卷内容end-->
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|