diff --git a/src/components/summary/_macro-options.md b/src/components/summary/_macro-options.md index b160a55536..5a2d6a51f4 100644 --- a/src/components/summary/_macro-options.md +++ b/src/components/summary/_macro-options.md @@ -6,10 +6,10 @@ ## Summaries -| Name | Type | Required | Description | -| ------------ | --------------------- | -------- | ---------------------------------------------------- | -| groups | Array`` | true | An array of [groups](#summarygroup) within a summary | -| summaryTitle | string | false | The `h2` title heading for a group of summaries | +| Name | Type | Required | Description | +| ------ | --------------------- | -------- | ---------------------------------------------------- | +| groups | Array`` | true | An array of [groups](#summarygroup) within a summary | +| title | string | false | The `h2` title heading for a group of summaries | ## SummaryGroup @@ -17,7 +17,7 @@ | --------------- | -------------------- | ------------------------------------------- | ------------------------------------------------------------------------------ | | rows | Array`` | true (unless `placeholderText` set) | An array of [rows](#summaryrow) within a group | | placeholderText | string | true (unless `rows` set) | A message to be shown as a placeholder if there are no rows in the summary | -| groupTitle | string | false (`true` if variant is set to `card` ) | The title heading for a summary within a group | +| title | string | false (`true` if variant is set to `card` ) | The title heading for a summary within a group | | id | string | false | The HTML `id` of the group | | summaryLink | Array`` | false | Settings for the [summary link](#summarylink) used to a new row to the summary | @@ -26,8 +26,8 @@ | Name | Type | Required | Description | | ------------ | ----------------------- | -------- | ------------------------------------------------------------------- | | id | string | false | The HTML `id` of the row | -| rowItems | Array`` | true | An array of [items for the row](#summaryrowitem) | -| rowTitle | string | false | The title for the row | +| items | Array`` | true | An array of [items for the row](#summaryrowitem) | +| title | string | false | The title for the row | | error | boolean | false | Set to “true” display an [error](/components/error) on a row | | errorMessage | string | false | The error message for the row | | total | boolean | false | Set to “true” to display row as a calculated total of previous rows | @@ -39,8 +39,8 @@ | id | string | false | The HTML `id` of the row item | | iconType | string | false | Adds an icon before the row title, by setting the [icon type](/foundations/icons#icon-type) | | iconVisuallyHiddenText | string | false | Visually hidden text in a span under the icon to add more context for screen readers | -| rowTitle | string | false | The title for the row item | -| rowTitleAttributes | object | false | HTML attributes (for example, data attributes) to add to the rowTitle | +| title | string | false | The title for the row item | +| titleAttributes | object | false | HTML attributes (for example, data attributes) to add to the row title | | valueList | Array`` | false | An array of [value(s)](#summaryvalue) for the row item | | actions | Array`` | false | Settings for the row [action links](#summaryaction) | | attributes | object | false | HTML attributes (for example, data attributes) to add to the row item | diff --git a/src/components/summary/_macro.njk b/src/components/summary/_macro.njk index ac28a78172..97a7c8e830 100644 --- a/src/components/summary/_macro.njk +++ b/src/components/summary/_macro.njk @@ -15,14 +15,14 @@
{% for summary in params.summaries %} - {% if summary.summaryTitle %} -

1 else "" }}">{{ summary.summaryTitle }}

+ {% if summary.title %} +

1 else "" }}">{{ summary.title }}

