40 lines
1.9 KiB
Plaintext
40 lines
1.9 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_mcq_<%=poll_question.id%>" onclick="dismiss('mcq',<%=poll_question.id%>);insert_MCQ('mcq',<%=poll_question.question_number%>,<%=poll_question.id%>);"></a>
|
|
<div class="cl"></div>
|
|
<div class="ur_inputs" style="width:675px;">
|
|
<table class="ur_table" style="width:675px;">
|
|
<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><!--多选题显示 end-->
|
|
<!-- 新增问题 -->
|
|
<div id="insert_new_poll_question_mcq_<%=poll_question.id%>">
|
|
</div> |