试卷题目排序问题

dev_local
daiao 6 years ago
parent 6713df45db
commit 90ca2b0a6a

@ -1,8 +1,8 @@
<% @exercise_questions.each do |exercise_question| %>
<% @exercise_questions.each_with_index do |exercise_question, index| %>
<div class="census_content clearfix">
<div class="clearfix">
<p class="fl font-15">
第<%= exercise_question.question_number %>题:<span class="color-grey ml10">[<%= exercise_question.question_type_name %>]</span>
第<%= index+1 %>题:<span class="color-grey ml10">[<%= exercise_question.question_type_name %>]</span>
</p>
<p class="fr">正确率:<span class="color-orange03"><%= question_correct_rate exercise_question, @user_ids %>%</span></p>
</div>

@ -246,7 +246,7 @@
<% @exercise.exercise_questions.where("question_type != 5").includes(:exercise_choices, :exercise_standard_answers, exercise_shixun_challenges: :challenge).each_with_index do |exercise_question, i| %>
<div class="question_item_con font-14 user_bg_shadow bor-grey-e mb20 pt15">
<div class="clearfix pl15 pr15">
<p class="fl font-15" id="mao<%= exercise_question.question_number %>">第<%= exercise_question.question_number %>
<p class="fl font-15" id="mao<%= exercise_question.question_number %>">第<%= %>
题:<span class="color-orange03 ml10">[<%= exercise_question.question_type_name %>
]</span><span class="ml10"><%= exercise_question.question_score %>分</span></p>
<% if exercise_question.question_type == 5 %>

Loading…
Cancel
Save