Skip to content

Commit

Permalink
Corrige la restitution du bureau qui était cassée
Browse files Browse the repository at this point in the history
  • Loading branch information
etienneCharignon authored and shanser committed Feb 2, 2021
1 parent 357d700 commit e257d7c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/views/admin/restitutions/_restitution_questions.html.arb
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
panel t('.restitution_questions') do
table_for restitutions.questions_et_reponses do
column t('.question') do |question_reponse|
auto_link(question_reponse[:question])
auto_link(question_reponse[0])
end
column t('.reponse') do |question_reponse|
question = question_reponse[:question]
question = question_reponse[0]
if question.is_a?(QuestionQcm)
question_reponse[:reponse].intitule
question_reponse[1].intitule
else
simple_format(question_reponse[:reponse])
simple_format(question_reponse[1])
end
end
column t('.correct') do |question_reponse|
question = question_reponse[:question]
question_reponse[:reponse].type_choix if question.is_a?(QuestionQcm)
question = question_reponse[0]
question_reponse[1].type_choix if question.is_a?(QuestionQcm)
end
end
end

0 comments on commit e257d7c

Please sign in to comment.