Browse Source

feat: set guidance pos bottom for 22/23 log

pull/1440/head
natdeanlewissoftwire 3 years ago
parent
commit
de855ce2c7
  1. 2
      app/models/form/question.rb
  2. 3
      config/forms/2022_2023.json

2
app/models/form/question.rb

@ -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 = hsh["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"]

3
config/forms/2022_2023.json

@ -723,7 +723,8 @@
"header": "What is the void date?", "header": "What is the void date?",
"hint_text": "For example, 27 3 2021.", "hint_text": "For example, 27 3 2021.",
"type": "date", "type": "date",
"guidance_partial": "void_date" "guidance_partial": "void_date",
"guidance_position": 2
} }
}, },
"depends_on": [ "depends_on": [

Loading…
Cancel
Save