35 lines
1.3 KiB
Plaintext
35 lines
1.3 KiB
Plaintext
<div class="poll-container">
|
|
<div class="poll-tool-bar" id="poll_tool_bar_<%= poll_question.id%>">
|
|
<%= render :partial => "poll_tool_bar", :locals => {:type => 'mulit', :poll_question => poll_question}%>
|
|
</div>
|
|
<div class="poll-content">
|
|
<div class="testEditTitle" style="padding-top:0;">
|
|
<span class="formatContainer m_w500"><%= poll_question.question_title %></span>
|
|
<span class="fontBlue">[多行主观题]</span>
|
|
</div>
|
|
|
|
<a class="poll-edit" title="编辑" onclick="pollQuestionEdit(<%= poll_question.id%>);"></a>
|
|
<div class="cl"></div>
|
|
<% poll_question.poll_answers.reorder("answer_position").each_with_index do |poll_answer, i| %>
|
|
<div class="ml20 mb10">
|
|
<p class="mb10"><%= i + 1 %>.<%= poll_answer.answer_text%></p>
|
|
<input type="text" class="questionnaire-input" name="<%= poll_question %>" style="width:620px;" />
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div><!--多行展示 end-->
|
|
<!-- 新增问题 -->
|
|
<div id="insert_new_poll_question_mulit_<%=poll_question.id%>">
|
|
</div>
|
|
<script>
|
|
$(".poll-add").mouseover(function(){
|
|
$(this).children('ul').show();
|
|
}).mouseout(function(){
|
|
$(this).children('ul').hide();
|
|
});
|
|
$(".poll-add-menu").mouseover(function(){
|
|
$(this).show();
|
|
}).mouseout(function(){
|
|
$(this).hide();
|
|
});
|
|
</script> |