在线测验的答题情况,没有题的题型不需要显示
This commit is contained in:
parent
3f36453548
commit
2d19cac4f2
|
@ -294,34 +294,42 @@
|
|||
|
||||
<div class="testStatus">
|
||||
<p class="f14 fontGrey3">答题情况</p>
|
||||
<div class="mt5">
|
||||
<span class="f14 mr10 fl">单选题:</span>
|
||||
<% mc_question_list.each_with_index do |exercise_question, list_index| %>
|
||||
<span id="question_answer_span_<%= exercise_question.id %>" class="fl mr10 question_answer_span <%= User.current.exercise_answer.where(:exercise_question_id => exercise_question.id).count > 0 ? 'bg_blue' : '' %>"><%= list_index + 1 %></span>
|
||||
<% end %>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<div class="mt5">
|
||||
<span class="f14 mr10 fl">多选题:</span>
|
||||
<% mcq_question_list.each_with_index do |exercise_question, list_index| %>
|
||||
<span id="question_answer_span_<%= exercise_question.id %>" class="fl mr10 question_answer_span <%= User.current.exercise_answer.where(:exercise_question_id => exercise_question.id).count > 0 ? 'bg_blue' : '' %>"><%= list_index + 1 %></span>
|
||||
<% end %>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<div class="mt5">
|
||||
<span class="f14 mr10 fl">填空题:</span>
|
||||
<% single_question_list.each_with_index do |exercise_question, list_index| %>
|
||||
<span id="question_answer_span_<%= exercise_question.id %>" class="fl mr10 question_answer_span <%= User.current.exercise_answer.where(:exercise_question_id => exercise_question.id).count > 0 ? 'bg_blue' : '' %>"><%= list_index + 1 %></span>
|
||||
<% end %>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<div class="mt5">
|
||||
<span class="f14 mr10 fl">问答题:</span>
|
||||
<% multi_question_list.each_with_index do |exercise_question, list_index| %>
|
||||
<span id="question_answer_span_<%= exercise_question.id %>" class="fl mr10 question_answer_span <%= User.current.exercise_answer.where(:exercise_question_id => exercise_question.id).count > 0 ? 'bg_blue' : '' %>"><%= list_index + 1 %></span>
|
||||
<% end %>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<% if mc_question_list.count > 0 %>
|
||||
<div class="mt5">
|
||||
<span class="f14 mt5 mr10 fl">单选题:</span>
|
||||
<% mc_question_list.each_with_index do |exercise_question, list_index| %>
|
||||
<span id="question_answer_span_<%= exercise_question.id %>" class="fl mr10 question_answer_span <%= User.current.exercise_answer.where(:exercise_question_id => exercise_question.id).count > 0 ? 'bg_blue' : '' %>"><%= list_index + 1 %></span>
|
||||
<% end %>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<% end %>
|
||||
<% if mcq_question_list.count > 0 %>
|
||||
<div class="mt5">
|
||||
<span class="f14 mt5 mr10 fl">多选题:</span>
|
||||
<% mcq_question_list.each_with_index do |exercise_question, list_index| %>
|
||||
<span id="question_answer_span_<%= exercise_question.id %>" class="fl mr10 question_answer_span <%= User.current.exercise_answer.where(:exercise_question_id => exercise_question.id).count > 0 ? 'bg_blue' : '' %>"><%= list_index + 1 %></span>
|
||||
<% end %>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<% end %>
|
||||
<% if single_question_list.count > 0 %>
|
||||
<div class="mt5">
|
||||
<span class="f14 mt5 mr10 fl">填空题:</span>
|
||||
<% single_question_list.each_with_index do |exercise_question, list_index| %>
|
||||
<span id="question_answer_span_<%= exercise_question.id %>" class="fl mr10 question_answer_span <%= User.current.exercise_answer.where(:exercise_question_id => exercise_question.id).count > 0 ? 'bg_blue' : '' %>"><%= list_index + 1 %></span>
|
||||
<% end %>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<% end %>
|
||||
<% if multi_question_list.count > 0 %>
|
||||
<div class="mt5">
|
||||
<span class="f14 mt5 mr10 fl">问答题:</span>
|
||||
<% multi_question_list.each_with_index do |exercise_question, list_index| %>
|
||||
<span id="question_answer_span_<%= exercise_question.id %>" class="fl mr10 question_answer_span <%= User.current.exercise_answer.where(:exercise_question_id => exercise_question.id).count > 0 ? 'bg_blue' : '' %>"><%= list_index + 1 %></span>
|
||||
<% end %>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<div class="ur_buttons">
|
||||
|
|
Loading…
Reference in New Issue