{% set headingLevel = 3 %} {% endif %} {% for group in summary.groups %}
- {% if group.groupTitle %} - {{ group.groupTitle }} + {% if group.title %} + {{ group.title }} {% endif %} {% if group.rows %}
@@ -34,53 +34,53 @@ {% if row.errorMessage %}
{{ row.errorMessage }}
{% endif %} - {% if row.rowItems | length > 1 and row.rowTitle %} -
{{ row.rowTitle }}
+ {% if row.items | length > 1 and row.title %} +
{{ row.title }}
{% endif %} - {% for rowItem in row.rowItems %} -
+ {% for item in row.items %} +
- {% if rowItem.iconType %} + {% if item.iconType %} {% from "components/icon/_macro.njk" import onsIcon %} - + {{- onsIcon({ - "iconType": rowItem.iconType + "iconType": item.iconType }) -}} - {% if rowItem.iconVisuallyHiddenText %} - {{ rowItem.iconVisuallyHiddenText }} + {% if item.iconVisuallyHiddenText %} + {{ item.iconVisuallyHiddenText }} {% endif %} {% endif %} -
- {{- rowItem.rowTitle | default(row.rowTitle) | safe -}} +
+ {{- item.title | default(row.title) | safe -}}
{# Render section status for mobile if is hub #} - {% if variantHub and rowItem.valueList %} - — {{ rowItem.valueList[0].text | safe }} + {% if variantHub and item.valueList %} + — {{ item.valueList[0].text | safe }} {% endif %}
- {% if rowItem.valueList %} + {% if item.valueList %}
- {% if rowItem.valueList | length == 1 %} - {{ rowItem.valueList[0].text | safe }} - {% if rowItem.valueList[0].other or rowItem.valueList[0].other == 0 %} + {% if item.valueList | length == 1 %} + {{ item.valueList[0].text | safe }} + {% if item.valueList[0].other or item.valueList[0].other == 0 %}
    -
  • {{ rowItem.valueList[0].other | safe }}
  • +
  • {{ item.valueList[0].other | safe }}
{% endif %} {% else %}
    - {% for value in rowItem.valueList %} + {% for value in item.valueList %}
  • {{ value.text | safe }} {% if value.other or value.other == 0 %} @@ -94,9 +94,9 @@ {% endif %}
{% endif %} - {% if rowItem.actions %} + {% if item.actions %}
- {% for action in rowItem.actions %} + {% for action in item.actions %} {% if loop.index > 1 %}{% endif %} { expect($('#group-id-1').length).toBe(1); }); - it('has the correct `groupTitle` tag', () => { + it('has the correct group `title` tag', () => { const $ = cheerio.load(renderComponent('summary', EXAMPLE_SUMMARY_BASIC)); expect($('.ons-summary__group-title')[0].tagName).toBe('h2'); }); - it('has the `groupTitle` text', () => { + it('has the group `title` text', () => { const $ = cheerio.load(renderComponent('summary', EXAMPLE_SUMMARY_BASIC)); expect($('.ons-summary__group-title').text()).toBe('group title'); @@ -377,13 +377,13 @@ describe('macro: summary', () => { expect($('.ons-summary__items .ons-summary__item:nth-of-type(4)').hasClass('ons-summary__item--total')).toBe(true); }); - it('displays the `rowTitle` text', () => { + it('displays the row `title` text', () => { const $ = cheerio.load(renderComponent('summary', EXAMPLE_SUMMARY_BASIC)); expect($('.ons-summary__items .ons-summary__item:nth-of-type(3) .ons-summary__row-title').text()).toBe('row title 3'); }); - it('overrides the `rowTitle` with the `errorMessage` if provided', () => { + it('overrides the row `title` with the `errorMessage` if provided', () => { const $ = cheerio.load(renderComponent('summary', EXAMPLE_SUMMARY_WITH_TITLE)); expect($('.ons-summary__items .ons-summary__item:nth-of-type(2) .ons-summary__row-title--error').text()).toBe( @@ -405,7 +405,7 @@ describe('macro: summary', () => { expect($('.ons-summary__row--has-values').length).toBe(5); }); - it('has custom `rowTitleAttributes`', () => { + it('has custom row `titleAttributes`', () => { const $ = cheerio.load(renderComponent('summary', EXAMPLE_SUMMARY_BASIC)); expect($('.ons-summary__item-title').attr('a')).toBe('123'); @@ -414,7 +414,7 @@ describe('macro: summary', () => { }); describe('part: item title', () => { - it('displays the `rowTitle` text', () => { + it('displays the row `title` text', () => { const $ = cheerio.load(renderComponent('summary', EXAMPLE_SUMMARY_BASIC)); expect($('.ons-summary__items .ons-summary__item:nth-of-type(1) .ons-summary__item--text').text().trim()).toBe( @@ -562,7 +562,7 @@ describe('macro: summary', () => { expect(results).toHaveNoViolations(); }); - it('displays the `summaryTitle`', () => { + it('displays the summary `title`', () => { const $ = cheerio.load(renderComponent('summary', EXAMPLE_SUMMARY_WITH_TITLE)); expect($('.ons-summary__title').text()).toBe('summary title'); @@ -593,7 +593,7 @@ describe('macro: summary', () => { expect($('.ons-summary').hasClass('ons-summary--hub')).toBe(true); }); - it('has the value rendered after the `rowTitle` that shows on mobile', () => { + it('has the value rendered after the row `title` that shows on mobile', () => { const $ = cheerio.load( renderComponent('summary', { ...EXAMPLE_SUMMARY_BASIC, diff --git a/src/components/summary/example-summary-card-grouped.njk b/src/components/summary/example-summary-card-grouped.njk index faf240dcc2..6893ae66c0 100644 --- a/src/components/summary/example-summary-card-grouped.njk +++ b/src/components/summary/example-summary-card-grouped.njk @@ -5,14 +5,14 @@ "variant": "card", "summaries": [ { - "summaryTitle": "John Doe", + "title": "John Doe", "groups": [ { - "groupTitle": "Personal details", + "title": "Personal details", "rows": [ { - "rowTitle": "Are you John Doe?", - "rowItems": [ + "title": "Are you John Doe?", + "items": [ { "valueList": [ { @@ -30,8 +30,8 @@ ] }, { - "rowTitle": "What's your date of birth?", - "rowItems": [ + "title": "What's your date of birth?", + "items": [ { "valueList": [ { @@ -49,8 +49,8 @@ ] }, { - "rowTitle": "What is your sex?", - "rowItems": [ + "title": "What is your sex?", + "items": [ { "valueList": [ { @@ -70,11 +70,11 @@ ] }, { - "groupTitle": "Identity and health", + "title": "Identity and health", "rows": [ { - "rowTitle": "What is your country of birth?", - "rowItems": [ + "title": "What is your country of birth?", + "items": [ { "valueList": [ { @@ -92,8 +92,8 @@ ] }, { - "rowTitle": "What passports do you hold?", - "rowItems": [ + "title": "What passports do you hold?", + "items": [ { "valueList": [ { @@ -113,11 +113,11 @@ ] }, { - "groupTitle": "Qualifications", + "title": "Qualifications", "rows": [ { - "rowTitle": "Have you completed an apprenticeship?", - "rowItems": [ + "title": "Have you completed an apprenticeship?", + "items": [ { "valueList": [ { @@ -135,8 +135,8 @@ ] }, { - "rowTitle": "Have you achieved a GCSE or equivalent qualification?", - "rowItems": [ + "title": "Have you achieved a GCSE or equivalent qualification?", + "items": [ { "valueList": [ { @@ -156,12 +156,12 @@ ] }, { - "groupTitle": "Employment history", + "title": "Employment history", "rows": [ { - "rowItems": [ + "items": [ { - "rowTitle": "Name of UK company", + "title": "Name of UK company", "valueList": [ { "text": "Company A" @@ -181,7 +181,7 @@ ] }, { - "rowTitle": "Head office location", + "title": "Head office location", "valueList": [ { "text": "Cardiff" @@ -196,7 +196,7 @@ ] }, { - "rowTitle": "Is this UK company your current employer?", + "title": "Is this UK company your current employer?", "valueList": [ { "text": "No" @@ -213,9 +213,9 @@ ] }, { - "rowItems": [ + "items": [ { - "rowTitle": "Name of UK company", + "title": "Name of UK company", "valueList": [ { "text": "Company A" @@ -235,7 +235,7 @@ ] }, { - "rowTitle": "Head office location", + "title": "Head office location", "valueList": [ { "text": "Newport" @@ -250,7 +250,7 @@ ] }, { - "rowTitle": "Is this UK company your current employer?", + "title": "Is this UK company your current employer?", "valueList": [ { "text": "Yes" @@ -276,13 +276,13 @@ } }, { - "groupTitle": "Spending", + "title": "Spending", "rows": [ { - "rowTitle": "What are your monthly household expenses?", - "rowItems": [ + "title": "What are your monthly household expenses?", + "items": [ { - "rowTitle": "Food", + "title": "Food", "valueList": [ { "text": "£50.00" @@ -297,7 +297,7 @@ ] }, { - "rowTitle": "Utilities", + "title": "Utilities", "valueList": [ { "text": "£65.00" @@ -312,7 +312,7 @@ ] }, { - "rowTitle": "Transport", + "title": "Transport", "valueList": [ { "text": "£70.00" @@ -327,7 +327,7 @@ ] }, { - "rowTitle": "Other", + "title": "Other", "valueList": [ { "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." diff --git a/src/components/summary/example-summary-grouped-total.njk b/src/components/summary/example-summary-grouped-total.njk index 1db8fd11d7..7c18d51184 100644 --- a/src/components/summary/example-summary-grouped-total.njk +++ b/src/components/summary/example-summary-grouped-total.njk @@ -5,12 +5,12 @@ { "groups": [ { - "groupTitle": "Summary - Section Title", + "title": "Summary - Section Title", "rows": [ { - "rowItems": [ + "items": [ { - "rowTitle": "Total value of acquisitions for transport assets and equipment", + "title": "Total value of acquisitions for transport assets and equipment", "valueList": [ { "text": "£9,000.00" @@ -27,9 +27,9 @@ ] }, { - "rowItems": [ + "items": [ { - "rowTitle": "Total value of acquisitions for computers and peripheral devices (hardware)", + "title": "Total value of acquisitions for computers and peripheral devices (hardware)", "valueList": [ { "text": "£225,000.00" @@ -47,9 +47,9 @@ }, { "total": true, - "rowItems": [ + "items": [ { - "rowTitle": "Grand total for value of acquisitions", + "title": "Grand total for value of acquisitions", "valueList": [ { "text": "£234,000.00" diff --git a/src/components/summary/example-summary-grouped-with-errors.njk b/src/components/summary/example-summary-grouped-with-errors.njk index 9a703d22bc..7e8a315b85 100644 --- a/src/components/summary/example-summary-grouped-with-errors.njk +++ b/src/components/summary/example-summary-grouped-with-errors.njk @@ -5,11 +5,11 @@ { "groups": [ { - "groupTitle": "Summary - Section Title", + "title": "Summary - Section Title", "rows": [ { - "rowTitle": "For the period 1 May 2017 to 31 May 2017, what was the total turnover of Essential Enterprise Ltd?", - "rowItems": [ + "title": "For the period 1 May 2017 to 31 May 2017, what was the total turnover of Essential Enterprise Ltd?", + "items": [ { "valueList": [ { @@ -27,10 +27,10 @@ ] }, { - "rowTitle": "What was the value of the business's total sales of food?", + "title": "What was the value of the business's total sales of food?", "errorMessage": "Change one or more of the figures so they sum to £600", "error": true, - "rowItems": [ + "items": [ { "valueList": [ { @@ -48,9 +48,9 @@ ] }, { - "rowTitle": "What was the value of the business's total sales of alcohol, confectionery and tobacco?", + "title": "What was the value of the business's total sales of alcohol, confectionery and tobacco?", "error": true, - "rowItems": [ + "items": [ { "valueList": [ { @@ -68,9 +68,9 @@ ] }, { - "rowTitle": "What was the value of the business's total sales of clothing and footwear?", + "title": "What was the value of the business's total sales of clothing and footwear?", "error": true, - "rowItems": [ + "items": [ { "valueList": [ { diff --git a/src/components/summary/example-summary-grouped.njk b/src/components/summary/example-summary-grouped.njk index 1c4052d8ce..c2159de6ff 100644 --- a/src/components/summary/example-summary-grouped.njk +++ b/src/components/summary/example-summary-grouped.njk @@ -6,14 +6,14 @@ onsSummary({ "summaries": [ { - "summaryTitle": "John Doe", + "title": "John Doe", "groups": [ { - "groupTitle": "Personal details", + "title": "Personal details", "rows": [ { - "rowTitle": "Are you John Doe?", - "rowItems": [ + "title": "Are you John Doe?", + "items": [ { "valueList": [ { @@ -31,8 +31,8 @@ ] }, { - "rowTitle": "What's your date of birth?", - "rowItems": [ + "title": "What's your date of birth?", + "items": [ { "valueList": [ { @@ -50,8 +50,8 @@ ] }, { - "rowTitle": "What is your sex?", - "rowItems": [ + "title": "What is your sex?", + "items": [ { "valueList": [ { @@ -71,11 +71,11 @@ ] }, { - "groupTitle": "Identity and health", + "title": "Identity and health", "rows": [ { - "rowTitle": "What is your country of birth?", - "rowItems": [ + "title": "What is your country of birth?", + "items": [ { "valueList": [ { @@ -93,8 +93,8 @@ ] }, { - "rowTitle": "What passports do you hold?", - "rowItems": [ + "title": "What passports do you hold?", + "items": [ { "valueList": [ { @@ -114,11 +114,11 @@ ] }, { - "groupTitle": "Qualifications", + "title": "Qualifications", "rows": [ { - "rowTitle": "Have you completed an apprenticeship?", - "rowItems": [ + "title": "Have you completed an apprenticeship?", + "items": [ { "valueList": [ { @@ -136,8 +136,8 @@ ] }, { - "rowTitle": "Have you achieved a GCSE or equivalent qualification?", - "rowItems": [ + "title": "Have you achieved a GCSE or equivalent qualification?", + "items": [ { "valueList": [ { @@ -157,12 +157,12 @@ ] }, { - "groupTitle": "Employment history", + "title": "Employment history", "rows": [ { - "rowItems": [ + "items": [ { - "rowTitle": "Name of UK company", + "title": "Name of UK company", "valueList": [ { "text": "Company A" @@ -182,7 +182,7 @@ ] }, { - "rowTitle": "Head office location", + "title": "Head office location", "valueList": [ { "text": "Cardiff" @@ -197,7 +197,7 @@ ] }, { - "rowTitle": "Is this UK company your current employer?", + "title": "Is this UK company your current employer?", "valueList": [ { "text": "No" @@ -214,9 +214,9 @@ ] }, { - "rowItems": [ + "items": [ { - "rowTitle": "Name of UK company", + "title": "Name of UK company", "valueList": [ { "text": "Company A" @@ -236,7 +236,7 @@ ] }, { - "rowTitle": "Head office location", + "title": "Head office location", "valueList": [ { "text": "Newport" @@ -251,7 +251,7 @@ ] }, { - "rowTitle": "Is this UK company your current employer?", + "title": "Is this UK company your current employer?", "valueList": [ { "text": "Yes" @@ -277,13 +277,13 @@ } }, { - "groupTitle": "Spending", + "title": "Spending", "rows": [ { - "rowTitle": "What are your monthly household expenses?", - "rowItems": [ + "title": "What are your monthly household expenses?", + "items": [ { - "rowTitle": "Food", + "title": "Food", "valueList": [ { "text": "£50.00" @@ -298,7 +298,7 @@ ] }, { - "rowTitle": "Utilities", + "title": "Utilities", "valueList": [ { "text": "£65.00" @@ -313,7 +313,7 @@ ] }, { - "rowTitle": "Transport", + "title": "Transport", "valueList": [ { "text": "£70.00" @@ -328,7 +328,7 @@ ] }, { - "rowTitle": "Other", + "title": "Other", "valueList": [ { "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." diff --git a/src/components/summary/example-summary-household.njk b/src/components/summary/example-summary-household.njk index f6ca0f6a83..43ce412b2d 100644 --- a/src/components/summary/example-summary-household.njk +++ b/src/components/summary/example-summary-household.njk @@ -8,8 +8,8 @@ { "rows": [ { - "rowTitle": "Joe Bloggs (You)", - "rowItems": [ + "title": "Joe Bloggs (You)", + "items": [ { "iconType": "person", "actions": [ @@ -23,8 +23,8 @@ ] }, { - "rowTitle": "Barry Scott", - "rowItems": [ + "title": "Barry Scott", + "items": [ { "iconType": "person", "actions": [ @@ -43,8 +43,8 @@ ] }, { - "rowTitle": "Wilhelmina Susannah Clementine-Smith", - "rowItems": [ + "title": "Wilhelmina Susannah Clementine-Smith", + "items": [ { "iconType": "person", "actions": [ diff --git a/src/components/summary/example-summary-hub-minimal.njk b/src/components/summary/example-summary-hub-minimal.njk index eeaaf8ca6d..31271b0e5a 100644 --- a/src/components/summary/example-summary-hub-minimal.njk +++ b/src/components/summary/example-summary-hub-minimal.njk @@ -8,8 +8,8 @@ { "rows": [ { - "rowTitle": "People who live here", - "rowItems": [ + "title": "People who live here", + "items": [ { "iconType": "check", "iconVisuallyHiddenText": "Section complete", @@ -24,8 +24,8 @@ ] }, { - "rowTitle": "Mary Smith (You)", - "rowItems": [ + "title": "Mary Smith (You)", + "items": [ { "iconType": "check", "iconVisuallyHiddenText": "Section complete", @@ -40,8 +40,8 @@ ] }, { - "rowTitle": "John Smith", - "rowItems": [ + "title": "John Smith", + "items": [ { "actions": [ { @@ -54,8 +54,8 @@ ] }, { - "rowTitle": "Billy Smith", - "rowItems": [ + "title": "Billy Smith", + "items": [ { "actions": [ { diff --git a/src/components/summary/example-summary-hub.njk b/src/components/summary/example-summary-hub.njk index 5811c61f49..ac95512fda 100644 --- a/src/components/summary/example-summary-hub.njk +++ b/src/components/summary/example-summary-hub.njk @@ -8,8 +8,8 @@ { "rows": [ { - "rowTitle": "People who live here", - "rowItems": [ + "title": "People who live here", + "items": [ { "iconType": "check", "valueList": [ @@ -28,8 +28,8 @@ ] }, { - "rowTitle": "Accommodation", - "rowItems": [ + "title": "Accommodation", + "items": [ { "iconType": "check", "valueList": [ @@ -48,8 +48,8 @@ ] }, { - "rowTitle": "Mary Smith (You)", - "rowItems": [ + "title": "Mary Smith (You)", + "items": [ { "iconType": "check", "valueList": [ @@ -68,8 +68,8 @@ ] }, { - "rowTitle": "John Smith", - "rowItems": [ + "title": "John Smith", + "items": [ { "valueList": [ { @@ -87,8 +87,8 @@ ] }, { - "rowTitle": "Billy Smith", - "rowItems": [ + "title": "Billy Smith", + "items": [ { "valueList": [ { @@ -106,8 +106,8 @@ ] }, { - "rowTitle": "Sally Smith", - "rowItems": [ + "title": "Sally Smith", + "items": [ { "valueList": [ { @@ -125,8 +125,8 @@ ] }, { - "rowTitle": "Wilhelmina Susannah Clementine-Smith (Visitor)", - "rowItems": [ + "title": "Wilhelmina Susannah Clementine-Smith (Visitor)", + "items": [ { "valueList": [ { @@ -144,8 +144,8 @@ ] }, { - "rowTitle": "Vera Jones (Visitor)", - "rowItems": [ + "title": "Vera Jones (Visitor)", + "items": [ { "valueList": [ { diff --git a/src/components/summary/example-summary-multiple.njk b/src/components/summary/example-summary-multiple.njk index 403b6ecc4f..4394e7a7f6 100644 --- a/src/components/summary/example-summary-multiple.njk +++ b/src/components/summary/example-summary-multiple.njk @@ -3,15 +3,15 @@ onsSummary({ "summaries": [ { - "summaryTitle": "Summary - Section Title", + "title": "Summary - Section Title", "groups": [ { "rows": [ { - "rowTitle": "What are your monthly household expenses?", - "rowItems": [ + "title": "What are your monthly household expenses?", + "items": [ { - "rowTitle": "Food", + "title": "Food", "valueList": [ { "text": "£50.00" @@ -26,7 +26,7 @@ ] }, { - "rowTitle": "Utilities", + "title": "Utilities", "valueList": [ { "text": "£65.00" @@ -41,7 +41,7 @@ ] }, { - "rowTitle": "Transport", + "title": "Transport", "valueList": [ { "text": "£70.00" @@ -56,7 +56,7 @@ ] }, { - "rowTitle": "Other", + "title": "Other", "valueList": [ { "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." diff --git a/src/components/summary/example-summary-no-action.njk b/src/components/summary/example-summary-no-action.njk index e9e7fd9a1f..167516665f 100644 --- a/src/components/summary/example-summary-no-action.njk +++ b/src/components/summary/example-summary-no-action.njk @@ -5,11 +5,11 @@ { "groups": [ { - "groupTitle": "Turnover", + "title": "Turnover", "rows": [ { - "rowTitle": "What are the dates of the sales period you are reporting for?", - "rowItems": [ + "title": "What are the dates of the sales period you are reporting for?", + "items": [ { "valueList": [ { @@ -20,8 +20,8 @@ ] }, { - "rowTitle": "Total turnover", - "rowItems": [ + "title": "Total turnover", + "items": [ { "valueList": [ { diff --git a/src/components/summary/example-summary.njk b/src/components/summary/example-summary.njk index 7518d9341a..15249099ad 100644 --- a/src/components/summary/example-summary.njk +++ b/src/components/summary/example-summary.njk @@ -8,12 +8,12 @@ { "placeholderText": 'test', "id": "turnover", - "groupTitle": "Turnover", + "title": "Turnover", "rows": [ { "id": "sales-dates-row", - "rowTitle": "What are the dates of the sales period you are reporting for?", - "rowItems": [ + "title": "What are the dates of the sales period you are reporting for?", + "items": [ { "id": "sales-dates", "valueList": [ @@ -32,9 +32,9 @@ ] }, { - "rowTitle": "For the period 1 January 2015 to 2 February 2017, what was the value of your total turnover, excluding VAT?", + "title": "For the period 1 January 2015 to 2 February 2017, what was the value of your total turnover, excluding VAT?", "id": "sales-value-row", - "rowItems": [ + "items": [ { "id": "sales-value", "valueList": [ @@ -54,8 +54,8 @@ }, { "id": "sales-reasons-row", - "rowTitle": "Please indicate the reasons for any changes in the total turnover", - "rowItems": [ + "title": "Please indicate the reasons for any changes in the total turnover", + "items": [ { "id": "sales-reasons", "valueList": [ @@ -79,8 +79,8 @@ }, { "id": "sales-detail-row", - "rowTitle": "Please describe the changes in total turnover in more detail", - "rowItems": [ + "title": "Please describe the changes in total turnover in more detail", + "items": [ { "id": "sales-detail", "valueList": [ diff --git a/src/patterns/hub-and-spoke/example-hub-complete.njk b/src/patterns/hub-and-spoke/example-hub-complete.njk index d391f8179c..2e31d01642 100644 --- a/src/patterns/hub-and-spoke/example-hub-complete.njk +++ b/src/patterns/hub-and-spoke/example-hub-complete.njk @@ -35,8 +35,8 @@ layout: ~ { "rows": [ { - "rowTitle": "People who live here", - "rowItems": [ + "title": "People who live here", + "items": [ { "iconType": "check", "valueList": [ @@ -55,8 +55,8 @@ layout: ~ ] }, { - "rowTitle": "Household accommodation", - "rowItems": [ + "title": "Household accommodation", + "items": [ { "iconType": "check", "valueList": [ @@ -75,8 +75,8 @@ layout: ~ ] }, { - "rowTitle": "Mary Smith", - "rowItems": [ + "title": "Mary Smith", + "items": [ { "iconType": "check", "valueList": [ @@ -95,8 +95,8 @@ layout: ~ ] }, { - "rowTitle": "John Smith", - "rowItems": [ + "title": "John Smith", + "items": [ { "iconType": "check", "valueList": [ @@ -115,8 +115,8 @@ layout: ~ ] }, { - "rowTitle": "Billy Smith", - "rowItems": [ + "title": "Billy Smith", + "items": [ { "iconType": "check", "valueList": [ @@ -135,8 +135,8 @@ layout: ~ ] }, { - "rowTitle": "Mary Susannah Smith (Visitor)", - "rowItems": [ + "title": "Mary Susannah Smith (Visitor)", + "items": [ { "iconType": "check", "valueList": [ diff --git a/src/patterns/hub-and-spoke/example-hub.njk b/src/patterns/hub-and-spoke/example-hub.njk index 0615ad58ab..3d2da712d9 100644 --- a/src/patterns/hub-and-spoke/example-hub.njk +++ b/src/patterns/hub-and-spoke/example-hub.njk @@ -28,8 +28,8 @@ layout: ~ { "rows": [ { - "rowTitle": "People who live here", - "rowItems": [ + "title": "People who live here", + "items": [ { "iconType": "check", "valueList": [ @@ -48,8 +48,8 @@ layout: ~ ] }, { - "rowTitle": "Household accommodation", - "rowItems": [ + "title": "Household accommodation", + "items": [ { "iconType": "check", "valueList": [ @@ -68,8 +68,8 @@ layout: ~ ] }, { - "rowTitle": "Mary Smith", - "rowItems": [ + "title": "Mary Smith", + "items": [ { "iconType": "check", "valueList": [ @@ -88,8 +88,8 @@ layout: ~ ] }, { - "rowTitle": "John Smith", - "rowItems": [ + "title": "John Smith", + "items": [ { "valueList": [ { @@ -107,8 +107,8 @@ layout: ~ ] }, { - "rowTitle": "Billy Smith", - "rowItems": [ + "title": "Billy Smith", + "items": [ { "valueList": [ { @@ -126,8 +126,8 @@ layout: ~ ] }, { - "rowTitle": "Mary Susannah Smith (Visitor)", - "rowItems": [ + "title": "Mary Susannah Smith (Visitor)", + "items": [ { "valueList": [ { diff --git a/src/patterns/hub-and-spoke/example-spoke-summary.njk b/src/patterns/hub-and-spoke/example-spoke-summary.njk index c72a29ac29..b08260c2ca 100644 --- a/src/patterns/hub-and-spoke/example-spoke-summary.njk +++ b/src/patterns/hub-and-spoke/example-spoke-summary.njk @@ -34,8 +34,8 @@ layout: ~ { "rows": [ { - "rowTitle": "What type of accommodation is 68 Abingdon Road, Goathill?", - "rowItems": [ + "title": "What type of accommodation is 68 Abingdon Road, Goathill?", + "items": [ { "valueList": [ { @@ -53,8 +53,8 @@ layout: ~ ] }, { - "rowTitle": "Are all the rooms in this accommodation, including the kitchen, bathroom and toilet, behind a door that only this household can use?", - "rowItems": [ + "title": "Are all the rooms in this accommodation, including the kitchen, bathroom and toilet, behind a door that only this household can use?", + "items": [ { "valueList": [ { @@ -72,8 +72,8 @@ layout: ~ ] }, { - "rowTitle": "How many bedrooms are available for use only by this household?", - "rowItems": [ + "title": "How many bedrooms are available for use only by this household?", + "items": [ { "valueList": [ { @@ -91,8 +91,8 @@ layout: ~ ] }, { - "rowTitle": "What type of central heating does have?", - "rowItems": [ + "title": "What type of central heating does have?", + "items": [ { "valueList": [ { @@ -110,8 +110,8 @@ layout: ~ ] }, { - "rowTitle": "Does your household own or rent 68 Abingdon Road, Goathill?", - "rowItems": [ + "title": "Does your household own or rent 68 Abingdon Road, Goathill?", + "items": [ { "valueList": [ { @@ -129,8 +129,8 @@ layout: ~ ] }, { - "rowTitle": "In total, how many cars or vans are owned, or available for use, by members of this household?", - "rowItems": [ + "title": "In total, how many cars or vans are owned, or available for use, by members of this household?", + "items": [ { "valueList": [ {