Submit social housing lettings and sales data (CORE)
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.
 
 
 
 

7 lines
480 B

module InteruptionScreenHelper
def display_informative_text(informative_text, case_log)
translation_question = informative_text["argument"].map { |x| case_log.form.get_question(x) }
translation = I18n.t(informative_text["translation"], informative_text["argument"][0].to_sym => translation_question[0].answer_label(case_log), informative_text["argument"][1].to_sym => translation_question[1].answer_label(case_log))
"<span>#{translation}</span>".html_safe
end
end