<%= stylesheet_link_tag 'polls', :media => 'all' %>

<%= @poll.polls_name.empty? ? l(:label_poll_new) : @poll.polls_name %>

<%= @poll.polls_description.nil? ? "" : @poll.polls_description.html_safe%>
<% mc_question_list = @poll.poll_questions.where("question_type=1") %> <% mcq_question_list = @poll.poll_questions.where("question_type=2") %> <% single_question_list = @poll.poll_questions.where("question_type=3") %> <% multi_question_list = @poll.poll_questions.where("question_type=4") %>
">

单选题

<% mc_question_list.each do |poll_question| %>
<%= render :partial => 'show_MC_result', :locals => {:poll_question => poll_question} %>
<% end %>
">

多选题

<% mcq_question_list.each do |poll_question| %>
<%= render :partial => 'show_MCQ_result', :locals => {:poll_question => poll_question} %>
<% end %>
">

单行主观题

<% single_question_list.each do |poll_question| %>
<%= render :partial => 'show_single_result', :locals => {:poll_question => poll_question} %>
<% end %>
">

多行主观题

<% multi_question_list.each do |poll_question| %>
<%= render :partial => 'show_mulit_result', :locals => {:poll_question => poll_question} %>
<% end %>