From de855ce2c76b1810748f071f3d165d73b6901a8a Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Fri, 17 Mar 2023 17:13:03 +0000 Subject: [PATCH] feat: set guidance pos bottom for 22/23 log --- app/models/form/question.rb | 2 +- config/forms/2022_2023.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/models/form/question.rb b/app/models/form/question.rb index de77674e6..7fd405b75 100644 --- a/app/models/form/question.rb +++ b/app/models/form/question.rb @@ -14,11 +14,11 @@ class Form::Question def initialize(id, hsh, page) @id = id @page = page - @guidance_position = GuidancePosition::TOP if hsh @check_answer_label = hsh["check_answer_label"] @header = hsh["header"] @guidance_partial = hsh["guidance_partial"] + @guidance_position = hsh["guidance_position"] ||= GuidancePosition::TOP @hint_text = hsh["hint_text"] @type = hsh["type"] @min = hsh["min"] diff --git a/config/forms/2022_2023.json b/config/forms/2022_2023.json index d558f15e9..f275258ea 100644 --- a/config/forms/2022_2023.json +++ b/config/forms/2022_2023.json @@ -723,7 +723,8 @@ "header": "What is the void date?", "hint_text": "For example, 27 3 2021.", "type": "date", - "guidance_partial": "void_date" + "guidance_partial": "void_date", + "guidance_position": 2 } }, "depends_on": [