|
|
|
@ -182,7 +182,7 @@
|
|
|
|
|
<% q.exercise_choices.each do |s| %>
|
|
|
|
|
<% check_answer = (user_answer.present? && (s.id == user_answer.first.exercise_choice_id)) ? "choose-answer" : '' %>
|
|
|
|
|
<div class="pbt10 clearfix main-choice">
|
|
|
|
|
<span class="choose-radio <%= check_answer %> pull-left mt8"></span>
|
|
|
|
|
<span class="choose-radio <%= check_answer %> pull-left mt10"></span>
|
|
|
|
|
<span class="inline-block pull-left ml10 choice-text"><%= to_markdown(s.choice_text,@request_url) %></span>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
@ -191,9 +191,9 @@
|
|
|
|
|
<% check_answer = (user_answer.present? && (user_answer.pluck(:exercise_choice_id).include?(s.id))) ? true : false %>
|
|
|
|
|
<div class="pbt10 clearfix main-choice">
|
|
|
|
|
<% if check_answer %>
|
|
|
|
|
<span class="choose-checkbox choose-answer-multi mt8 pull-left" ></span>
|
|
|
|
|
<span class="choose-checkbox choose-answer-multi mt10 pull-left" ></span>
|
|
|
|
|
<% else %>
|
|
|
|
|
<span class="choose-checkbox pull-left mt8"></span>
|
|
|
|
|
<span class="choose-checkbox pull-left mt10"></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
<span class="inline-block pull-left choice-text ml10"><%= to_markdown(s.choice_text,@request_url) %></span>
|
|
|
|
|
</div>
|
|
|
|
@ -227,9 +227,11 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
<% elsif q_type == 4 %>
|
|
|
|
|
<% check_answer = (user_answer.present? ? user_answer.first.answer_text : '--') %>
|
|
|
|
|
<p class="flex-nowrap">
|
|
|
|
|
<span class="null-answer main-height"><%= to_markdown(check_answer,@request_url) %></span>
|
|
|
|
|
</p>
|
|
|
|
|
<div class="flex-nowrap">
|
|
|
|
|
<div class="null-answer main-height">
|
|
|
|
|
<%= to_markdown(check_answer,@request_url) %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<% else %>
|
|
|
|
|
<div class="mbt10">
|
|
|
|
|
<p class="text-gray mbt10">
|
|
|
|
|