|
|
|
@ -12,15 +12,14 @@
|
|
|
|
|
<div class="fontGrey2">
|
|
|
|
|
<span class="mr130">发布时间:<%=format_time(exercise.publish_time.to_s) %></span>
|
|
|
|
|
<span class="mr130">截止时间:<%=format_time(exercise.end_time.to_s) %></span>
|
|
|
|
|
<% time = exercise_user.end_at - exercise_user.start_at %>
|
|
|
|
|
<span class="fr">测验时长:<%=exercise.time %>分钟</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="testDesEdit mt5"><%= exercise.exercise_description.nil? ? "" : exercise.exercise_description.html_safe%></div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<% 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 = exercise.exercise_questions.where("question_type=1") %>
|
|
|
|
|
<% mcq_question_list = exercise.exercise_questions.where("question_type=2") %>
|
|
|
|
|
<% single_question_list = exercise.exercise_questions.where("question_type=3") %>
|
|
|
|
|
<div class="testStatus" id="mc_question_list" style="display: <%=mc_question_list.count > 0 ? "" : "none" %>">
|
|
|
|
|
<h3 class="fontGrey3">单选题</h3>
|
|
|
|
|
<% mc_question_list.each do |exercise_question| %>
|
|
|
|
@ -107,8 +106,8 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ur_buttons">
|
|
|
|
|
<%= link_to l(:button_submit),exercise_index_path(:course_id => @course.id),:class => "ur_button_submit" %>
|
|
|
|
|
<%= link_to l(:button_edit), edit_exercise_path(exercise.id), :class => "ur_button_submit fr"%>
|
|
|
|
|
<%= link_to "确定",exercise_index_path(:course_id => @course.id),:class => "ur_button_submit" %>
|
|
|
|
|
<%= link_to l(:button_edit), edit_exercise_path(exercise.id), :class => "ur_button_submit", :style => "float:right"%>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<!--contentbox end-->
|
|
|
|
|