add question_answer in pdf and change local for optional field
This commit is contained in:
parent
ee2f795dec
commit
215c989a6c
3 changed files with 6 additions and 2 deletions
|
@ -201,6 +201,10 @@ end
|
|||
def add_avis(pdf, avis)
|
||||
format_in_2_lines(pdf, "Avis de #{avis.email_to_display}#{avis.confidentiel? ? ' (confidentiel)' : ''}",
|
||||
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
|
||||
|
||||
def add_etat_dossier(pdf, dossier)
|
||||
|
|
|
@ -16,7 +16,7 @@ en:
|
|||
revoke: Revoke opinion request
|
||||
remind: Remind 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
|
||||
question_answer:
|
||||
true: 'yes'
|
||||
|
|
|
@ -16,7 +16,7 @@ fr:
|
|||
revoke: Révoquer la demande d’avis
|
||||
remind: Relancer 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
|
||||
question_answer:
|
||||
true: oui
|
||||
|
|
Loading…
Reference in a new issue