|
|
@ -1,35 +1,86 @@
|
|
|
|
<%= form_for("",:url => update_exercise_question_exercise_index_path(:exercise_question => exercise_question.id),:html => {:id => "update_exercise_question_#{exercise_question.id}"}) do |f|%>
|
|
|
|
<%= form_for("",:url => update_exercise_question_exercise_index_path(:exercise_question => exercise_question.id),:html => {:id => "update_exercise_question_#{exercise_question.id}"}) do |f|%>
|
|
|
|
<div class="user_bg_shadow bor-grey-e pl15 pr30 mb20 fillin_Temp" id="poll_answers_<%= exercise_question.id %>">
|
|
|
|
<!-- <div class="user_bg_shadow bor-grey-e pl15 pr30 mb20 fillin_Temp" id="poll_answers_<%#= exercise_question.id %>">-->
|
|
|
|
<p class="fl mt15 font-16 mb10">实训题</p>
|
|
|
|
<!-- <p class="fl mt15 font-16 mb10">实训题</p>-->
|
|
|
|
<p class="clearfix mb10" style="margin-left: 78px;"><%= exercise_question.shixun.name %></p>
|
|
|
|
<!-- <p class="clearfix mb10" style="margin-left: 78px;"><%#= exercise_question.shixun.name %></p>-->
|
|
|
|
<li class="clearfix pr mb20">
|
|
|
|
<!-- <li class="clearfix pr mb20">-->
|
|
|
|
<input name="question_type" value="5" type="hidden">
|
|
|
|
<!-- <input name="question_type" value="5" type="hidden">-->
|
|
|
|
<label class="panel-form-label fl"><span class="mr10">要求</span></label>
|
|
|
|
<!-- <label class="panel-form-label fl"><span class="mr10">要求</span></label>-->
|
|
|
|
<textarea maxlength="250" class="panel-form-width2-690 fl panel-box-sizing questionTitle undis" name="question_title" id="poll_questions_title_<%=exercise_question.id %>"><%=exercise_question.question_title.html_safe %></textarea>
|
|
|
|
<!-- <textarea maxlength="250" class="panel-form-width2-690 fl panel-box-sizing questionTitle undis" name="question_title" id="poll_questions_title_<%#=exercise_question.id %>"><%#=exercise_question.question_title.html_safe %></textarea>-->
|
|
|
|
</li>
|
|
|
|
<!-- </li>-->
|
|
|
|
<li class="clearfix pr mb10">
|
|
|
|
<!-- <li class="clearfix pr mb10">-->
|
|
|
|
<label class="panel-form-label fl"><span class="mr10">序号</span></label>
|
|
|
|
<!-- <label class="panel-form-label fl"><span class="mr10">序号</span></label>-->
|
|
|
|
<span class="fl with80 mt6 ml20 color-dark-grey" style="display: block;">关卡名称</span>
|
|
|
|
<!-- <span class="fl with80 mt6 ml20 color-dark-grey" style="display: block;">关卡名称</span>-->
|
|
|
|
<span class="fl mt6 color-dark-grey" style="display: block;">分值</span>
|
|
|
|
<!-- <span class="fl mt6 color-dark-grey" style="display: block;">分值</span>-->
|
|
|
|
</li>
|
|
|
|
<!-- </li>-->
|
|
|
|
<% exercise_question.exercise_shixun_challenges.each_with_index do |exercise_challenge,index| %>
|
|
|
|
<%# exercise_question.exercise_shixun_challenges.each_with_index do |exercise_challenge,index| %>
|
|
|
|
<li class="clearfix pr mb10">
|
|
|
|
<!-- <li class="clearfix pr mb10">-->
|
|
|
|
<label class="panel-form-label fl">
|
|
|
|
<!-- <label class="panel-form-label fl">-->
|
|
|
|
<span class="option-item fr ml6 color-grey select-choice" data-tip-left="第<%= index + 1 %>关"><%= index + 1 %></span>
|
|
|
|
<!-- <span class="option-item fr ml6 color-grey select-choice" data-tip-left="第<%#= index + 1 %>关"><%#= index + 1 %></span>-->
|
|
|
|
</label>
|
|
|
|
<!-- </label>-->
|
|
|
|
<span class="fl ml20 mt6 with75 task-hide" style="display: block;"><%= exercise_challenge.challenge.subject %></span>
|
|
|
|
<!-- <span class="fl ml20 mt6 with75 task-hide" style="display: block;"><%#= exercise_challenge.challenge.subject %></span>-->
|
|
|
|
<input value="<%= exercise_challenge.question_score %>" type="text" class="with10 ml15 mr5 pl10 fl panel-box-sizing task-height-40" name="question_score[]" />
|
|
|
|
<!-- <input value="<%#= exercise_challenge.question_score %>" type="text" class="with10 ml15 mr5 pl10 fl panel-box-sizing task-height-40" name="question_score[]" />-->
|
|
|
|
<label class="fl" style="line-height: 40px;">分</label>
|
|
|
|
<!-- <label class="fl" style="line-height: 40px;">分</label>-->
|
|
|
|
</li>
|
|
|
|
<!-- </li>-->
|
|
|
|
<div class="cl"></div>
|
|
|
|
<!-- <div class="cl"></div>-->
|
|
|
|
<% end %>
|
|
|
|
<%# end %>
|
|
|
|
|
|
|
|
|
|
|
|
<li class="clearfix mb20">
|
|
|
|
<!-- <li class="clearfix mb20">-->
|
|
|
|
<p class="fr">
|
|
|
|
<!-- <p class="fr">-->
|
|
|
|
<span class="font-12 color-grey mb10" style="display: block;">温馨提示:[实训题]属于客观题将由系统自动评分</span>
|
|
|
|
<!-- <span class="font-12 color-grey mb10" style="display: block;">温馨提示:[实训题]属于客观题将由系统自动评分</span>-->
|
|
|
|
<a href="javascript:void(0)" class="fr task-btn task-btn-orange" onclick="edit_poll_question($(this),<%= exercise_question.id %>,5);">保存</a>
|
|
|
|
<!-- <a href="javascript:void(0)" class="fr task-btn task-btn-orange" onclick="edit_poll_question($(this),<%#= exercise_question.id %>,5);">保存</a>-->
|
|
|
|
<a href="javascript:void(0)" class="fr task-btn mr10" onclick="$('#edit_poll_questions_<%=exercise_question.id %>').hide();$('#show_poll_questions_<%=exercise_question.id %>').show();">取消</a>
|
|
|
|
<!-- <a href="javascript:void(0)" class="fr task-btn mr10" onclick="$('#edit_poll_questions_<%=exercise_question.id %>').hide();$('#show_poll_questions_<%=exercise_question.id %>').show();">取消</a>-->
|
|
|
|
</p>
|
|
|
|
<!-- </p>-->
|
|
|
|
</li>
|
|
|
|
<!-- </li>-->
|
|
|
|
</div>
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="user_bg_shadow bor-grey-e mb20 answer_Temp edu-back-white practicalTemp" id="answer_Temp">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="fl mt15 font-16 mb10 padding10 practicalTitlefont">实训题</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="fl font-16 mb10 practicalTitle">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="Titlefont">初级题</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="fr mr40 shixun-title-font">
|
|
|
|
|
|
|
|
<span class="color-red mr5 shixun-title-font">*</span>分值:<input class="borderFF8121"/> 分/题
|
|
|
|
|
|
|
|
<div class="colorFF8121">*大于等于0,且不能大于100</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="fr mr40 shixun-title-font">
|
|
|
|
|
|
|
|
<span class="color-red mr5 shixun-title-font">*</span>
|
|
|
|
|
|
|
|
随机出题量:<input class="borderFF8121"/> 题
|
|
|
|
|
|
|
|
<div class="colorFF8121">*不能为空</div>
|
|
|
|
|
|
|
|
<div class="colorFF8121">*必须为正整数</div>
|
|
|
|
|
|
|
|
<div class="colorFF8121">*不能大于可用题数</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="fr mr40 shixun-title-font">
|
|
|
|
|
|
|
|
<span class="color-orange mr5 shixun-title-font">3</span>
|
|
|
|
|
|
|
|
题可用
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="fl font-16 mb10 practicalTitle">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="Titlefont">中级题</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="fl font-16 mb10 practicalTitle">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="Titlefont">高级题</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="fl font-16 mb10 practicalTitle">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="Titlefont">顶级题</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|