2015-01-13 18:21:46 +08:00
|
|
|
<div class="ur_question_item textarea ur_editor02">
|
|
|
|
<div class="ur_preview">
|
|
|
|
<div class="ur_title">
|
2015-01-16 15:34:25 +08:00
|
|
|
<span class="title_index">
|
|
|
|
第<%= poll_question.question_number%>题:
|
|
|
|
</span>
|
|
|
|
<%= poll_question.question_title %>
|
2015-01-17 14:10:44 +08:00
|
|
|
<span class="title_index">[多行主观]</span>
|
2015-01-16 15:34:25 +08:00
|
|
|
<%if poll_question.is_necessary == 1%>
|
|
|
|
<span class="ur_required" title="必答">*</span>
|
|
|
|
<%end%>
|
2015-01-13 18:21:46 +08:00
|
|
|
</div>
|
2015-01-16 15:34:25 +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 => "ur_icon_de") %>
|
|
|
|
<a class="ur_icon_edit" title="编辑" onclick="pollQuestionEdit(<%= poll_question.id%>);"></a>
|
2015-07-28 10:27:45 +08:00
|
|
|
<a class='ur_icon_add' title='向下插入' id="add_mulit_<%=poll_question.id%>" onclick="chooseQuestionType('mulit',<%=poll_question.id%>);"></a>
|
2015-01-13 18:21:46 +08:00
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="ur_inputs">
|
|
|
|
<textarea class="ur_textbox" rows="5" cols="60"></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-07-28 10:27:45 +08:00
|
|
|
</div><!--多行展示 end-->
|
|
|
|
<!-- 新增问题 -->
|
|
|
|
<div id="insert_new_poll_question_mulit_<%=poll_question.id%>">
|
|
|
|
</div>
|
|
|
|
<div id="div_mulit_<%=poll_question.id%>" style="width: 50px;border: 1px solid #cbcbcb; display:none;position: absolute;padding: 5px;background: white">
|
|
|
|
<ul>
|
2015-07-28 16:20:01 +08:00
|
|
|
<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>
|
|
|
|
<li><a href="javascript:void(0);" onclick=" dismiss('mulit',<%=poll_question.id%>);insert_MULIT('mulit',<%=poll_question.question_number%>,<%=poll_question.id%>);">多行主观</a></li>
|
2015-07-28 10:27:45 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|