2015-01-16 15:05:30 +08:00
|
|
|
<%= form_for PollQuestion.new,:url =>create_poll_question_poll_path(@poll.id),:remote => true do |f|%>
|
2016-10-12 13:34:09 +08:00
|
|
|
<div class="questionContainer"> <!--编辑单行文字start-->
|
2015-01-16 15:05:30 +08:00
|
|
|
<div class="ur_editor_title">
|
2016-10-14 14:50:51 +08:00
|
|
|
<label for="ur_question_title" class="questionLabel mt8">问题: </label>
|
2015-01-16 15:05:30 +08:00
|
|
|
<input type="hidden" name="question_type" value="3"/>
|
2016-10-27 14:31:14 +08:00
|
|
|
<textarea maxlength="250" id="poll_questions_title_new" class="questionTitle w590" contenteditable="true" type="text" name="poll_questions_title" placeholder="请输入主观题" oninput="autoHeight('#poll_questions_title_new',30)"></textarea>
|
2016-10-12 13:34:09 +08:00
|
|
|
<label>
|
|
|
|
<input name="is_necessary" value="true" checked type="checkbox">
|
|
|
|
必答
|
|
|
|
</label>
|
2015-01-16 15:05:30 +08:00
|
|
|
</div>
|
|
|
|
<div class="ur_editor_footer">
|
2016-10-12 13:34:09 +08:00
|
|
|
<a class="grey_btn fr borderRadius" data-button="cancel" onclick="$(this).parent().parent().parent().remove();">
|
2015-01-27 10:14:05 +08:00
|
|
|
<%= l(:button_cancel)%>
|
|
|
|
</a>
|
2016-10-12 13:34:09 +08:00
|
|
|
<a class="blue_btn fr borderRadius mr5" data-button="ok" id="add_new_question_new">
|
|
|
|
<%= l(:label_button_ok)%>
|
|
|
|
</a>
|
2015-01-16 15:05:30 +08:00
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div><!--编辑单行文字end-->
|
2016-05-13 16:50:41 +08:00
|
|
|
<% end%>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function(){
|
|
|
|
$("#add_new_question_new").one('click', function(){
|
|
|
|
add_poll_question_new($(this));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|