socialforge/app/views/poll/_show_mulit.html.erb

35 lines
1.3 KiB
Plaintext
Raw Normal View History

2016-10-27 10:55:12 +08:00
<div class="poll-container">
2016-10-27 15:38:10 +08:00
<div class="poll-tool-bar" id="poll_tool_bar_<%= poll_question.id%>">
<%= render :partial => "poll_tool_bar", :locals => {:type => 'mulit', :poll_question => poll_question}%>
2016-10-27 10:55:12 +08:00
</div>
<div class="poll-content">
2016-10-27 15:25:53 +08:00
<div class="testEditTitle" style="padding-top:0;">
2016-10-27 10:55:12 +08:00
<span class="formatContainer m_w500"><%= poll_question.question_title %></span>
<span class="fontBlue">[多行主观题]</span>
</div>
2016-11-07 16:03:04 +08:00
<a class="poll-edit" style="display:none;" title="编辑" onclick="pollQuestionEdit(<%= poll_question.id%>);"></a>
2016-10-27 10:55:12 +08:00
<div class="cl"></div>
<% poll_question.poll_answers.reorder("answer_position").each_with_index do |poll_answer, i| %>
2016-10-27 15:19:26 +08:00
<div class="ml20 mb10">
2016-10-27 10:55:12 +08:00
<p class="mb10"><%= i + 1 %>.<%= poll_answer.answer_text%></p>
2016-10-27 15:19:26 +08:00
<input type="text" class="questionnaire-input" name="<%= poll_question %>" style="width:620px;" />
2016-10-27 10:55:12 +08:00
</div>
<% end %>
2015-01-13 18:21:46 +08:00
</div>
</div><!--多行展示 end-->
<!-- 新增问题 -->
<div id="insert_new_poll_question_mulit_<%=poll_question.id%>">
2016-10-27 18:25:47 +08:00
</div>
<script>
$(".poll-add").mouseover(function(){
2016-10-28 15:42:45 +08:00
$(this).children('ul').show();
2016-10-27 18:25:47 +08:00
}).mouseout(function(){
2016-10-28 15:42:45 +08:00
$(this).children('ul').hide();
2016-10-27 18:25:47 +08:00
});
$(".poll-add-menu").mouseover(function(){
$(this).show();
}).mouseout(function(){
$(this).hide();
});
</script>