add question_answer in pdf and change local for optional field

This commit is contained in:
Lisa Durand 2023-03-16 11:07:26 +01:00
parent ee2f795dec
commit 215c989a6c
3 changed files with 6 additions and 2 deletions

View file

@ -201,6 +201,10 @@ end
def add_avis(pdf, avis) def add_avis(pdf, avis)
format_in_2_lines(pdf, "Avis de #{avis.email_to_display}#{avis.confidentiel? ? ' (confidentiel)' : ''}", format_in_2_lines(pdf, "Avis de #{avis.email_to_display}#{avis.confidentiel? ? ' (confidentiel)' : ''}",
avis.answer || 'En attente de réponse') avis.answer || 'En attente de réponse')
if avis.question_answer.present?
format_in_2_columns(pdf, "Réponse oui/non ", t("question_answer.#{avis.question_answer}", scope: 'helpers.label'))
end
end end
def add_etat_dossier(pdf, dossier) def add_etat_dossier(pdf, dossier)

View file

@ -16,7 +16,7 @@ en:
revoke: Revoke opinion request revoke: Revoke opinion request
remind: Remind the expert remind: Remind the expert
question_label: Ask a question to the expert question_label: Ask a question to the expert
question_label_hint: (optional field) the expert could answer by yes/no question_label_hint: (optional) the expert could answer by yes/no
introduction: Introduction message introduction: Introduction message
question_answer: question_answer:
true: 'yes' true: 'yes'

View file

@ -16,7 +16,7 @@ fr:
revoke: Révoquer la demande davis revoke: Révoquer la demande davis
remind: Relancer lexpert remind: Relancer lexpert
question_label: Posez une question à l'expert question_label: Posez une question à l'expert
question_label_hint: (champ optionnel) l'expert pourra répondre par oui/non question_label_hint: (facultatif) l'expert pourra répondre par oui/non
introduction: Message d'introduction introduction: Message d'introduction
question_answer: question_answer:
true: oui true: oui