2015-01-16 15:05:30 +08:00
|
|
|
<%= form_for("",:url => update_poll_question_poll_index_path(:poll_question => poll_question.id),:remote => true) do |f|%>
|
2015-01-13 18:21:46 +08:00
|
|
|
<div class="ur_editor text "> <!--编辑单行文字start-->
|
|
|
|
<div class="ur_editor_title">
|
|
|
|
<label for="ur_question_title">问题: </label>
|
2015-01-16 15:05:30 +08:00
|
|
|
<input type="hidden" name="question_type" value="<%= poll_question.question_type%>"/>
|
2015-01-17 11:05:38 +08:00
|
|
|
<input maxlength="250" id="poll_questions_title_<%=poll_question.id%>" class="ur_question_title" contenteditable="true" type="text"
|
2015-01-16 17:31:04 +08:00
|
|
|
name="poll_questions_title" placeholder="请输入单行主观标题" value="<%= poll_question.question_title%>"/>
|
2015-01-16 15:05:30 +08:00
|
|
|
<input type="checkbox" name="is_necessary" value="true" <%= poll_question.is_necessary == 1 ? "checked" : ""%>/>
|
2015-01-13 18:21:46 +08:00
|
|
|
<label for="ur_question_require">必答</label>
|
|
|
|
</div>
|
|
|
|
<div class="ur_editor_footer">
|
2015-01-16 15:05:30 +08:00
|
|
|
<a class="btn_submit" data-button="ok" onclick="$(this).parent().parent().parent().submit();">确定</a>
|
|
|
|
<a class="btn_cancel" data-button="cancel" onclick="pollQuestionCancel(<%= poll_question.id%>);">取消</a>
|
2015-01-13 18:21:46 +08:00
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
2015-01-16 15:05:30 +08:00
|
|
|
</div><!--编辑单行文字end-->
|
|
|
|
<% end%>
|