|
|
|
@ -1,33 +1,26 @@
|
|
|
|
|
<div><!--编辑单选start-->
|
|
|
|
|
<div class="ur_editor radio">
|
|
|
|
|
<div class="ur_editor_title">
|
|
|
|
|
<label >问题: </label>
|
|
|
|
|
<input class="ur_question_title" type="text" name="title" placeholder="请输入单选题标题"/>
|
|
|
|
|
<input type="checkbox" name="required" value="true" checked=""/>
|
|
|
|
|
<label >必答</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ur_editor_content">
|
|
|
|
|
<ul>
|
|
|
|
|
<li class="ur_item">
|
|
|
|
|
<label >选项 <span class="ur_index">01</span>: </label>
|
|
|
|
|
<input type="text" name="option" placeholder="新建选项"/>
|
|
|
|
|
<a class="icon_add" title="向下插入选项"></a>
|
|
|
|
|
<a class="icon_remove" title="删除"></a>
|
|
|
|
|
</li>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<li class="ur_item">
|
|
|
|
|
<label >选项 <span class="ur_index">01</span>: </label>
|
|
|
|
|
<input type="text" name="option" placeholder="新建选项"/>
|
|
|
|
|
<a class="icon_add" title="向下插入选项"></a>
|
|
|
|
|
<a class="icon_remove" title="删除"></a>
|
|
|
|
|
</li>
|
|
|
|
|
<%= form_for PollQuestion.new,:url =>create_poll_question_poll_path(@poll.id),:remote => true do |f|%>
|
|
|
|
|
<div>
|
|
|
|
|
<!--编辑单选start-->
|
|
|
|
|
<div class="ur_editor radio">
|
|
|
|
|
<div class="ur_editor_title">
|
|
|
|
|
<label>问题: </label>
|
|
|
|
|
<input class="ur_question_title" type="text" name="poll_questions_title" placeholder="请输入单选题标题"/>
|
|
|
|
|
<input type="checkbox" name="is_necessary" value="true" checked/>
|
|
|
|
|
<label>必答</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ur_editor_content">
|
|
|
|
|
<ul>
|
|
|
|
|
<%= render :partial => 'question_answer'%>
|
|
|
|
|
<%= render :partial => 'question_answer'%>
|
|
|
|
|
<%= render :partial => 'question_answer'%>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ur_editor_footer">
|
|
|
|
|
<a class="btn btn_dark btn_submit" data-button="ok" onclick="$(this).parent().parent().parent().parent().submit();">确定</a>
|
|
|
|
|
<a class="btn btn_light btn_cancel" data-button="cancel" onclick="$(this).parent().parent().parent().parent().remove();">取消</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ur_editor_footer">
|
|
|
|
|
<a class="btn btn_dark btn_submit" data-button="ok">确定</a>
|
|
|
|
|
<a class="btn btn_light btn_cancel" data-button="cancel">取消</a>
|
|
|
|
|
</div>
|
|
|
|
|
<!--编辑单选 end-->
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div><!--编辑单选 end-->
|
|
|
|
|
<% end%>
|