From d7db0009feae648294e49cc110aaa9a98a51c9ab Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Thu, 2 Dec 2021 11:04:16 +0000 Subject: [PATCH] Add width attributes to test form --- spec/fixtures/forms/test_form.json | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/spec/fixtures/forms/test_form.json b/spec/fixtures/forms/test_form.json index fbdade1a3..95add8988 100644 --- a/spec/fixtures/forms/test_form.json +++ b/spec/fixtures/forms/test_form.json @@ -12,7 +12,8 @@ "tenant_code": { "check_answer_label": "Tenant code", "header": "What is the tenant code?", - "type": "text" + "type": "text", + "width": 10 } } }, @@ -24,7 +25,8 @@ "type": "numeric", "min": 0, "max": 150, - "step": 1 + "step": 1, + "width": 2 } } }, @@ -76,7 +78,8 @@ "type": "numeric", "min": 0, "max": 150, - "step": 1 + "step": 1, + "width": 2 }, "sex2": { "check_answer_label": "Person 2's gender", @@ -211,7 +214,8 @@ "tenancy_code": { "check_answer_label": "What is the tenancy code?", "header": "What is the tenancy code?", - "type": "text" + "type": "text", + "width": 10 } } } @@ -312,7 +316,8 @@ "header": "What is the tenant’s /and partner’s combined income after tax?", "type": "numeric", "min": 0, - "step": 1 + "step": 1, + "width": 5 }, "incfreq": { "check_answer_label": "Income Frequency", @@ -410,6 +415,7 @@ "type": "numeric", "min": 0, "step": 1, + "width": 4, "fields-to-add": [ "brent", "scharge", @@ -425,6 +431,7 @@ "type": "numeric", "min": 0, "step": 1, + "width": 4, "fields-to-add": [ "brent", "scharge", @@ -440,6 +447,7 @@ "type": "numeric", "min": 0, "step": 1, + "width": 4, "fields-to-add": [ "brent", "scharge", @@ -455,6 +463,7 @@ "type": "numeric", "min": 0, "step": 1, + "width": 4, "fields-to-add": [ "brent", "scharge", @@ -470,6 +479,7 @@ "type": "numeric", "min": 0, "step": 1, + "width": 4, "readonly": true } } @@ -529,13 +539,15 @@ "header": "Postcode for the previous accommodation", "hint_text": "If the household has moved from settled accommodation immediately prior to being re-housed", "type": "text", + "width": 5, "conditional_for": { "faake_key": "fake_condition" } }, "previous_postcode": { "check_answer_label": "Postcode of previous accomodation if the household has moved from settled accommodation", "header": "Postcode for the previous accommodation", "hint_text": "If the household has moved from settled accommodation immediately prior to being re-housed", - "type": "text" + "type": "text", + "width": 5 } } }, @@ -573,7 +585,8 @@ "declaration": { "check_answer_label": "", "header": "What is the tenant code?", - "type": "text" + "type": "text", + "width": 10 } } }