@ons/design-system 70.0.8 → 70.0.9
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/components/access-code/_macro.njk +31 -25
- package/components/access-code/example-access-code-error.njk +49 -37
- package/components/access-code/example-access-code.njk +40 -30
- package/components/accordion/_macro.njk +7 -6
- package/components/accordion/example-accordion-open.njk +0 -1
- package/components/address-input/_macro.njk +23 -11
- package/components/address-input/autosuggest.address.js +0 -5
- package/components/address-input/example-address-input-editable.njk +52 -50
- package/components/address-input/example-address-input-manual.njk +23 -21
- package/components/address-input/example-address-input.njk +40 -38
- package/components/address-output/_macro.njk +6 -6
- package/components/autosuggest/_macro.njk +57 -37
- package/components/autosuggest/example-autosuggest-country-multiple.njk +26 -26
- package/components/autosuggest/example-autosuggest-country.njk +24 -24
- package/components/back-to-top/example-back-to-top.njk +183 -6
- package/components/back-to-top/example-full-page-back-to-top.njk +135 -123
- package/components/breadcrumbs/_macro.njk +12 -4
- package/components/browser-banner/_macro.njk +6 -3
- package/components/button/_button.scss +36 -1
- package/components/button/_macro.njk +63 -62
- package/components/button/example-button-ghost.njk +1 -0
- package/components/call-to-action/_macro.njk +7 -5
- package/components/call-to-action/example-call-to-action-default.njk +3 -2
- package/components/card/_macro.njk +26 -10
- package/components/card/example-card-set-with-images.njk +31 -29
- package/components/card/example-card-set-with-lists.njk +58 -56
- package/components/card/example-card-set.njk +28 -26
- package/components/card/example-card.njk +9 -7
- package/components/char-check-limit/_macro.njk +1 -3
- package/components/checkboxes/_checkbox-macro.njk +19 -15
- package/components/checkboxes/_macro.njk +81 -72
- package/components/checkboxes/example-checkboxes-disabled.njk +30 -30
- package/components/checkboxes/example-checkboxes-error.njk +0 -1
- package/components/checkboxes/example-checkboxes-with-descriptions.njk +7 -5
- package/components/checkboxes/example-checkboxes-with-hidden-label.njk +162 -170
- package/components/checkboxes/example-checkboxes-with-revealed-checkboxes-expanded.njk +81 -81
- package/components/checkboxes/example-checkboxes-with-revealed-checkboxes.njk +79 -79
- package/components/checkboxes/example-checkboxes-with-revealed-select-expanded.njk +7 -5
- package/components/checkboxes/example-checkboxes-with-revealed-select.njk +7 -5
- package/components/checkboxes/example-checkboxes-with-revealed-text-input-expanded.njk +7 -5
- package/components/checkboxes/example-checkboxes-with-revealed-text-input.njk +7 -5
- package/components/checkboxes/example-checkboxes-with-select-all-button.njk +7 -5
- package/components/checkboxes/example-checkboxes-with-visible-text-input.njk +7 -5
- package/components/checkboxes/example-checkboxes.njk +7 -5
- package/components/content-pagination/_macro.njk +34 -32
- package/components/content-pagination/example-content-pagination.njk +17 -17
- package/components/cookies-banner/_macro.njk +19 -6
- package/components/cookies-banner/example-cookies-banner-cymraeg.njk +2 -1
- package/components/cookies-banner/example-cookies-banner.njk +3 -4
- package/components/date-input/_macro.njk +71 -63
- package/components/date-input/example-date-input-error-for-single-field.njk +0 -1
- package/components/date-input/example-date-input-error.njk +0 -1
- package/components/description-list/_macro.njk +20 -11
- package/components/details/_macro.njk +18 -11
- package/components/details/example-details-with-warning.njk +15 -10
- package/components/document-list/_macro.njk +102 -93
- package/components/document-list/example-document-list-article-featured.njk +27 -25
- package/components/document-list/example-document-list-articles.njk +55 -53
- package/components/document-list/example-document-list-downloads.njk +49 -47
- package/components/document-list/example-document-list-search-result-featured.njk +19 -17
- package/components/document-list/example-document-list-search-results.njk +60 -58
- package/components/duration/_macro.njk +61 -55
- package/components/duration/example-duration-error-for-single-field.njk +28 -26
- package/components/duration/example-duration-single-field.njk +23 -19
- package/components/duration/example-duration.njk +33 -29
- package/components/error/_macro.njk +8 -6
- package/components/external-link/_macro.njk +7 -5
- package/components/external-link/example-external-link.njk +9 -6
- package/components/feedback/_macro.njk +7 -5
- package/components/field/_macro.njk +2 -2
- package/components/fieldset/_macro.njk +23 -16
- package/components/footer/_macro.njk +28 -21
- package/components/footer/_macro.spec.js +1 -1
- package/components/footer/example-footer-cymraeg.njk +2 -1
- package/components/footer/example-footer-default.njk +3 -4
- package/components/footer/example-footer-transactional.njk +2 -1
- package/components/footer/example-footer-warning.njk +2 -1
- package/components/footer/example-footer-with-alternative-organisation.njk +2 -1
- package/components/footer/example-footer-with-coat-of-arms.njk +2 -1
- package/components/footer/example-footer-with-copyright.njk +2 -1
- package/components/footer/example-footer.njk +2 -1
- package/components/header/_header.scss +24 -19
- package/components/header/_macro.njk +183 -141
- package/components/header/example-header-default.njk +2 -1
- package/components/header/example-header-external-for-survey-with-description.njk +2 -1
- package/components/header/example-header-external-for-surveys.njk +2 -1
- package/components/header/example-header-external-welsh.njk +7 -7
- package/components/header/example-header-external-with-navigation-and-search.njk +3 -2
- package/components/header/example-header-external-with-navigation.njk +2 -1
- package/components/header/example-header-external-with-service-links.njk +2 -1
- package/components/header/example-header-external-with-sub-navigation-removed.njk +2 -1
- package/components/header/example-header-external-with-sub-navigation.njk +3 -2
- package/components/header/example-header-internal.njk +2 -1
- package/components/header/example-header-multiple-logos.njk +2 -1
- package/components/header/{example-header-neutral-for-multicoloured-logo.njk → example-header-neutral.njk} +2 -1
- package/components/helpers/grid.njk +17 -16
- package/components/hero/_macro.njk +6 -11
- package/components/hero/example-hero-dark.njk +2 -1
- package/components/hero/example-hero-default.njk +2 -1
- package/components/icon/_macro.njk +601 -168
- package/components/image/_macro.njk +7 -5
- package/components/input/_macro.njk +114 -95
- package/components/input/example-input-search-with-character-check.njk +1 -1
- package/components/input/example-input-search-with-placeholder.njk +1 -1
- package/components/input/example-input-search.njk +1 -1
- package/components/label/_macro.njk +32 -26
- package/components/language-selector/_macro.njk +11 -2
- package/components/list/_list.scss +13 -0
- package/components/list/_macro.njk +93 -73
- package/components/message/_macro.njk +20 -7
- package/components/message-list/_macro.njk +26 -20
- package/components/modal/_macro.njk +11 -12
- package/components/multiple-input-fields/_macro.njk +30 -28
- package/components/mutually-exclusive/_macro.njk +20 -13
- package/components/mutually-exclusive/example-mutually-exclusive-checkboxes.njk +6 -4
- package/components/mutually-exclusive/example-mutually-exclusive-date.njk +7 -5
- package/components/mutually-exclusive/example-mutually-exclusive-duration.njk +44 -40
- package/components/mutually-exclusive/example-mutually-exclusive-email.njk +7 -5
- package/components/mutually-exclusive/example-mutually-exclusive-multiple-options.njk +6 -4
- package/components/mutually-exclusive/example-mutually-exclusive-number.njk +6 -4
- package/components/mutually-exclusive/example-mutually-exclusive-textarea.njk +6 -4
- package/components/navigation/_macro.njk +133 -67
- package/components/navigation/_navigation.scss +0 -9
- package/components/pagination/_macro.njk +42 -20
- package/components/panel/_macro.njk +27 -16
- package/components/panel/example-panel-bare.njk +6 -4
- package/components/panel/example-panel-with-announcement.njk +7 -4
- package/components/panel/example-panel-with-error-summary.njk +6 -4
- package/components/panel/example-panel-with-warning.njk +5 -3
- package/components/password/_macro.njk +7 -5
- package/components/phase-banner/_macro.njk +3 -3
- package/components/phase-banner/example-phase-banner-alpha.njk +2 -1
- package/components/phase-banner/example-phase-banner-beta.njk +4 -3
- package/components/question/_macro.njk +62 -47
- package/components/question/example-question-ccs.njk +40 -35
- package/components/question/example-question-fieldset.njk +84 -80
- package/components/question/example-question-interviewer-note.njk +27 -24
- package/components/question/example-question-no-fieldset.njk +39 -33
- package/components/quote/_macro.njk +3 -1
- package/components/radios/_macro.njk +54 -36
- package/components/radios/_macro.spec.js +21 -0
- package/components/radios/example-radios-with-clear-button-expanded.njk +6 -4
- package/components/radios/example-radios-with-clear-button.njk +6 -4
- package/components/radios/example-radios-with-descriptions.njk +7 -5
- package/components/radios/example-radios-with-revealed-select-expanded.njk +6 -4
- package/components/radios/example-radios-with-revealed-select.njk +6 -4
- package/components/radios/example-radios-with-revealed-text-area-expanded.njk +7 -5
- package/components/radios/example-radios-with-revealed-text-area.njk +7 -5
- package/components/radios/example-radios-with-revealed-text-input-expanded.njk +7 -5
- package/components/radios/example-radios-with-revealed-text-input.njk +7 -5
- package/components/radios/example-radios-with-separator.njk +6 -4
- package/components/radios/example-radios-with-visible-text-input.njk +7 -5
- package/components/radios/example-radios-without-border.njk +0 -1
- package/components/radios/example-radios.njk +7 -5
- package/components/related-content/_macro.njk +10 -11
- package/components/related-content/_section-macro.njk +7 -7
- package/components/related-content/example-related-content-general.njk +5 -3
- package/components/related-content/example-related-content-multiple-rows-of-links.njk +51 -49
- package/components/related-content/example-related-content-social-media.njk +40 -38
- package/components/relationships/_macro.njk +10 -8
- package/components/relationships/example-relationships-error.njk +176 -168
- package/components/relationships/example-relationships-you.njk +169 -163
- package/components/relationships/example-relationships.njk +167 -161
- package/components/section-navigation/_macro.njk +34 -12
- package/components/select/_macro.njk +21 -18
- package/components/share-page/_macro.njk +10 -5
- package/components/skip-to-content/_macro.njk +1 -1
- package/components/skip-to-content/example-skip-to-content.njk +1 -0
- package/components/status/_macro.njk +1 -1
- package/components/summary/_macro.njk +53 -23
- package/components/summary/example-summary-household-no-rows.njk +18 -16
- package/components/summary/example-summary-household.njk +75 -73
- package/components/summary/example-summary-hub-minimal.njk +74 -72
- package/components/summary/example-summary-hub.njk +169 -167
- package/components/table/_macro.njk +72 -45
- package/components/table-of-contents/_macro.njk +34 -32
- package/components/table-of-contents/example-table-of-contents-grouped.njk +1 -1
- package/components/table-of-contents/example-table-of-contents-single.njk +1 -1
- package/components/table-of-contents/example-table-of-contents-sticky-full-page.njk +79 -38
- package/components/table-of-contents/example-table-of-contents-sticky.njk +50 -13
- package/components/tabs/_macro.njk +12 -6
- package/components/tabs/example-tabs-details.njk +5 -6
- package/components/text-indent/_macro.njk +1 -3
- package/components/textarea/_macro.njk +49 -46
- package/components/textarea/_macro.spec.js +0 -11
- package/components/timeline/_macro.njk +4 -6
- package/components/timeout-modal/_macro.njk +21 -19
- package/components/timeout-modal/example-timeout-modal.njk +16 -14
- package/components/timeout-panel/_macro.njk +19 -17
- package/components/timeout-panel/example-panel-with-timeout-warning.njk +13 -11
- package/components/upload/_macro.njk +20 -16
- package/components/video/_macro.njk +16 -2
- package/components/video/example-video.njk +2 -2
- package/css/main.css +1 -1
- package/layout/_dsTemplate.njk +22 -20
- package/layout/_template.njk +63 -49
- package/package.json +4 -3
- package/scripts/main.es5.js +1 -1
- package/scripts/main.js +1 -1
- package/scss/overrides/hcm.scss +1 -1
- package/scss/vars/_colors.scss +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{% macro onsSummary(params) %}
|
|
2
2
|
{% set className = "ons-summary" %}
|
|
3
|
-
{% set headingLevel = 2 %}
|
|
3
|
+
{% set headingLevel = "2" %}
|
|
4
4
|
|
|
5
5
|
{% if params.variant == "hub" %}
|
|
6
6
|
{% set variantHub = true %}
|
|
@@ -10,42 +10,53 @@
|
|
|
10
10
|
{% endif %}
|
|
11
11
|
|
|
12
12
|
{% if params.classes %}
|
|
13
|
-
|
|
13
|
+
{% set className = className + " " + params.classes %}
|
|
14
14
|
{% endif %}
|
|
15
15
|
|
|
16
16
|
<div class="{{ className }}">
|
|
17
17
|
{% for summary in params.summaries %}
|
|
18
18
|
{% if summary.summaryTitle %}
|
|
19
|
-
<h2 class="ons-summary__title ons-u-mb-m{{
|
|
20
|
-
{% set headingLevel = 3 %}
|
|
19
|
+
<h2 class="ons-summary__title ons-u-mb-m{{ ' ons-u-mt-m' if loop.index > 1 }}">{{ summary.summaryTitle }}</h2>
|
|
20
|
+
{% set headingLevel = "3" %}
|
|
21
21
|
{% endif %}
|
|
22
22
|
{% for group in summary.groups %}
|
|
23
|
-
<div {% if group.id %}id="{{ group.id }}" {% endif %}
|
|
23
|
+
<div {% if group.id %}id="{{ group.id }}"{{ ' ' }}{% endif %}class="ons-summary__group{{ variantClasses }}">
|
|
24
24
|
{% if group.groupTitle %}
|
|
25
|
-
|
|
25
|
+
{% set openingHeadingTag = "<h" + headingLevel %}
|
|
26
|
+
{% set closingHeadingTag = "</h" + headingLevel + ">" %}
|
|
27
|
+
{{ openingHeadingTag | safe }}
|
|
28
|
+
class="ons-summary__group-title">{{ group.groupTitle }}{{ closingHeadingTag | safe }}
|
|
26
29
|
{% endif %}
|
|
27
30
|
{% if group.rows %}
|
|
28
31
|
<dl class="ons-summary__items">
|
|
29
32
|
{% for row in group.rows %}
|
|
30
33
|
{% set itemClass = "" %}
|
|
31
|
-
{% if row.error %}
|
|
32
|
-
{% if row.total %}
|
|
33
|
-
<div {% if row.id %}id="{{ row.id }}"
|
|
34
|
+
{% if row.error %}{% set itemClass = " ons-summary__item--error" %}{% endif %}
|
|
35
|
+
{% if row.total %}{% set itemClass = itemClass + " ons-summary__item--total" %}{% endif %}
|
|
36
|
+
<div {% if row.id %}id="{{ row.id }}"{% endif %}class="ons-summary__item{{ itemClass }}">
|
|
34
37
|
{% if row.errorMessage %}
|
|
35
38
|
<div class="ons-summary__row-title--error ons-u-fs-r">{{ row.errorMessage }}</div>
|
|
36
39
|
{% endif %}
|
|
37
40
|
{% if row.rowItems | length > 1 and row.rowTitle %}
|
|
38
|
-
<div class="ons-summary__row-title ons-summary__row-title--no-group-title ons-u-fs-r">
|
|
41
|
+
<div class="ons-summary__row-title ons-summary__row-title--no-group-title ons-u-fs-r">
|
|
42
|
+
{{- row.rowTitle -}}
|
|
43
|
+
</div>
|
|
39
44
|
{% endif %}
|
|
40
45
|
|
|
41
46
|
{% for rowItem in row.rowItems %}
|
|
42
|
-
<div
|
|
43
|
-
|
|
44
|
-
|
|
47
|
+
<div
|
|
48
|
+
class="ons-summary__row{{ ' ons-summary__row--has-values' if rowItem.valueList }}"
|
|
49
|
+
{% if rowItem.id %}id="{{ rowItem.id }}"{% endif %}
|
|
50
|
+
>
|
|
51
|
+
<dt
|
|
52
|
+
class="ons-summary__item-title"
|
|
53
|
+
{% if rowItem.rowTitleAttributes %}{% for attribute, value in (rowItem.rowTitleAttributes.items() if rowItem.rowTitleAttributes is mapping and rowItem.rowTitleAttributes.items else rowItem.rowTitleAttributes) %}{{ ' ' }}{{ attribute }}="{{ value }}"{% endfor %}{% endif %}
|
|
45
54
|
>
|
|
46
55
|
{% if rowItem.iconType %}
|
|
47
56
|
{% from "components/icon/_macro.njk" import onsIcon %}
|
|
48
|
-
<span
|
|
57
|
+
<span
|
|
58
|
+
class="ons-summary__item-title-icon{{ ' ons-summary__item-title-icon--check' if rowItem.iconType == 'check' }}"
|
|
59
|
+
>
|
|
49
60
|
{{-
|
|
50
61
|
onsIcon({
|
|
51
62
|
"iconType": rowItem.iconType
|
|
@@ -57,7 +68,9 @@
|
|
|
57
68
|
</span>
|
|
58
69
|
{% endif %}
|
|
59
70
|
|
|
60
|
-
<div
|
|
71
|
+
<div
|
|
72
|
+
class="ons-summary__item--text{{ ' ons-summary__item-title--text' if rowItem.iconType }}"
|
|
73
|
+
>
|
|
61
74
|
{{- rowItem.rowTitle | default(row.rowTitle) | safe -}}
|
|
62
75
|
</div>
|
|
63
76
|
|
|
@@ -68,8 +81,8 @@
|
|
|
68
81
|
</dt>
|
|
69
82
|
{% if rowItem.valueList %}
|
|
70
83
|
<dd
|
|
71
|
-
class="ons-summary__values{
|
|
72
|
-
{% if rowItem.attributes %}{% for attribute, value in (rowItem.attributes.items() if rowItem.attributes is mapping and rowItem.attributes.items else rowItem.attributes) %}{{attribute}}="{{value}}"
|
|
84
|
+
class="ons-summary__values{{ ' ons-summary__values--2' if not rowItem.actions }}"
|
|
85
|
+
{% if rowItem.attributes %}{% for attribute, value in (rowItem.attributes.items() if rowItem.attributes is mapping and rowItem.attributes.items else rowItem.attributes) %}{{ ' ' }}{{ attribute }}="{{ value }}"{% endfor %}{% endif %}
|
|
73
86
|
>
|
|
74
87
|
{% if rowItem.valueList | length == 1 %}
|
|
75
88
|
<span class="ons-summary__text">{{ rowItem.valueList[0].text | safe }}</span>
|
|
@@ -101,8 +114,13 @@
|
|
|
101
114
|
<a
|
|
102
115
|
href="{{ action.url }}"
|
|
103
116
|
class="ons-summary__button"
|
|
104
|
-
{% if action.attributes %}{% for attribute, value in (action.attributes.items() if action.attributes is mapping and action.attributes.items else action.attributes) %} {{attribute}}="{{value}}"{% endfor %}{% endif %}
|
|
105
|
-
|
|
117
|
+
{% if action.attributes %}{% for attribute, value in (action.attributes.items() if action.attributes is mapping and action.attributes.items else action.attributes) %}{{ ' ' }}{{ attribute }}="{{ value }}"{% endfor %}{% endif %}
|
|
118
|
+
>
|
|
119
|
+
<span class="ons-summary__button-text" aria-hidden="true">
|
|
120
|
+
{{- action.text -}}
|
|
121
|
+
</span>
|
|
122
|
+
<span class="ons-u-vh">{{ action.visuallyHiddenText }}</span>
|
|
123
|
+
</a>
|
|
106
124
|
{% endfor %}
|
|
107
125
|
</dd>
|
|
108
126
|
{% endif %}
|
|
@@ -116,10 +134,22 @@
|
|
|
116
134
|
{% endif %}
|
|
117
135
|
|
|
118
136
|
{% if group.summaryLink %}
|
|
119
|
-
<div
|
|
120
|
-
{
|
|
121
|
-
|
|
122
|
-
{%
|
|
137
|
+
<div
|
|
138
|
+
class="ons-summary__link{{ ' ons-u-pt-s' if group.placeholderText or group.rows }}{{ ' ons-u-bt' if group.placeholderText is not defined and group.rows | length > 1 and params.variant != 'card' }}{{ ' ons-u-mb-xl' if not group.last }}"
|
|
139
|
+
>
|
|
140
|
+
{% set link %}
|
|
141
|
+
<a
|
|
142
|
+
{% if group.summaryLink.attributes %}{% for attribute, value in (group.summaryLink.attributes.items() if group.summaryLink.attributes is mapping and group.summaryLink.attributes.items else group.summaryLink.attributes) %}{{ ' ' }}{{ attribute }}="{{ value }}"{% endfor %}{% endif %}
|
|
143
|
+
href="{{ group.summaryLink.url }}"
|
|
144
|
+
>
|
|
145
|
+
{{ group.summaryLink.text }}
|
|
146
|
+
</a>
|
|
147
|
+
{% endset %}
|
|
148
|
+
{% if params.variant == 'card' %}
|
|
149
|
+
<div>{{ link | safe }}</div>
|
|
150
|
+
{% else %}
|
|
151
|
+
{{ link | safe }}
|
|
152
|
+
{% endif %}
|
|
123
153
|
</div>
|
|
124
154
|
{% endif %}
|
|
125
155
|
</div>
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
{% from "components/summary/_macro.njk" import onsSummary %}
|
|
2
2
|
|
|
3
|
-
{{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
3
|
+
{{
|
|
4
|
+
onsSummary({
|
|
5
|
+
"summaries": [
|
|
6
|
+
{
|
|
7
|
+
"groups": [
|
|
8
|
+
{
|
|
9
|
+
"placeholderText": "There are no householders",
|
|
10
|
+
"summaryLink": {
|
|
11
|
+
"text": "Add someone to this household",
|
|
12
|
+
"url": "#0",
|
|
13
|
+
"attributes": {
|
|
14
|
+
"data-qa": "add-item-link"
|
|
15
|
+
}
|
|
14
16
|
}
|
|
15
17
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
})
|
|
22
|
+
}}
|
|
@@ -1,77 +1,79 @@
|
|
|
1
1
|
{% from "components/summary/_macro.njk" import onsSummary %}
|
|
2
2
|
|
|
3
|
-
{{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
3
|
+
{{
|
|
4
|
+
onsSummary({
|
|
5
|
+
"classes": "ons-u-mb-l",
|
|
6
|
+
"summaries": [
|
|
7
|
+
{
|
|
8
|
+
"groups": [
|
|
9
|
+
{
|
|
10
|
+
"rows": [
|
|
11
|
+
{
|
|
12
|
+
"rowTitle": "Joe Bloggs (You)",
|
|
13
|
+
"rowItems": [
|
|
14
|
+
{
|
|
15
|
+
"iconType": "person",
|
|
16
|
+
"actions": [
|
|
17
|
+
{
|
|
18
|
+
"text": "Change",
|
|
19
|
+
"visuallyHiddenText": "Change details for Joe Bloggs",
|
|
20
|
+
"url": "#0"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"rowTitle": "Barry Scott",
|
|
28
|
+
"rowItems": [
|
|
29
|
+
{
|
|
30
|
+
"iconType": "person",
|
|
31
|
+
"actions": [
|
|
32
|
+
{
|
|
33
|
+
"text": "Change",
|
|
34
|
+
"visuallyHiddenText": "Change details for Barry Scott",
|
|
35
|
+
"url": "#0"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"text": "Remove",
|
|
39
|
+
"visuallyHiddenText": "Remove Barry Scott",
|
|
40
|
+
"url": "#0"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"rowTitle": "Wilhelmina Susannah Clementine-Smith",
|
|
48
|
+
"rowItems": [
|
|
49
|
+
{
|
|
50
|
+
"iconType": "person",
|
|
51
|
+
"actions": [
|
|
52
|
+
{
|
|
53
|
+
"text": "Change",
|
|
54
|
+
"visuallyHiddenText": "Change details for Susan Gill",
|
|
55
|
+
"url": "#0"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"text": "Remove",
|
|
59
|
+
"visuallyHiddenText": "Remove Susan Gill",
|
|
60
|
+
"url": "#0"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"summaryLink": {
|
|
68
|
+
"text": "Add someone to this household",
|
|
69
|
+
"url": "#0",
|
|
70
|
+
"attributes": {
|
|
71
|
+
"data-qa": "add-item-link"
|
|
72
|
+
}
|
|
71
73
|
}
|
|
72
74
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
})
|
|
79
|
+
}}
|
|
@@ -1,75 +1,77 @@
|
|
|
1
1
|
{% from "components/summary/_macro.njk" import onsSummary %}
|
|
2
2
|
|
|
3
|
-
{{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"rows": [
|
|
3
|
+
{{
|
|
4
|
+
onsSummary({
|
|
5
|
+
"variant": "hub",
|
|
6
|
+
"summaries": [
|
|
7
|
+
{
|
|
8
|
+
"groups": [
|
|
10
9
|
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
10
|
+
"rows": [
|
|
11
|
+
{
|
|
12
|
+
"rowTitle": "People who live here",
|
|
13
|
+
"rowItems": [
|
|
14
|
+
{
|
|
15
|
+
"iconType": "check",
|
|
16
|
+
"iconVisuallyHiddenText": "Section complete",
|
|
17
|
+
"actions": [
|
|
18
|
+
{
|
|
19
|
+
"text": "View answers",
|
|
20
|
+
"visuallyHiddenText": "View answers for People who live here",
|
|
21
|
+
"url": "#0"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"rowTitle": "Mary Smith (You)",
|
|
29
|
+
"rowItems": [
|
|
30
|
+
{
|
|
31
|
+
"iconType": "check",
|
|
32
|
+
"iconVisuallyHiddenText": "Section complete",
|
|
33
|
+
"actions": [
|
|
34
|
+
{
|
|
35
|
+
"text": "View answers",
|
|
36
|
+
"visuallyHiddenText": "View answers for Mary Smith",
|
|
37
|
+
"url": "#0"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"rowTitle": "John Smith",
|
|
45
|
+
"rowItems": [
|
|
46
|
+
{
|
|
47
|
+
"actions": [
|
|
48
|
+
{
|
|
49
|
+
"text": "Continue with section",
|
|
50
|
+
"visuallyHiddenText": "Continue with John Smith's section",
|
|
51
|
+
"url": "#0"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"rowTitle": "Billy Smith",
|
|
59
|
+
"rowItems": [
|
|
60
|
+
{
|
|
61
|
+
"actions": [
|
|
62
|
+
{
|
|
63
|
+
"text": "Start section",
|
|
64
|
+
"visuallyHiddenText": "Start Billy Smith's section",
|
|
65
|
+
"url": "#0"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
})
|
|
77
|
+
}}
|