Merge branch 'sw_new_course' of http://repository.trustie.net/xianbo/trustie2 into sw_new_course
This commit is contained in:
commit
d61ec92318
|
@ -1,7 +1,7 @@
|
||||||
<%= form_for(@exercise,
|
<%= form_for(@exercise,
|
||||||
:html => { :multipart => true },
|
:html => { :multipart => true },
|
||||||
:url => {:controller => 'exercise',
|
:url => {:controller => 'exercise',
|
||||||
:action => 'create',
|
:action => 'update',
|
||||||
:course_id => @course.id
|
:course_id => @course.id
|
||||||
},:remote=>true ) do |f| %>
|
},:remote=>true ) do |f| %>
|
||||||
<div class="testContainer">
|
<div class="testContainer">
|
||||||
|
|
|
@ -1,31 +1,45 @@
|
||||||
<%= form_for ExerciseQuestion.new,:url =>create_exercise_question_exercise_path(@exercise.id),:remote => true do |f|%>
|
<%#= form_for ExerciseQuestion.new,:url =>create_exercise_question_exercise_path(@exercise.id),:remote => true do |f|%>
|
||||||
|
<%= form_for(ExerciseQuestion.new,
|
||||||
|
:html => { :multipart => true },
|
||||||
|
:url => {:controller => 'exercise',
|
||||||
|
:action => 'create_exercise_question',
|
||||||
|
:course_id => @course.id
|
||||||
|
},:remote=>true ) do |f| %>
|
||||||
<div class="questionContainer">
|
<div class="questionContainer">
|
||||||
<div class="ur_editor_title">
|
<div class="ur_editor_title">
|
||||||
<label>问题: </label>
|
<label>问题: </label>
|
||||||
<input name="question_type" value="1" type="hidden">
|
<input name="question_type" value="1" type="hidden">
|
||||||
<input class="questionTitle" placeholder="请输入单选题题目" type="text">
|
<input name="questions_title" class="questionTitle" placeholder="请输入单选题题目" type="text">
|
||||||
</div>
|
</div>
|
||||||
<div class="ur_editor_content">
|
<div class="ur_editor_content">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="ur_item">
|
<li class="ur_item">
|
||||||
<label>选项<span class="ur_index"></span>: </label>
|
<label>选项<span class="ur_index"></span>: </label>
|
||||||
<input placeholder="新建选项" type="text">
|
<input maxlength="200" type='text' name='question_answer[0]' placeholder='新建选项'>
|
||||||
<a class="icon_add" title="向下插入选项" onclick="add_single_answer($(this));"></a> <a class="icon_remove" title="删除" onclick="remove_single_answer($(this))"></a> </li>
|
<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>
|
<div class="cl"></div>
|
||||||
<li class="ur_item">
|
<li class="ur_item">
|
||||||
<label>选项<span class="ur_index"></span>: </label>
|
<label>选项<span class="ur_index"></span>: </label>
|
||||||
<input placeholder="新建选项" type="text">
|
<input maxlength="200" type='text' name='question_answer[1]' placeholder='新建选项'>
|
||||||
<a class="icon_add" title="向下插入选项" onclick="add_single_answer($(this));"></a> <a class="icon_remove" title="删除" onclick="remove_single_answer($(this))"></a> </li>
|
<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>
|
<div class="cl"></div>
|
||||||
<li class="ur_item">
|
<li class="ur_item">
|
||||||
<label>选项<span class="ur_index"></span>: </label>
|
<label>选项<span class="ur_index"></span>: </label>
|
||||||
<input placeholder="新建选项" type="text">
|
<input maxlength="200" type='text' name='question_answer[2]' placeholder='新建选项'/>
|
||||||
<a class="icon_add" title="向下插入选项" onclick="add_single_answer($(this));"></a> <a class="icon_remove" title="删除" onclick="remove_single_answer($(this))"></a> </li>
|
<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>
|
<div class="cl"></div>
|
||||||
<li class="ur_item">
|
<li class="ur_item">
|
||||||
<label>选项<span class="ur_index"></span>: </label>
|
<label>选项<span class="ur_index"></span>: </label>
|
||||||
<input placeholder="新建选项" type="text">
|
<input maxlength="200" type='text' name='question_answer[3]' placeholder='新建选项'/>
|
||||||
<a class="icon_add" title="向下插入选项" onclick="add_single_answer($(this));"></a> <a class="icon_remove" title="删除" onclick="remove_single_answer($(this))"></a> </li>
|
<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>
|
<div class="cl"></div>
|
||||||
<li class="ur_item">
|
<li class="ur_item">
|
||||||
<label>标准答案<span class="ur_index"></span>: </label>
|
<label>标准答案<span class="ur_index"></span>: </label>
|
||||||
|
@ -34,7 +48,10 @@
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="ur_editor_footer"> <a class="btn btn_dark btn_submit c_white" data-button="ok" onclick="add_poll_question($(this));"> 保存 </a> <a class="btn btn_light btn_cancel" data-button="cancel" onclick="$(this).parent().parent().parent().remove();"> 取消 </a> </div>
|
<div class="ur_editor_footer">
|
||||||
|
<a class="btn btn_dark btn_submit c_white" data-button="ok" onclick="add_poll_question($(this));"> 保存 </a>
|
||||||
|
<a class="btn btn_light btn_cancel" data-button="cancel" onclick="$(this).parent().parent().parent().remove();"> 取消 </a>
|
||||||
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
|
@ -1,8 +1,8 @@
|
||||||
<div class="questionContainer">
|
<div class="questionContainer">
|
||||||
<div class="ur_editor_title">
|
<div class="ur_editor_title">
|
||||||
<label>问题: </label>
|
<label>问题: </label>
|
||||||
<input name="question_type" value="1" type="hidden">
|
<input name="question_type" value="2" type="hidden">
|
||||||
<input class="questionTitle" name="poll_questions_title" id="poll_questions_title" placeholder="请输入多选题题目" type="text">
|
<input class="questionTitle" name="questions_title" id="poll_questions_title" placeholder="请输入多选题题目" type="text">
|
||||||
</div>
|
</div>
|
||||||
<div class="ur_editor_content">
|
<div class="ur_editor_content">
|
||||||
<ul>
|
<ul>
|
||||||
|
|
Loading…
Reference in New Issue