2016-10-27 10:12:50 +08:00
|
|
|
<div class="poll-container">
|
|
|
|
<div class="pool-tool-bar">
|
|
|
|
<p class="mt10 mb10">
|
2016-10-27 15:11:52 +08:00
|
|
|
<span class="questionLabel" id="poll_question_number_<%=poll_question.id %>"><%= poll_question.question_number%></span>
|
2016-10-27 10:12:50 +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>
|
2016-10-27 15:07:46 +08:00
|
|
|
<a href="javascript:void(0);" class="poll-add mb8"> </a>
|
|
|
|
<ul class="poll-add-menu fontGrey3">
|
|
|
|
<li><a href="javascript:void(0);" onclick=" dismiss('mcq',<%=poll_question.id%>);insert_MC('mcq',<%=poll_question.question_number%>,<%=poll_question.id%>);">单选题</a></li>
|
|
|
|
<li><a href="javascript:void(0);" onclick=" dismiss('mcq',<%=poll_question.id%>);insert_MCQ('mcq',<%=poll_question.question_number%>,<%=poll_question.id%>);">多选题</a></li>
|
|
|
|
<li><a href="javascript:void(0);" onclick=" dismiss('mcq',<%=poll_question.id%>);insert_SINGLE('mcq',<%=poll_question.question_number%>,<%=poll_question.id%>);">主观题</a></li>
|
|
|
|
</ul>
|
2016-10-27 10:12:50 +08:00
|
|
|
<%= 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 => "删除") %>
|
2015-01-13 18:21:46 +08:00
|
|
|
</div>
|
2016-10-27 10:12:50 +08:00
|
|
|
<div class="poll-content">
|
2016-10-27 14:31:14 +08:00
|
|
|
<div class="testEditTitle" style="padding-top:0;">
|
2016-10-27 10:12:50 +08:00
|
|
|
<span class="formatContainer m_w500"><%= poll_question.question_title %></span>
|
|
|
|
<span class="fontBlue">[多选题]</span>
|
|
|
|
</div>
|
2016-10-27 14:31:14 +08:00
|
|
|
<a class="poll-edit" title="编辑" onclick="pollQuestionEdit(<%= poll_question.id%>);"></a>
|
2016-10-27 10:12:50 +08:00
|
|
|
<div class="cl"></div>
|
2016-10-27 14:31:14 +08:00
|
|
|
<div class="ur_inputs">
|
|
|
|
<table class="ur_table" style="width:647px;">
|
2016-10-27 10:12:50 +08:00
|
|
|
<tbody>
|
|
|
|
<% poll_question.poll_answers.reorder("answer_position").each do |poll_answer| %>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<% if poll_answer.answer_text != '' %>
|
|
|
|
<label>
|
|
|
|
<input class="ur_radio" type="checkbox" name="<%= poll_question %>" value="<%= poll_answer.answer_text%>" >
|
|
|
|
<%= poll_answer.answer_text%>
|
|
|
|
</label>
|
|
|
|
<% else %>
|
|
|
|
<label>
|
|
|
|
<input class="ur_radio" name="<%= poll_question %>" value="" type="checkbox">
|
|
|
|
</label>
|
|
|
|
<input placeholder="其它" readonly="readonly" class="disabled questionnaire-input w300" type="text">
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-07-28 10:27:45 +08:00
|
|
|
</div><!--多选题显示 end-->
|
|
|
|
<!-- 新增问题 -->
|
|
|
|
<div id="insert_new_poll_question_mcq_<%=poll_question.id%>">
|
|
|
|
</div>
|