2015-11-18 16:51:47 +08:00
|
|
|
<div>
|
|
|
|
<div class="testEditTitle"> 第<%= exercise_question.question_number%>题.(<%= exercise_question.question_score %>分)<br />
|
|
|
|
<%= exercise_question.question_title %>
|
|
|
|
</div>
|
|
|
|
<%= link_to("", delete_exercise_question_exercise_index_path(:exercise_question => exercise_question.id),
|
|
|
|
method: :delete, :confirm => l(:text_are_you_sure), :remote => true, :class => "ur_icon_de") %>
|
|
|
|
<a class="ur_icon_edit" title="编辑" onclick="pollQuestionEdit(<%= exercise_question.id%>);"></a>
|
|
|
|
<a class='ur_icon_add' title='向下插入' id="add_single_<%=exercise_question.id%>" onclick="chooseQuestionType('single',<%=exercise_question.id%>);"></a>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div>
|
|
|
|
<% exercise_question.exercise_choices.reorder("choice_position").each_with_index do |exercise_choice,index| %>
|
|
|
|
候选答案:<%= exercise_choice.choice_text%><br />
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 新增问题 -->
|
|
|
|
<div id="insert_new_poll_question_single_<%=exercise_question.id%>">
|
|
|
|
</div>
|
|
|
|
<div id="div_single_<%=exercise_question.id%>" style="width: 50px;border: 1px solid #cbcbcb; display:none;position: absolute;padding: 5px;background: white">
|
|
|
|
<ul>
|
|
|
|
<!--<li><a href="javascript:void(0);" onclick=" dismiss('single',<%#=poll_question.id%>);insert_MC('single',<%#=poll_question.question_number%>,<%#=poll_question.id%>);">单选</a></li>
|
|
|
|
<li><a href="javascript:void(0);" onclick=" dismiss('single',<%#=poll_question.id%>);insert_MCQ('single',<%#=poll_question.question_number%>,<%#=poll_question.id%>);">多选</a></li>
|
|
|
|
<li><a href="javascript:void(0);" onclick=" dismiss('single',<%#=poll_question.id%>);insert_SINGLE('single',<%#=poll_question.question_number%>,<%#=poll_question.id%>);">单行主观</a></li>-->
|
|
|
|
</ul>
|
|
|
|
</div>
|