23 lines
1.3 KiB
Plaintext
23 lines
1.3 KiB
Plaintext
<div>
|
|
<div class="testEditTitle">
|
|
<span class="questionLabel">第<%= poll_question.question_number%>题:</span>
|
|
<span class="formatContainer m_w500"><%= poll_question.question_title %></span>
|
|
<%if poll_question.is_necessary == 1%>
|
|
<span class="ur_required questionLabel ml5" title="必答">*</span>
|
|
<%end%>
|
|
</div>
|
|
<%= 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>
|
|
<a class='ur_icon_add' title='向下插入' id="add_mulit_<%=poll_question.id%>" onclick="dismiss('mulit',<%=poll_question.id%>);insert_MULIT('mulit',<%=poll_question.question_number%>,<%=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 %>
|
|
</div><!--多行展示 end-->
|
|
<!-- 新增问题 -->
|
|
<div id="insert_new_poll_question_mulit_<%=poll_question.id%>">
|
|
</div> |