{% from "components/summary/_macro.njk" import onsSummary %}

<h1>Your answers</h1>

{{
    onsSummary({
        "summaries": [
            {
                "title": "John Doe",
                "groups": [
                    {
                        "title": "Personal details",
                        "rows": [
                            {
                                "title": "Are you John Doe?",
                                "itemsList": [
                                    {
                                        "valueList": [
                                            {
                                                "text": "Yes I am"
                                            }
                                        ],
                                        "actions": [
                                            {
                                                "text": "Change",
                                                "visuallyHiddenText": "Change answer",
                                                "url": "#0"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "title": "What's your date of birth?",
                                "itemsList": [
                                    {
                                        "valueList": [
                                            {
                                                "text": "1 January 1981"
                                            }
                                        ],
                                        "actions": [
                                            {
                                                "text": "Change",
                                                "visuallyHiddenText": "Change answer",
                                                "url": "#0"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "title": "What is your sex?",
                                "itemsList": [
                                    {
                                        "valueList": [
                                            {
                                                "text": "Male"
                                            }
                                        ],
                                        "actions": [
                                            {
                                                "text": "Change",
                                                "visuallyHiddenText": "Change answer",
                                                "url": "#0"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "title": "Identity and health",
                        "rows": [
                            {
                                "title": "What is your country of birth?",
                                "itemsList": [
                                    {
                                        "valueList": [
                                            {
                                                "text": "England"
                                            }
                                        ],
                                        "actions": [
                                            {
                                                "text": "Change",
                                                "visuallyHiddenText": "Change answer",
                                                "url": "#0"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "title": "What passports do you hold?",
                                "itemsList": [
                                    {
                                        "valueList": [
                                            {
                                                "text": "United Kingdom"
                                            }
                                        ],
                                        "actions": [
                                            {
                                                "text": "Change",
                                                "visuallyHiddenText": "Change answer",
                                                "url": "#0"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "title": "Qualifications",
                        "rows": [
                            {
                                "title": "Have you completed an apprenticeship?",
                                "itemsList": [
                                    {
                                        "valueList": [
                                            {
                                                "text": "Yes"
                                            }
                                        ],
                                        "actions": [
                                            {
                                                "text": "Change",
                                                "visuallyHiddenText": "Change answer",
                                                "url": "#0"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "title": "Have you achieved a GCSE or equivalent qualification?",
                                "itemsList": [
                                    {
                                        "valueList": [
                                            {
                                                "text": "5 GCSEs grades A* to C or 9 to 4"
                                            }
                                        ],
                                        "actions": [
                                            {
                                                "text": "Change",
                                                "visuallyHiddenText": "Change answer",
                                                "url": "#0"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "title": "Employment history",
                        "rows": [
                            {
                                "itemsList": [
                                    {
                                        "title": "Name of UK company",
                                        "valueList": [
                                            {
                                                "text": "Company A"
                                            }
                                        ],
                                        "actions": [
                                            {
                                                "text": "Change",
                                                "visuallyHiddenText": "Change answer",
                                                "url": "#0"
                                            },
                                            {
                                                "text": "Remove",
                                                "visuallyHiddenText": "Remove company",
                                                "url": "#0"
                                            }
                                        ]
                                    },
                                    {
                                        "title": "Head office location",
                                        "valueList": [
                                            {
                                                "text": "Cardiff"
                                            }
                                        ],
                                        "actions": [
                                            {
                                                "text": "Change",
                                                "visuallyHiddenText": "Change answer",
                                                "url": "#0"
                                            }
                                        ]
                                    },
                                    {
                                        "title": "Is this UK company your current employer?",
                                        "valueList": [
                                            {
                                                "text": "No"
                                            }
                                        ],
                                        "actions": [
                                            {
                                                "text": "Change",
                                                "visuallyHiddenText": "Change answer",
                                                "url": "#0"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "itemsList": [
                                    {
                                        "title": "Name of UK company",
                                        "valueList": [
                                            {
                                                "text": "Company A"
                                            }
                                        ],
                                        "actions": [
                                            {
                                                "text": "Change",
                                                "visuallyHiddenText": "Change answer",
                                                "url": "#0"
                                            },
                                            {
                                                "text": "Remove",
                                                "visuallyHiddenText": "Remove company",
                                                "url": "#0"
                                            }
                                        ]
                                    },
                                    {
                                        "title": "Head office location",
                                        "valueList": [
                                            {
                                                "text": "Newport"
                                            }
                                        ],
                                        "actions": [
                                            {
                                                "text": "Change",
                                                "visuallyHiddenText": "Change answer",
                                                "url": "#0"
                                            }
                                        ]
                                    },
                                    {
                                        "title": "Is this UK company your current employer?",
                                        "valueList": [
                                            {
                                                "text": "Yes"
                                            }
                                        ],
                                        "actions": [
                                            {
                                                "text": "Change",
                                                "visuallyHiddenText": "Change answer",
                                                "url": "#0"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ],
                        "summaryLink": {
                            "text": "Add a UK company or branch",
                            "url": "#0",
                            "attributes": {
                                "data-qa": "add-item-link"
                            }
                        }
                    },
                    {
                        "title": "Spending",
                        "rows": [
                            {
                                "title": "What are your monthly household expenses?",
                                "itemsList": [
                                    {
                                        "title": "Food",
                                        "actions": [
                                            {
                                                "text": "Change",
                                                "visuallyHiddenText": "Change answer",
                                                "url": "#0"
                                            }
                                        ]
                                    },
                                    {
                                        "title": "Utilities",
                                        "valueList": [
                                            {
                                                "text": "£65.00"
                                            }
                                        ],
                                        "actions": [
                                            {
                                                "text": "Change",
                                                "visuallyHiddenText": "Change answer",
                                                "url": "#0"
                                            }
                                        ]
                                    },
                                    {
                                        "title": "Transport",
                                        "valueList": [
                                            {
                                                "text": "£70.00"
                                            }
                                        ],
                                        "actions": [
                                            {
                                                "text": "Change",
                                                "visuallyHiddenText": "Change answer",
                                                "url": "#0"
                                            }
                                        ]
                                    },
                                    {
                                        "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."
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        ]
    })
}}
