|
|
|
@ -14,11 +14,11 @@ class Form::Question |
|
|
|
def initialize(id, hsh, page) |
|
|
|
def initialize(id, hsh, page) |
|
|
|
@id = id |
|
|
|
@id = id |
|
|
|
@page = page |
|
|
|
@page = page |
|
|
|
|
|
|
|
@guidance_position = GuidancePosition::TOP |
|
|
|
if hsh |
|
|
|
if hsh |
|
|
|
@check_answer_label = hsh["check_answer_label"] |
|
|
|
@check_answer_label = hsh["check_answer_label"] |
|
|
|
@header = hsh["header"] |
|
|
|
@header = hsh["header"] |
|
|
|
@guidance_partial = hsh["guidance_partial"] |
|
|
|
@guidance_partial = hsh["guidance_partial"] |
|
|
|
@guidance_position = GuidancePosition::TOP |
|
|
|
|
|
|
|
@hint_text = hsh["hint_text"] |
|
|
|
@hint_text = hsh["hint_text"] |
|
|
|
@type = hsh["type"] |
|
|
|
@type = hsh["type"] |
|
|
|
@min = hsh["min"] |
|
|
|
@min = hsh["min"] |
|
|
|
@ -206,6 +206,7 @@ class Form::Question |
|
|
|
|
|
|
|
|
|
|
|
def unanswered_error_message |
|
|
|
def unanswered_error_message |
|
|
|
return I18n.t("validations.declaration.missing") if id == "declaration" |
|
|
|
return I18n.t("validations.declaration.missing") if id == "declaration" |
|
|
|
|
|
|
|
return I18n.t("validations.privacynotice.missing") if id == "privacynotice" |
|
|
|
|
|
|
|
|
|
|
|
I18n.t("validations.not_answered", question: display_label.downcase) |
|
|
|
I18n.t("validations.not_answered", question: display_label.downcase) |
|
|
|
end |
|
|
|
end |
|
|
|
|