2016-10-27 10:55:12 +08:00
|
|
|
<div class="poll-container">
|
|
|
|
<div class="pool-tool-bar">
|
|
|
|
<p class="mt10 mb10">
|
2016-10-27 13:57:03 +08:00
|
|
|
<span class="questionLabel"><%= poll_question.question_number%></span>
|
2016-10-27 10:55:12 +08:00
|
|
|
<%if poll_question.is_necessary == 1%>
|
|
|
|
<span class="c_red questionLabel ml5" title="必答">*</span>
|
|
|
|
<%end%>
|
|
|
|
</p>
|
|
|
|
<a class="poll-up mb8" title="上移"></a>
|
|
|
|
<a class="poll-down mb8" title="下移"></a>
|
|
|
|
<a href="javascript:void(0);" class="poll-add pr mb8">
|
|
|
|
<ul class="poll-add-menu fontGrey3">
|
|
|
|
<li><a href="javascript:void(0);" onclick=" dismiss('mulit',<%=poll_question.id%>);insert_MC('mulit',<%=poll_question.question_number%>,<%=poll_question.id%>);">单选题</a></li>
|
|
|
|
<li><a href="javascript:void(0);" onclick=" dismiss('mulit',<%=poll_question.id%>);insert_MCQ('mulit',<%=poll_question.question_number%>,<%=poll_question.id%>);">多选题</a></li>
|
|
|
|
<li><a href="javascript:void(0);" onclick=" dismiss('mulit',<%=poll_question.id%>);insert_SINGLE('mulit',<%=poll_question.question_number%>,<%=poll_question.id%>);">主观题</a></li>
|
|
|
|
</ul>
|
|
|
|
</a>
|
|
|
|
<%= link_to("", delete_poll_question_poll_index_path(:poll_question => poll_question.id),
|
|
|
|
method: :delete, :confirm => l(:text_are_you_sure), :remote => true, :class => "poll-delete", :title => "删除") %>
|
|
|
|
</div>
|
|
|
|
<div class="poll-content">
|
|
|
|
<div class="testEditTitle">
|
|
|
|
<span class="formatContainer m_w500"><%= poll_question.question_title %></span>
|
|
|
|
<span class="fontBlue">[多行主观题]</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<a class="ur_icon_edit" title="编辑" onclick="pollQuestionEdit(<%= poll_question.id%>);"></a>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<% poll_question.poll_answers.reorder("answer_position").each_with_index do |poll_answer, i| %>
|
|
|
|
<div class="ml40 mb10">
|
|
|
|
<p class="mb10"><%= i + 1 %>.<%= poll_answer.answer_text%></p>
|
|
|
|
<input type="text" class="questionnaire-input" name="<%= poll_question %>" style="width:652px;" />
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2015-01-13 18:21:46 +08:00
|
|
|
</div>
|
2015-07-28 10:27:45 +08:00
|
|
|
</div><!--多行展示 end-->
|
|
|
|
<!-- 新增问题 -->
|
|
|
|
<div id="insert_new_poll_question_mulit_<%=poll_question.id%>">
|
|
|
|
</div>
|