You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
json.partial! "commons/success"
|
|
|
|
|
|
|
|
|
|
json.exercise do
|
|
|
|
|
json.extract! @exercise, :id, :exercise_name,:exercise_description,:exercise_status
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
json.user_permission do
|
|
|
|
|
json.is_teacher @is_teacher_or
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
json.partial! "exercises/exercise_scores"
|
|
|
|
|
|
|
|
|
|
json.exercise_questions do
|
|
|
|
|
json.array! @exercise_questions do |q|
|
|
|
|
|
json.partial! "exercise_questions/exercise_questions",
|
|
|
|
|
question: q,
|
|
|
|
|
choices:q.exercise_choices,
|
|
|
|
|
shixun_challenges: q.exercise_shixun_challenges,
|
|
|
|
|
exercise_type:1,
|
|
|
|
|
user_answer:[],
|
|
|
|
|
shixun_type:0,
|
|
|
|
|
ques_position:nil
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#exercise_type 表示选择公用的模板类型,1为教师预览/编辑,2为空白试卷。
|