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

<%= @poll.polls_name%>

<%= @poll.polls_description %>

    <% @poll_questions.each do |pq| %> <% if pq.question_type == 1 %>
  1. 第<%= pq.question_number %>题: <%= pq.question_title %> <% if pq.is_necessary == 1 %> * <% end %>
    <% pq.poll_answers.each do |pa| %> <% end %>
  2. <% elsif pq.question_type == 2 %>
  3. 第<%= pq.question_number %>题: <%= pq.question_title %> <% if pq.is_necessary == 1 %> * <% end %>
    <% pq.poll_answers.each do |pa| %> <% end %>
  4. <% elsif pq.question_type == 3 %>
  5. 第<%= pq.question_number %>题: <%= pq.question_title %> <% if pq.is_necessary == 1 %> * <% end %>
    >
  6. <% elsif pq.question_type == 4 %>
  7. 第<%= pq.question_number %>题: <%= pq.question_title %> <% if pq.is_necessary == 1 %> * <% end %>
    " onblur="onblur_<%= pq.id %>(this);"><%= get_anwser_vote_text(pq.id,User.current.id) %>
  8. <% else %> <% end %> <% end %>
<% if @poll.polls_status == 2 %> <%= link_to "提交",commit_poll_poll_path(@poll), :method => :post,:class => "ur_button",:format => 'js',:remote=>true %> <% end %>
答题已完成 <%= format "%.2f" ,@percent %>%