|
|
|
@ -48,22 +48,20 @@ class Form::Question
|
|
|
|
|
delegate :subsection, to: :page |
|
|
|
|
delegate :form, to: :subsection |
|
|
|
|
|
|
|
|
|
def check_answer_label |
|
|
|
|
return @check_answer_label if @copy_key.nil? |
|
|
|
|
def copy_key |
|
|
|
|
@copy_key ||= "#{form.type}.#{subsection.id}.#{id}" |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
I18n.t("forms.#{form.start_date.year}.#{@copy_key}.check_answer_label") |
|
|
|
|
def check_answer_label |
|
|
|
|
@check_answer_label ||= I18n.t("forms.#{form.start_date.year}.#{copy_key}.check_answer_label") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def header |
|
|
|
|
return @header if @copy_key.nil? |
|
|
|
|
|
|
|
|
|
I18n.t("forms.#{form.start_date.year}.#{@copy_key}.question_text") |
|
|
|
|
@header ||= I18n.t("forms.#{form.start_date.year}.#{copy_key}.question_text") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def hint_text |
|
|
|
|
return @hint_text if @copy_key.nil? |
|
|
|
|
|
|
|
|
|
I18n.t("forms.#{form.start_date.year}.#{@copy_key}.hint_text") |
|
|
|
|
@hint_text ||= I18n.t("forms.#{form.start_date.year}.#{copy_key}.hint_text") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def answer_label(log, user = nil) |
|
|
|
|