17 lines
1.1 KiB
Plaintext
17 lines
1.1 KiB
Plaintext
<%= form_for("",:url => update_poll_question_poll_index_path(:poll_question => poll_question.id),:remote => true) do |f|%>
|
|
<div class="ur_editor text "> <!--编辑单行文字start-->
|
|
<div class="ur_editor_title">
|
|
<label for="ur_question_title">问题: </label>
|
|
<input type="hidden" name="question_type" value="<%= poll_question.question_type%>"/>
|
|
<input id="poll_questions_title_<%=poll_question.id%>" class="ur_question_title" contenteditable="true" type="text"
|
|
name="poll_questions_title" placeholder="请输入单行文字标题" value="<%= poll_question.question_title%>"/>
|
|
<input type="checkbox" name="is_necessary" value="true" <%= poll_question.is_necessary == 1 ? "checked" : ""%>/>
|
|
<label for="ur_question_require">必答</label>
|
|
</div>
|
|
<div class="ur_editor_footer">
|
|
<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>
|
|
</div>
|
|
<div class="cl"></div>
|
|
</div><!--编辑单行文字end-->
|
|
<% end%> |