35 lines
1.4 KiB
Plaintext
35 lines
1.4 KiB
Plaintext
<%= stylesheet_link_tag 'polls', :media => 'all' %>
|
|
<div class="polls_content polls_box">
|
|
<div class="ur_page_head" >
|
|
<h1 class="ur_page_title">
|
|
<%= @poll.polls_name.empty? ? l(:label_poll_new) : @poll.polls_name %>
|
|
</h1>
|
|
<%= @poll.polls_description.nil? ? "" : @poll.polls_description.html_safe%>
|
|
</div>
|
|
<div class="ur_card">
|
|
<ol class="ur_questions">
|
|
<% @poll_questions.each do |poll_question|%>
|
|
<% if poll_question.question_type == 1%>
|
|
<%= render :partial => 'show_MC_result', :locals => {:poll_question => poll_question} %>
|
|
<% elsif poll_question.question_type == 2%>
|
|
<%= render :partial => 'show_MCQ_result', :locals => {:poll_question => poll_question} %>
|
|
<% elsif poll_question.question_type == 3%>
|
|
<%= render :partial => 'show_single_result', :locals => {:poll_question => poll_question} %>
|
|
<% elsif poll_question.question_type == 4%>
|
|
<%= render :partial => 'show_mulit_result', :locals => {:poll_question => poll_question} %>
|
|
<% end%>
|
|
<% end%>
|
|
</ol>
|
|
</div> <!--ur_cards end-->
|
|
<div class="cl"></div>
|
|
|
|
<!-- 分页 -->
|
|
<div class="polls_content" id="polls">
|
|
<ul class="wlist">
|
|
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false, :remote => false, :flag => true%>
|
|
</ul>
|
|
<div class="cl"></div>
|
|
</div>
|
|
</div><!--问卷内容end-->
|
|
|