Skip to content

Commit a357f2c

Browse files
authored
Lahf Lahftu forms (#224)
* Lahf lahftu forms * fix(LAHF): Make file uploads mandatory and add number validation - Set occupational therapy report upload as required (minimumRequiredFiles: 1) - Set itemised quotes upload as required (minimumRequiredFiles: 1) - Set void rent costs evidence upload as required (minimumRequiredFiles: 1) - Add minimum value validation to funding amount fields (min: 1) * fix(LAHF): Add date format hint text to improve user experience - Add 'For example, 27 4 2025' hint to occupational therapy assessment date - Add date format hints to target commencement and completion dates - Add date format hint to estimated move-in date
1 parent 6f8a89e commit a357f2c

8 files changed

+3065
-0
lines changed
Lines changed: 359 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,359 @@
1+
{
2+
"metadata": {},
3+
"startPage": "/what-we-need-to-know",
4+
"pages": [
5+
{
6+
"title": "What we need to know",
7+
"path": "/what-we-need-to-know",
8+
"components": [
9+
{
10+
"name": "riddpR",
11+
"options": {},
12+
"type": "Para",
13+
"content": "In this section, we'll ask about:\n<ul>\n<li>the adaptations that are required on the property</li>\n<li>the amount of funding you are applying for </li>\n<li>a breakdown of the costs, including itemised quotes</li>\n<li>whether you are seeking funding to cover void rent costs and, if so, evidence of any forgone rent </li>\n</ul>",
14+
"schema": {}
15+
}
16+
],
17+
"next": [
18+
{
19+
"path": "/tell-us-what-adaptations-are-required-on-the-property"
20+
}
21+
],
22+
"section": "FabDefault"
23+
},
24+
{
25+
"path": "/tell-us-what-adaptations-are-required-on-the-property",
26+
"title": "Tell us what adaptations are required on the property.",
27+
"components": [
28+
{
29+
"name": "rXDwuw",
30+
"options": {},
31+
"type": "Para",
32+
"content": "Do not include any personal details that could make a person identifiable.",
33+
"schema": {}
34+
},
35+
{
36+
"name": "uvAgKD",
37+
"options": {
38+
"hideTitle": true
39+
},
40+
"type": "FreeTextField",
41+
"title": "Tell us what adaptations are required on the property.",
42+
"schema": {}
43+
}
44+
],
45+
"next": [
46+
{
47+
"path": "/how-much-funding-are-you-applying-for-in-total"
48+
}
49+
],
50+
"section": "FabDefault"
51+
},
52+
{
53+
"title": "How much funding are you applying for in total?",
54+
"path": "/how-much-funding-are-you-applying-for-in-total",
55+
"components": [
56+
{
57+
"name": "DdMauS",
58+
"options": {
59+
"prefix": "\u00a3",
60+
"hideTitle": true
61+
},
62+
"type": "NumberField",
63+
"title": "How much funding are you applying for in total?",
64+
"schema": {
65+
"min": 1
66+
}
67+
}
68+
],
69+
"section": "FabDefault",
70+
"next": [
71+
{
72+
"path": "/give-a-detailed-breakdown-of-the-costs-for-which-funding-is-being-requested"
73+
}
74+
]
75+
},
76+
{
77+
"path": "/give-a-detailed-breakdown-of-the-costs-for-which-funding-is-being-requested",
78+
"title": "Give a detailed breakdown of the costs for which funding is being requested.",
79+
"components": [
80+
{
81+
"name": "rdPWLS",
82+
"options": {},
83+
"type": "Para",
84+
"content": "Add a cost then 'Save and add another' to add more as necessary",
85+
"schema": {}
86+
},
87+
{
88+
"name": "vSyica",
89+
"type": "MultiInputField",
90+
"title": "Give a detailed breakdown of the costs for which funding is being requested.",
91+
"children": [
92+
{
93+
"type": "TextField",
94+
"name": "jEhzec",
95+
"options": {
96+
"hideTitle": false
97+
},
98+
"title": "Brief description",
99+
"hint": "",
100+
"schema": {
101+
"hideTitle": false
102+
}
103+
},
104+
{
105+
"type": "NumberField",
106+
"name": "MUtVpb",
107+
"options": {
108+
"prefix": "\u00a3"
109+
},
110+
"title": "Amount of funding requested",
111+
"hint": "",
112+
"schema": {
113+
"min": 1
114+
}
115+
}
116+
],
117+
"schema": {
118+
"hideTitle": false
119+
},
120+
"options": {
121+
"hideTitle": false,
122+
"columnTitles": [
123+
"Brief description",
124+
"Amount of funding requested"
125+
]
126+
}
127+
}
128+
],
129+
"next": [
130+
{
131+
"path": "/upload-itemised-quotes-listing-the-costs-and-installation-fees-associated-with-the-adaptations"
132+
}
133+
],
134+
"section": "FabDefault",
135+
"options": {
136+
"summaryDisplayMode": {
137+
"samePage": true,
138+
"separatePage": false,
139+
"hideRowTitles": false
140+
},
141+
"customText": {
142+
"samePageTitle": "Breakdown of costs ",
143+
"samePageTableItemName": "cost"
144+
}
145+
},
146+
"controller": "RepeatingFieldPageController"
147+
},
148+
{
149+
"path": "/upload-itemised-quotes-listing-the-costs-and-installation-fees-associated-with-the-adaptations",
150+
"title": "Upload itemised quotes listing the costs and installation fees associated with the adaptations.",
151+
"components": [
152+
{
153+
"name": "LbqcYE",
154+
"options": {
155+
"dropzoneConfig": {
156+
"maxFiles": 10,
157+
"parallelUploads": 1,
158+
"maxFilesize": 10,
159+
"acceptedFiles": ",image/jpeg,image/png,application/pdf,text/plain,application/msword,application/vndopenxmlformats-officedocument.wordprocessingml.document,application/vnd.oasis.opendocument.text,text/csv,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel,application/vnd.oasis.opendocument.spreadsheet"
160+
},
161+
"showNoScriptWarning": false,
162+
"minimumRequiredFiles": 1,
163+
"hideTitle": false
164+
},
165+
"type": "ClientSideFileUploadField",
166+
"title": "Upload itemised quotes listing the costs and installation fees associated with the adaptations.",
167+
"schema": {}
168+
}
169+
],
170+
"next": [
171+
{
172+
"path": "/void-rent-costs"
173+
}
174+
],
175+
"section": "FabDefault"
176+
},
177+
{
178+
"path": "/check-your-answers",
179+
"title": "Check your answers",
180+
"components": [],
181+
"next": [],
182+
"controller": "./pages/summary.js",
183+
"section": "FabDefault"
184+
},
185+
{
186+
"path": "/void-rent-costs",
187+
"title": "Void rent costs",
188+
"components": [
189+
{
190+
"name": "DqeGZe",
191+
"options": {},
192+
"type": "Para",
193+
"content": "56 days\u2019 void rent costs are already built into the Afghan Resettlement Programme's integration tariff.<br><br> \n\nIf the required adaptations to the property are estimated to take longer, you may request up to an additional 56 days\u2019 void rent costs.",
194+
"schema": {}
195+
},
196+
{
197+
"name": "VkaoCa",
198+
"options": {},
199+
"type": "Para",
200+
"content": "<legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n Are you requesting funding to cover void rent costs?</legend>",
201+
"schema": {}
202+
},
203+
{
204+
"name": "dIadTN",
205+
"options": {
206+
"hideTitle": true
207+
},
208+
"type": "YesNoField",
209+
"title": "Are you requesting funding to cover void rent costs?",
210+
"values": {
211+
"type": "listRef"
212+
},
213+
"schema": {}
214+
}
215+
],
216+
"next": [
217+
{
218+
"path": "/check-your-answers",
219+
"condition": "BJFZzu"
220+
},
221+
{
222+
"path": "/upload-evidence-of-rent-forgone-including-the-relevant-time-period",
223+
"condition": "NHwDtf"
224+
}
225+
],
226+
"section": "FabDefault"
227+
},
228+
{
229+
"path": "/upload-evidence-of-rent-forgone-including-the-relevant-time-period",
230+
"title": "Upload evidence of rent forgone, including the relevant time period.",
231+
"components": [
232+
{
233+
"name": "MOJQrC",
234+
"options": {},
235+
"type": "Para",
236+
"content": "Evidence should include:\n<ul>\n<li>confirmation of rent foregone, for example proof of the applicable rent rate for the property such as the social rent rate or affordable rent rate</li>\n<li>proof of the expected time period for works to complete the adaptations required</li>\n</ul>\n\n",
237+
"schema": {}
238+
},
239+
{
240+
"name": "VAfjzF",
241+
"options": {},
242+
"type": "Para",
243+
"content": "You must review all information and redact any details that could identify a property prior to submission. "
244+
},
245+
{
246+
"name": "CuwIiM",
247+
"options": {
248+
"dropzoneConfig": {
249+
"maxFiles": 10,
250+
"parallelUploads": 1,
251+
"maxFilesize": 10,
252+
"acceptedFiles": ",image/jpeg,image/png,application/pdf,text/plain,application/msword,application/vndopenxmlformats-officedocument.wordprocessingml.document,application/vnd.oasis.opendocument.text,text/csv,application/vnd.ms-excel,application/vnd.oasis.opendocument.spreadsheet,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
253+
},
254+
"showNoScriptWarning": false,
255+
"minimumRequiredFiles": 1,
256+
"hideTitle": true
257+
},
258+
"type": "ClientSideFileUploadField",
259+
"title": "Upload evidence of rent forgone, including the relevant time period.",
260+
"schema": {}
261+
},
262+
{
263+
"name": "NibzHN",
264+
"options": {},
265+
"type": "Para",
266+
"content": "<legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\nAny additional information about the evidence uploaded (optional)</legend>",
267+
"schema": {}
268+
},
269+
{
270+
"name": "Czqzcm",
271+
"options": {
272+
"hideTitle": true,
273+
"required": false,
274+
"optionalText": false
275+
},
276+
"type": "FreeTextField",
277+
"title": "Any additional information about the evidence uploaded (optional)",
278+
"schema": {}
279+
}
280+
],
281+
"next": [
282+
{
283+
"path": "/check-your-answers"
284+
}
285+
],
286+
"section": "FabDefault"
287+
}
288+
],
289+
"lists": [],
290+
"sections": [
291+
{
292+
"name": "FabDefault",
293+
"title": "Default Section",
294+
"hideTitle": true
295+
}
296+
],
297+
"conditions": [
298+
{
299+
"displayName": "If void rent costs",
300+
"name": "NHwDtf",
301+
"value": {
302+
"name": "If void rent costs",
303+
"conditions": [
304+
{
305+
"field": {
306+
"name": "FabDefault.dIadTN",
307+
"type": "YesNoField",
308+
"display": "Are you requesting funding to cover void rent costs?"
309+
},
310+
"operator": "is",
311+
"value": {
312+
"type": "Value",
313+
"value": "true",
314+
"display": "true"
315+
}
316+
}
317+
]
318+
}
319+
},
320+
{
321+
"displayName": "If no void rent costs",
322+
"name": "BJFZzu",
323+
"value": {
324+
"name": "If no void rent costs",
325+
"conditions": [
326+
{
327+
"field": {
328+
"name": "FabDefault.dIadTN",
329+
"type": "YesNoField",
330+
"display": "Are you requesting funding to cover void rent costs?"
331+
},
332+
"operator": "is",
333+
"value": {
334+
"type": "Value",
335+
"value": "false",
336+
"display": "false"
337+
}
338+
}
339+
]
340+
}
341+
}
342+
],
343+
"fees": [],
344+
"outputs": [],
345+
"version": 2,
346+
"skipSummary": false,
347+
"feeOptions": {
348+
"allowSubmissionWithoutPayment": true,
349+
"maxAttempts": 3,
350+
"showPaymentSkippedWarningPage": false
351+
},
352+
"markAsComplete": false,
353+
"name": "Adaptation requirements",
354+
"feedback": {
355+
"feedbackForm": false,
356+
"url": "/bfdbd"
357+
},
358+
"phaseBanner": {}
359+
}

0 commit comments

Comments
 (0)