2015-01-16 14:39:40 +08:00
|
|
|
|
<%= form_for PollQuestion.new,:url =>create_poll_question_poll_path(@poll.id),:remote => true do |f|%><!--新建多选start-->
|
2015-01-15 14:40:17 +08:00
|
|
|
|
<div class="ur_editor checkbox">
|
|
|
|
|
<div class="ur_editor_title">
|
2015-01-16 14:39:40 +08:00
|
|
|
|
<label>问题: </label>
|
|
|
|
|
<input type="hidden" name="question_type" value="2"/>
|
2015-01-21 11:50:33 +08:00
|
|
|
|
<input maxlength="250" class="ur_question_title" type="text" name="poll_questions_title" id="poll_questions_title" placeholder="请输入多选题标题"/>
|
2015-01-16 14:39:40 +08:00
|
|
|
|
<input type="checkbox" name="is_necessary" value="true" checked/>
|
|
|
|
|
<label>必答</label>
|
2015-01-15 14:40:17 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div class="ur_editor_content">
|
|
|
|
|
<ul>
|
2015-01-16 14:39:40 +08:00
|
|
|
|
<li class='ur_item'>
|
|
|
|
|
<label>选项<span class='ur_index'></span>:</label>
|
2015-01-17 11:05:38 +08:00
|
|
|
|
<input maxlength="200" type='text' name='question_answer[0]' placeholder='新建选项'/>
|
2015-01-16 14:39:40 +08:00
|
|
|
|
<a class='icon_add' title='向下插入选项' onclick='add_single_answer($(this));'></a>
|
|
|
|
|
<a class='icon_remove' title='删除' onclick='remove_single_answer($(this))'></a>
|
2015-01-15 14:40:17 +08:00
|
|
|
|
</li>
|
2015-01-16 14:39:40 +08:00
|
|
|
|
<div class='cl'></div>
|
|
|
|
|
<li class='ur_item'>
|
|
|
|
|
<label>选项<span class='ur_index'></span>:</label>
|
2015-01-17 11:05:38 +08:00
|
|
|
|
<input maxlength="200" type='text' name='question_answer[1]' placeholder='新建选项'/>
|
2015-01-16 14:39:40 +08:00
|
|
|
|
<a class='icon_add' title='向下插入选项' onclick='add_single_answer($(this));'></a>
|
|
|
|
|
<a class='icon_remove' title='删除' onclick='remove_single_answer($(this))'></a>
|
2015-01-15 14:40:17 +08:00
|
|
|
|
</li>
|
2015-01-16 14:39:40 +08:00
|
|
|
|
<div class='cl'></div>
|
|
|
|
|
<li class='ur_item'>
|
|
|
|
|
<label>选项<span class='ur_index'></span>:</label>
|
2015-01-17 11:05:38 +08:00
|
|
|
|
<input maxlength="200" type='text' name='question_answer[2]' placeholder='新建选项'/>
|
2015-01-16 14:39:40 +08:00
|
|
|
|
<a class='icon_add' title='向下插入选项' onclick='add_single_answer($(this));'></a>
|
|
|
|
|
<a class='icon_remove' title='删除' onclick='remove_single_answer($(this))'></a>
|
|
|
|
|
</li>
|
|
|
|
|
<div class='cl'></div>
|
2015-01-15 14:40:17 +08:00
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ur_editor_footer">
|
2015-01-27 10:14:05 +08:00
|
|
|
|
<a class="btn btn_dark btn_submit" data-button="ok" onclick="$(this).parent().parent().parent().submit();">
|
|
|
|
|
<%= l(:label_button_ok)%>
|
|
|
|
|
</a>
|
|
|
|
|
<a class="btn btn_light btn_cancel" data-button="cancel" onclick="$(this).parent().parent().parent().remove();">
|
|
|
|
|
<%= l(:button_cancel)%>
|
|
|
|
|
</a>
|
2015-01-15 14:40:17 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
2015-01-16 14:39:40 +08:00
|
|
|
|
<% end%><!--编辑多选 end-->
|