2016-10-13 11:22:38 +08:00
|
|
|
<div>
|
|
|
|
<div class="testEditTitle">
|
|
|
|
第<%= poll_question.question_number%>题:
|
2015-01-21 17:51:12 +08:00
|
|
|
<%= poll_question.question_title %>
|
2016-10-31 10:41:00 +08:00
|
|
|
<span class="fontBlue">[多选题]</span>
|
2015-01-21 17:51:12 +08:00
|
|
|
<%if poll_question.is_necessary == 1%>
|
|
|
|
<span class="ur_required" title="必答">*</span>
|
|
|
|
<%end%>
|
2016-10-31 10:41:00 +08:00
|
|
|
<% if poll_question.min_choices != 0 || poll_question.max_choices != 0 %>
|
|
|
|
<p class="fontGrey2">
|
|
|
|
<% if poll_question.min_choices != 0 && poll_question.max_choices != 0 %>
|
|
|
|
答题时最少选<%=poll_question.min_choices %>项、最多选<%=poll_question.max_choices %>项
|
|
|
|
<% elsif poll_question.min_choices != 0 %>
|
|
|
|
答题时最少选<%=poll_question.min_choices %>项
|
|
|
|
<% elsif poll_question.max_choices != 0 %>
|
|
|
|
答题时最多选<%=poll_question.max_choices %>项
|
|
|
|
<% end %>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
2015-01-21 17:51:12 +08:00
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="ur_inputs">
|
2016-10-13 11:22:38 +08:00
|
|
|
<table class="ur_table" style="width:675px;">
|
2015-01-21 17:51:12 +08:00
|
|
|
<tbody>
|
|
|
|
<% poll_question.poll_votes.where("user_id = #{User.current.id}").each do |answer|%>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2016-10-14 15:29:07 +08:00
|
|
|
<p class="ml20 break_word">
|
2016-10-13 11:22:38 +08:00
|
|
|
<%= answer.poll_answer.answer_text == "" ? (answer.vote_text.nil? ? "其他" : answer.vote_text) : answer.poll_answer.answer_text %>
|
|
|
|
</p>
|
2015-01-21 17:51:12 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end%>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2016-10-13 11:22:38 +08:00
|
|
|
</div><!--多选题 end-->
|