<%= exercise.exercise_name%>

开始时间:<%=format_time(exercise_user.start_at.to_s) %> 测验时长:<%=exercise.time %>分钟 剩余时长:1 小时 30 分钟 0 秒
<%= exercise.exercise_description.nil? ? "" : exercise.exercise_description.html_safe%>
<% mc_question_list = exercise_questions.where("question_type=1") %> <% mcq_question_list = exercise_questions.where("question_type=2") %> <% single_question_list = exercise_questions.where("question_type=3") %>
">

单选题

<% mc_question_list.each do |exercise_question| %>
第<%= exercise_question.question_number%>题.(<%= exercise_question.question_score %>分)
<%= exercise_question.question_title %>
<% exercise_question.exercise_choices.reorder("choice_position").each_with_index do |exercise_choice,index| %> <% end %>
<% end %>
">

多选题

<% mcq_question_list.each do |exercise_question| %>
第<%= exercise_question.question_number%>题.(<%= exercise_question.question_score %>分)
<%= exercise_question.question_title %>
<% exercise_question.exercise_choices.reorder("choice_position").each_with_index do |exercise_choice,index| %> <% end %>
<% end %>
">

填空题

<% single_question_list.each do |exercise_question| %>
第<%= exercise_question.question_number%>题.(<%= exercise_question.question_score %>分)
<%= exercise_question.question_title %>
>
<% end %>
<%= link_to l(:button_submit),commit_exercise_exercise_path(exercise), :method => :post,:class => "ur_button_submit",:style => "margin-left:80px;",:format => 'js',:remote=>true %>