@ons/design-system 62.0.2 → 62.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -63
- package/components/access-code/example-access-code-error.njk +87 -0
- package/components/access-code/example-access-code.njk +63 -0
- package/components/accordion/example-accordion-open.njk +126 -0
- package/components/accordion/example-accordion.njk +25 -0
- package/components/address-input/example-address-input-editable.njk +52 -0
- package/components/address-input/example-address-input-manual.njk +23 -0
- package/components/address-input/example-address-input.njk +40 -0
- package/components/autosuggest/example-autosuggest-country-multiple.njk +30 -0
- package/components/autosuggest/example-autosuggest-country.njk +29 -0
- package/components/back-link/example-back-link.njk +17 -0
- package/components/breadcrumbs/example-breadcrumbs-single.njk +13 -0
- package/components/breadcrumbs/example-breadcrumbs.njk +17 -0
- package/components/button/example-button-custom.njk +20 -0
- package/components/button/example-button-disabled.njk +7 -0
- package/components/button/example-button-download.njk +9 -0
- package/components/button/example-button-ghost.njk +15 -0
- package/components/button/example-button-group.njk +16 -0
- package/components/button/example-button-link.njk +7 -0
- package/components/button/example-button-loader.njk +9 -0
- package/components/button/example-button-new-window.njk +12 -0
- package/components/button/example-button-print.njk +8 -0
- package/components/button/example-button-secondary-small.njk +8 -0
- package/components/button/example-button-secondary.njk +8 -0
- package/components/button/example-button-small.njk +8 -0
- package/components/button/example-button-timer.njk +9 -0
- package/components/button/example-button.njk +6 -0
- package/components/call-to-action/example-call-to-action-default.njk +14 -0
- package/components/card/example-card-set-with-images.njk +41 -0
- package/components/card/example-card-set-with-lists.njk +68 -0
- package/components/card/example-card-set.njk +38 -0
- package/components/card/example-card.njk +9 -0
- package/components/checkboxes/example-checkboxes-disabled.njk +34 -0
- package/components/checkboxes/example-checkboxes-error.njk +60 -0
- package/components/checkboxes/example-checkboxes-with-descriptions.njk +71 -0
- package/components/checkboxes/example-checkboxes-with-hidden-label.njk +177 -0
- package/components/checkboxes/example-checkboxes-with-revealed-checkboxes.njk +86 -0
- package/components/checkboxes/example-checkboxes-with-revealed-radios.njk +69 -0
- package/components/checkboxes/example-checkboxes-with-revealed-select.njk +71 -0
- package/components/checkboxes/example-checkboxes-with-revealed-text-input.njk +59 -0
- package/components/checkboxes/example-checkboxes-with-select-all-button.njk +51 -0
- package/components/checkboxes/example-checkboxes-with-visible-text-input.njk +61 -0
- package/components/checkboxes/example-checkboxes-without-border.njk +33 -0
- package/components/checkboxes/example-checkboxes.njk +46 -0
- package/components/content-pagination/example-content-pagination.njk +20 -0
- package/components/cookies-banner/_macro.njk +2 -2
- package/components/cookies-banner/_macro.spec.js +1 -1
- package/components/cookies-banner/example-cookies-banner-cymraeg.njk +9 -0
- package/components/cookies-banner/example-cookies-banner.njk +7 -0
- package/components/date-input/example-date-input-error.njk +62 -0
- package/components/date-input/example-date-input.njk +36 -0
- package/components/details/example-details-with-saved-state.njk +10 -0
- package/components/details/example-details-with-warning.njk +19 -0
- package/components/details/example-details.njk +9 -0
- package/components/document-list/example-document-list-article-featured.njk +31 -0
- package/components/document-list/example-document-list-articles.njk +60 -0
- package/components/document-list/example-document-list-downloads.njk +59 -0
- package/components/document-list/example-document-list-search-result-featured.njk +19 -0
- package/components/document-list/example-document-list-search-results.njk +67 -0
- package/components/duration/example-duration-error-for-single-field.njk +31 -0
- package/components/duration/example-duration-error.njk +30 -0
- package/components/duration/example-duration.njk +35 -0
- package/components/external-link/example-external-link.njk +8 -0
- package/components/feedback/example-feedback-call-to-action.njk +14 -0
- package/components/footer/example-footer-cymraeg.njk +54 -0
- package/components/footer/example-footer-default.njk +7 -0
- package/components/footer/example-footer-transactional.njk +62 -0
- package/components/footer/example-footer-warning.njk +32 -0
- package/components/footer/example-footer-with-alternative-organisation.njk +124 -0
- package/components/footer/example-footer-with-coat-of-arms.njk +32 -0
- package/components/footer/example-footer-with-copyright.njk +35 -0
- package/components/footer/example-footer.njk +85 -0
- package/components/header/_header.scss +2 -2
- package/components/header/example-header-default.njk +12 -0
- package/components/header/example-header-external-for-survey-with-description.njk +20 -0
- package/components/header/example-header-external-for-surveys.njk +33 -0
- package/components/header/example-header-external-welsh.njk +29 -0
- package/components/header/example-header-external-with-navigation.njk +42 -0
- package/components/header/example-header-external-with-service-links.njk +35 -0
- package/components/header/example-header-external-with-sub-navigation.njk +132 -0
- package/components/header/example-header-internal.njk +32 -0
- package/components/header/example-header-neutral-for-multicoloured-logo.njk +59 -0
- package/components/hero/example-hero-dark.njk +15 -0
- package/components/hero/example-hero-default.njk +14 -0
- package/components/images/example-images-for-regular-screens.njk +8 -0
- package/components/images/example-images-for-retina-screens.njk +10 -0
- package/components/input/example-input-email.njk +12 -0
- package/components/input/example-input-number-prefixed.njk +17 -0
- package/components/input/example-input-number-suffixed.njk +34 -0
- package/components/input/example-input-number.njk +15 -0
- package/components/input/example-input-numeric-values.njk +64 -0
- package/components/input/example-input-telephone.njk +13 -0
- package/components/input/example-input-text-width-constrained.njk +11 -0
- package/components/input/example-input-text-with-character-limit-checker.njk +17 -0
- package/components/input/example-input-text-with-description.njk +10 -0
- package/components/input/example-input-text.njk +9 -0
- package/components/label/example-label-with-description.njk +8 -0
- package/components/label/example-label.njk +8 -0
- package/components/metadata/example-metadata.njk +57 -0
- package/components/mutually-exclusive/example-mutually-exclusive-checkboxes.njk +71 -0
- package/components/mutually-exclusive/example-mutually-exclusive-date-with-error.njk +47 -0
- package/components/mutually-exclusive/example-mutually-exclusive-date.njk +49 -0
- package/components/mutually-exclusive/example-mutually-exclusive-duration.njk +45 -0
- package/components/mutually-exclusive/example-mutually-exclusive-email.njk +36 -0
- package/components/mutually-exclusive/example-mutually-exclusive-multiple-options.njk +63 -0
- package/components/mutually-exclusive/example-mutually-exclusive-number.njk +43 -0
- package/components/mutually-exclusive/example-mutually-exclusive-textarea.njk +40 -0
- package/components/pagination/example-pagination-first.njk +24 -0
- package/components/pagination/example-pagination-last.njk +24 -0
- package/components/pagination/example-pagination-with-no-range-indicator.njk +42 -0
- package/components/pagination/example-pagination.njk +116 -0
- package/components/panel/example-panel-bare.njk +9 -0
- package/components/panel/example-panel-with-announcement.njk +18 -0
- package/components/panel/example-panel-with-error-details.njk +18 -0
- package/components/panel/example-panel-with-error-summary.njk +25 -0
- package/components/panel/example-panel-with-information.njk +7 -0
- package/components/panel/example-panel-with-spacious-information.njk +7 -0
- package/components/panel/example-panel-with-success-message.njk +10 -0
- package/components/panel/example-panel-with-warning.njk +8 -0
- package/components/password/example-password.njk +11 -0
- package/components/phase-banner/example-phase-banner-alpha.njk +10 -0
- package/components/phase-banner/example-phase-banner-beta.njk +9 -0
- package/components/question/example-question-ccs.njk +49 -0
- package/components/question/example-question-fieldset.njk +99 -0
- package/components/question/example-question-interviewer-note.njk +38 -0
- package/components/question/example-question-no-fieldset.njk +46 -0
- package/components/radios/example-radios-with-clear-button.njk +97 -0
- package/components/radios/example-radios-with-descriptions.njk +57 -0
- package/components/radios/example-radios-with-error.njk +38 -0
- package/components/radios/example-radios-with-revealed-checkboxes.njk +69 -0
- package/components/radios/example-radios-with-revealed-radios.njk +68 -0
- package/components/radios/example-radios-with-revealed-select.njk +69 -0
- package/components/radios/example-radios-with-revealed-text-input.njk +80 -0
- package/components/radios/example-radios-with-separator.njk +59 -0
- package/components/radios/example-radios-with-visible-text-input.njk +40 -0
- package/components/radios/example-radios-without-border.njk +48 -0
- package/components/radios/example-radios.njk +38 -0
- package/components/related-content/example-related-content-general.njk +44 -0
- package/components/related-content/example-related-content-multiple-rows-of-links.njk +51 -0
- package/components/related-content/example-related-content-social-media.njk +40 -0
- package/components/relationships/example-relationships-error.njk +211 -0
- package/components/relationships/example-relationships-you.njk +187 -0
- package/components/relationships/example-relationships.njk +185 -0
- package/components/search/example-search-with-character-check.njk +23 -0
- package/components/search/example-search-with-placeholder.njk +16 -0
- package/components/search/example-search.njk +16 -0
- package/components/section-navigation/example-section-navigation-vertical.njk +40 -0
- package/components/section-navigation/example-section-navigation.njk +21 -0
- package/components/select/example-select-wide.njk +55 -0
- package/components/select/example-select-with-error.njk +58 -0
- package/components/select/example-select-with-inline-label.njk +23 -0
- package/components/select/example-select.njk +50 -0
- package/components/share-page/example-share-page.njk +11 -0
- package/components/skip-to-content/example-skip-to-content.njk +10 -0
- package/components/status/example-status-dead.njk +7 -0
- package/components/status/example-status-error.njk +7 -0
- package/components/status/example-status-neutral-information.njk +6 -0
- package/components/status/example-status-pending.njk +7 -0
- package/components/status/example-status-small.njk +8 -0
- package/components/status/example-status-success.njk +7 -0
- package/components/summary/example-summary-grouped-total.njk +67 -0
- package/components/summary/example-summary-grouped-with-errors.njk +96 -0
- package/components/summary/example-summary-grouped.njk +353 -0
- package/components/summary/example-summary-household-no-rows.njk +20 -0
- package/components/summary/example-summary-household.njk +77 -0
- package/components/summary/example-summary-hub.njk +170 -0
- package/components/summary/example-summary-multiple.njk +81 -0
- package/components/summary/example-summary-no-action.njk +40 -0
- package/components/summary/example-summary.njk +107 -0
- package/components/table/example-table-basic.njk +47 -0
- package/components/table/example-table-compact.njk +73 -0
- package/components/table/example-table-footer.njk +56 -0
- package/components/table/example-table-numeric.njk +81 -0
- package/components/table/example-table-responsive.njk +89 -0
- package/components/table/example-table-scrollable.njk +158 -0
- package/components/table/example-table-sortable.njk +236 -0
- package/components/table-of-contents/example-table-of-contents-grouped.njk +50 -0
- package/components/table-of-contents/example-table-of-contents-single.njk +39 -0
- package/components/table-of-contents/example-table-of-contents-sticky.njk +78 -0
- package/components/tabs/example-tabs-details.njk +59 -0
- package/components/tabs/example-tabs.njk +39 -0
- package/components/textarea/example-textarea-error.njk +16 -0
- package/components/textarea/example-textarea-with-character-limit.njk +18 -0
- package/components/textarea/example-textarea.njk +12 -0
- package/components/timeline/example-timeline.njk +35 -0
- package/components/timeout-modal/example-timeout-modal.njk +16 -0
- package/components/timeout-panel/example-panel-with-timeout-warning.njk +13 -0
- package/components/upload/example-upload-error.njk +16 -0
- package/components/upload/example-upload.njk +12 -0
- package/components/video/example-video.njk +14 -0
- package/css/main.css +3 -3
- package/css/print.css +1 -1
- package/layout/_template.njk +1 -12
- package/package.json +3 -8
- package/scss/base/_typography.scss +2 -2
- package/scss/main.scss +0 -1
- package/scss/print.scss +13 -5
- package/scss/utilities/_highlight.scss +6 -0
- package/scss/utilities/_index.scss +1 -0
- package/components/code-highlight/_macro.njk +0 -5
- package/components/code-highlight/_macro.spec.js +0 -56
- package/components/code-highlight/code-highlight.spec.js +0 -18
- package/scss/patternlib.scss +0 -148
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{% from "components/summary/_macro.njk" import onsSummary %}
|
|
2
|
+
{{
|
|
3
|
+
onsSummary({
|
|
4
|
+
"summaries": [
|
|
5
|
+
{
|
|
6
|
+
"groups": [
|
|
7
|
+
{
|
|
8
|
+
"groupTitle": "Summary - Section Title",
|
|
9
|
+
"rows": [
|
|
10
|
+
{
|
|
11
|
+
"rowTitle": "For the period 1 May 2017 to 31 May 2017, what was the total turnover of Essential Enterprise Ltd?",
|
|
12
|
+
"rowItems": [
|
|
13
|
+
{
|
|
14
|
+
"valueList": [
|
|
15
|
+
{
|
|
16
|
+
"text": "£600.00"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"actions": [
|
|
20
|
+
{
|
|
21
|
+
"text": "Change",
|
|
22
|
+
"ariaLabel": "Change answer",
|
|
23
|
+
"url": "#0"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"rowTitle": "What was the value of the business's total sales of food?",
|
|
31
|
+
"errorMessage": "Change one or more of the figures so they sum to £600",
|
|
32
|
+
"error": true,
|
|
33
|
+
"rowItems": [
|
|
34
|
+
{
|
|
35
|
+
"valueList": [
|
|
36
|
+
{
|
|
37
|
+
"text": "£123.00"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"actions": [
|
|
41
|
+
{
|
|
42
|
+
"text": "Change",
|
|
43
|
+
"ariaLabel": "Change answer",
|
|
44
|
+
"url": "#0"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"rowTitle": "What was the value of the business's total sales of alcohol, confectionery and tobacco?",
|
|
52
|
+
"error": true,
|
|
53
|
+
"rowItems": [
|
|
54
|
+
{
|
|
55
|
+
"valueList": [
|
|
56
|
+
{
|
|
57
|
+
"text": "£200.00"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"actions": [
|
|
61
|
+
{
|
|
62
|
+
"text": "Change",
|
|
63
|
+
"ariaLabel": "Change answer",
|
|
64
|
+
"url": "#0"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"rowTitle": "What was the value of the business's total sales of clothing and footwear?",
|
|
72
|
+
"error": true,
|
|
73
|
+
"rowItems": [
|
|
74
|
+
{
|
|
75
|
+
"valueList": [
|
|
76
|
+
{
|
|
77
|
+
"text": "£50.00"
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"actions": [
|
|
81
|
+
{
|
|
82
|
+
"text": "Change",
|
|
83
|
+
"ariaLabel": "Change answer",
|
|
84
|
+
"url": "#0"
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
})
|
|
96
|
+
}}
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
{% from "components/summary/_macro.njk" import onsSummary %}
|
|
2
|
+
|
|
3
|
+
<h1>Your answers</h1>
|
|
4
|
+
|
|
5
|
+
{{
|
|
6
|
+
onsSummary({
|
|
7
|
+
"summaries": [
|
|
8
|
+
{
|
|
9
|
+
"summaryTitle": "John Doe",
|
|
10
|
+
"groups": [
|
|
11
|
+
{
|
|
12
|
+
"groupTitle": "Personal details",
|
|
13
|
+
"rows": [
|
|
14
|
+
{
|
|
15
|
+
"rowTitle": "Are you John Doe?",
|
|
16
|
+
"rowItems": [
|
|
17
|
+
{
|
|
18
|
+
"valueList": [
|
|
19
|
+
{
|
|
20
|
+
"text": "Yes I am"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"actions": [
|
|
24
|
+
{
|
|
25
|
+
"text": "Change",
|
|
26
|
+
"ariaLabel": "Change answer",
|
|
27
|
+
"url": "#0"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"rowTitle": "What's your date of birth?",
|
|
35
|
+
"rowItems": [
|
|
36
|
+
{
|
|
37
|
+
"valueList": [
|
|
38
|
+
{
|
|
39
|
+
"text": "1 January 1981"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"actions": [
|
|
43
|
+
{
|
|
44
|
+
"text": "Change",
|
|
45
|
+
"ariaLabel": "Change answer",
|
|
46
|
+
"url": "#0"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"rowTitle": "What is your sex?",
|
|
54
|
+
"rowItems": [
|
|
55
|
+
{
|
|
56
|
+
"valueList": [
|
|
57
|
+
{
|
|
58
|
+
"text": "Male"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"actions": [
|
|
62
|
+
{
|
|
63
|
+
"text": "Change",
|
|
64
|
+
"ariaLabel": "Change answer",
|
|
65
|
+
"url": "#0"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"groupTitle": "Identity and health",
|
|
75
|
+
"rows": [
|
|
76
|
+
{
|
|
77
|
+
"rowTitle": "What is your country of birth?",
|
|
78
|
+
"rowItems": [
|
|
79
|
+
{
|
|
80
|
+
"valueList": [
|
|
81
|
+
{
|
|
82
|
+
"text": "England"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"actions": [
|
|
86
|
+
{
|
|
87
|
+
"text": "Change",
|
|
88
|
+
"ariaLabel": "Change answer",
|
|
89
|
+
"url": "#0"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"rowTitle": "What passports do you hold?",
|
|
97
|
+
"rowItems": [
|
|
98
|
+
{
|
|
99
|
+
"valueList": [
|
|
100
|
+
{
|
|
101
|
+
"text": "United Kingdom"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"actions": [
|
|
105
|
+
{
|
|
106
|
+
"text": "Change",
|
|
107
|
+
"ariaLabel": "Change answer",
|
|
108
|
+
"url": "#0"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"groupTitle": "Qualifications",
|
|
118
|
+
"rows": [
|
|
119
|
+
{
|
|
120
|
+
"rowTitle": "Have you completed an apprenticeship?",
|
|
121
|
+
"rowItems": [
|
|
122
|
+
{
|
|
123
|
+
"valueList": [
|
|
124
|
+
{
|
|
125
|
+
"text": "Yes"
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"actions": [
|
|
129
|
+
{
|
|
130
|
+
"text": "Change",
|
|
131
|
+
"ariaLabel": "Change answer",
|
|
132
|
+
"url": "#0"
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"rowTitle": "Have you achieved a GCSE or equivalent qualification?",
|
|
140
|
+
"rowItems": [
|
|
141
|
+
{
|
|
142
|
+
"valueList": [
|
|
143
|
+
{
|
|
144
|
+
"text": "5 GCSEs grades A* to C or 9 to 4"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"actions": [
|
|
148
|
+
{
|
|
149
|
+
"text": "Change",
|
|
150
|
+
"ariaLabel": "Change answer",
|
|
151
|
+
"url": "#0"
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"groupTitle": "Employment history",
|
|
161
|
+
"rows": [
|
|
162
|
+
{
|
|
163
|
+
"rowItems": [
|
|
164
|
+
{
|
|
165
|
+
"rowTitle": "Name of UK company",
|
|
166
|
+
"valueList": [
|
|
167
|
+
{
|
|
168
|
+
"text": "Company A"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"actions": [
|
|
172
|
+
{
|
|
173
|
+
"text": "Change",
|
|
174
|
+
"ariaLabel": "Change answer",
|
|
175
|
+
"url": "#0"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"text": "Remove",
|
|
179
|
+
"ariaLabel": "Remove company",
|
|
180
|
+
"url": "#0"
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"rowTitle": "Head office location",
|
|
186
|
+
"valueList": [
|
|
187
|
+
{
|
|
188
|
+
"text": "Cardiff"
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
"actions": [
|
|
192
|
+
{
|
|
193
|
+
"text": "Change",
|
|
194
|
+
"ariaLabel": "Change answer",
|
|
195
|
+
"url": "#0"
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"rowTitle": "Is this UK company your current employer?",
|
|
201
|
+
"valueList": [
|
|
202
|
+
{
|
|
203
|
+
"text": "No"
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
"actions": [
|
|
207
|
+
{
|
|
208
|
+
"text": "Change",
|
|
209
|
+
"ariaLabel": "Change answer",
|
|
210
|
+
"url": "#0"
|
|
211
|
+
}
|
|
212
|
+
]
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"rowItems": [
|
|
218
|
+
{
|
|
219
|
+
"rowTitle": "Name of UK company",
|
|
220
|
+
"valueList": [
|
|
221
|
+
{
|
|
222
|
+
"text": "Company A"
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
"actions": [
|
|
226
|
+
{
|
|
227
|
+
"text": "Change",
|
|
228
|
+
"ariaLabel": "Change answer",
|
|
229
|
+
"url": "#0"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"text": "Remove",
|
|
233
|
+
"ariaLabel": "Remove company",
|
|
234
|
+
"url": "#0"
|
|
235
|
+
}
|
|
236
|
+
]
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"rowTitle": "Head office location",
|
|
240
|
+
"valueList": [
|
|
241
|
+
{
|
|
242
|
+
"text": "Newport"
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
"actions": [
|
|
246
|
+
{
|
|
247
|
+
"text": "Change",
|
|
248
|
+
"ariaLabel": "Change answer",
|
|
249
|
+
"url": "#0"
|
|
250
|
+
}
|
|
251
|
+
]
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"rowTitle": "Is this UK company your current employer?",
|
|
255
|
+
"valueList": [
|
|
256
|
+
{
|
|
257
|
+
"text": "Yes"
|
|
258
|
+
}
|
|
259
|
+
],
|
|
260
|
+
"actions": [
|
|
261
|
+
{
|
|
262
|
+
"text": "Change",
|
|
263
|
+
"ariaLabel": "Change answer",
|
|
264
|
+
"url": "#0"
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
}
|
|
268
|
+
]
|
|
269
|
+
}
|
|
270
|
+
],
|
|
271
|
+
"summaryLink": {
|
|
272
|
+
"text": "Add a UK company or branch",
|
|
273
|
+
"url": "#0",
|
|
274
|
+
"attributes": {
|
|
275
|
+
"data-qa": "add-item-link"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"groupTitle": "Spending",
|
|
281
|
+
"rows": [
|
|
282
|
+
{
|
|
283
|
+
"rowTitle": "What are your monthly household expenses?",
|
|
284
|
+
"rowItems": [
|
|
285
|
+
{
|
|
286
|
+
"rowTitle": "Food",
|
|
287
|
+
"valueList": [
|
|
288
|
+
{
|
|
289
|
+
"text": "£50.00"
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
"actions": [
|
|
293
|
+
{
|
|
294
|
+
"text": "Change",
|
|
295
|
+
"ariaLabel": "Change answer",
|
|
296
|
+
"url": "#0"
|
|
297
|
+
}
|
|
298
|
+
]
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"rowTitle": "Utilities",
|
|
302
|
+
"valueList": [
|
|
303
|
+
{
|
|
304
|
+
"text": "£65.00"
|
|
305
|
+
}
|
|
306
|
+
],
|
|
307
|
+
"actions": [
|
|
308
|
+
{
|
|
309
|
+
"text": "Change",
|
|
310
|
+
"ariaLabel": "Change answer",
|
|
311
|
+
"url": "#0"
|
|
312
|
+
}
|
|
313
|
+
]
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"rowTitle": "Transport",
|
|
317
|
+
"valueList": [
|
|
318
|
+
{
|
|
319
|
+
"text": "£70.00"
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"actions": [
|
|
323
|
+
{
|
|
324
|
+
"text": "Change",
|
|
325
|
+
"ariaLabel": "Change answer",
|
|
326
|
+
"url": "#0"
|
|
327
|
+
}
|
|
328
|
+
]
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"rowTitle": "Other",
|
|
332
|
+
"valueList": [
|
|
333
|
+
{
|
|
334
|
+
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
"actions": [
|
|
338
|
+
{
|
|
339
|
+
"text": "Change",
|
|
340
|
+
"ariaLabel": "Change answer",
|
|
341
|
+
"url": "#0"
|
|
342
|
+
}
|
|
343
|
+
]
|
|
344
|
+
}
|
|
345
|
+
]
|
|
346
|
+
}
|
|
347
|
+
]
|
|
348
|
+
}
|
|
349
|
+
]
|
|
350
|
+
}
|
|
351
|
+
]
|
|
352
|
+
})
|
|
353
|
+
}}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{% from "components/summary/_macro.njk" import onsSummary %}
|
|
2
|
+
|
|
3
|
+
{{ onsSummary({
|
|
4
|
+
"summaries": [
|
|
5
|
+
{
|
|
6
|
+
"groups": [
|
|
7
|
+
{
|
|
8
|
+
"placeholderText": "There are no householders",
|
|
9
|
+
"summaryLink": {
|
|
10
|
+
"text": "Add someone to this household",
|
|
11
|
+
"url": "#0",
|
|
12
|
+
"attributes": {
|
|
13
|
+
"data-qa": "add-item-link"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}) }}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{% from "components/summary/_macro.njk" import onsSummary %}
|
|
2
|
+
|
|
3
|
+
{{ onsSummary({
|
|
4
|
+
"classes": "ons-u-mb-l",
|
|
5
|
+
"summaries": [
|
|
6
|
+
{
|
|
7
|
+
"groups": [
|
|
8
|
+
{
|
|
9
|
+
"rows": [
|
|
10
|
+
{
|
|
11
|
+
"rowTitle": "Joe Bloggs (You)",
|
|
12
|
+
"rowItems": [
|
|
13
|
+
{
|
|
14
|
+
"iconType": "person",
|
|
15
|
+
"actions": [
|
|
16
|
+
{
|
|
17
|
+
"text": "Change",
|
|
18
|
+
"ariaLabel": "Change details for Joe Bloggs",
|
|
19
|
+
"url": "#0"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"rowTitle": "Barry Scott",
|
|
27
|
+
"rowItems": [
|
|
28
|
+
{
|
|
29
|
+
"iconType": "person",
|
|
30
|
+
"actions": [
|
|
31
|
+
{
|
|
32
|
+
"text": "Change",
|
|
33
|
+
"ariaLabel": "Change details for Barry Scott",
|
|
34
|
+
"url": "#0"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"text": "Remove",
|
|
38
|
+
"ariaLabel": "Remove Barry Scott",
|
|
39
|
+
"url": "#0"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"rowTitle": "Wilhelmina Susannah Clementine-Smith",
|
|
47
|
+
"rowItems": [
|
|
48
|
+
{
|
|
49
|
+
"iconType": "person",
|
|
50
|
+
"actions": [
|
|
51
|
+
{
|
|
52
|
+
"text": "Change",
|
|
53
|
+
"ariaLabel": "Change details for Susan Gill",
|
|
54
|
+
"url": "#0"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"text": "Remove",
|
|
58
|
+
"ariaLabel": "Remove Susan Gill",
|
|
59
|
+
"url": "#0"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"summaryLink": {
|
|
67
|
+
"text": "Add someone to this household",
|
|
68
|
+
"url": "#0",
|
|
69
|
+
"attributes": {
|
|
70
|
+
"data-qa": "add-item-link"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}) }}
|