diff --git a/app/assets/sass/main.scss b/app/assets/sass/main.scss index 44aacac..9720fbf 100755 --- a/app/assets/sass/main.scss +++ b/app/assets/sass/main.scss @@ -11,3 +11,18 @@ .nhsuk-summary-list__actions { border-bottom: none; } + +.nhsuk-phase-banner { + padding: 10px 0; + border-bottom: 1px solid #d8dde0; +} +.nhsuk-phase-banner__content { + display: flex; + align-items: center; +} +.nhsuk-phase-banner__content .nhsuk-tag { + margin-right: 10px; +} +.nhsuk-phase-banner__text { + margin: 0; +} diff --git a/app/views/index.html b/app/views/index.html index 2c74607..c2a1da6 100755 --- a/app/views/index.html +++ b/app/views/index.html @@ -1,7 +1,7 @@ -{% extends 'layouts/layout_home.html' %} +{% extends "layouts/layout_home.html" %} {% block pageTitle %} @@ -26,7 +26,7 @@

Check if you need a lung scan online prototy {% block content %}
- +

Prototype version 3.0 - pre-pilot

Last updated: 16 April 2026

@@ -34,10 +34,10 @@

Prototype version 3.0 - pre-pilot

Open prototype - +
- +

Prototype version 2.0 - pre-pilot

Last updated: 12 November 2025

@@ -45,10 +45,10 @@

Prototype version 2.0 - pre-pilot

Open prototype - +
- +

Prototype version 1.0

Last updated: 31 July 2025

@@ -56,10 +56,10 @@

Prototype version 1.0

Open prototype - +
- +

Design history

These are our design history posts and new ones will be added as they are published.

@@ -71,24 +71,24 @@

Design history

  • 11 August 2025 - Designing and testing a prototype
  • 9 June 2025 - Health assessments discovery
  • - +
    - +

    Design standards

    We use the NHS Design Principles and GDS Service Standards to guide our work and ensure that the services we are delivering are equitable and inclusive.

    - +
    - +

    Key links

    - +
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/layout.html b/app/views/layout.html index 40a720e..df9e779 100755 --- a/app/views/layout.html +++ b/app/views/layout.html @@ -5,60 +5,42 @@ --> {% extends "prototype-kit-template.njk" %} -{% from "tag/macro.njk" import tag %} -{% from "panel/macro.njk" import panel %} {% block head %} - {% endblock %} {% block pageTitle %} -Check if you need a lung scan +{{ serviceName }} - NHS {% endblock %} {% block header %} {{ header({ -logo: { -href: "/", -ariaLabel: "Check if you need a lung scan" -}, -service: { -text: "Check if you need a lung scan", -href: "/" -}, -account: { -items: [ -{ -text: "Alex Smith", -href: "#", -icon: true -}, -{ -text: "Log out", -href: "/prototype_v3/start-journey" -} -] -} if data['logged-in'] + logo: { + href: "/", + ariaLabel: "Check if you need a lung scan" + }, + service: { + text: "Check if you need a lung scan", + href: "/" + }, + account: { + items: [ + { + text: "Alex Smith", + href: "#", + icon: true + }, + { + text: "Log out", + href: "/prototype_v3/start-journey" + } + ] + } if data['logged-in'] }) }} @@ -70,8 +52,7 @@ classes: "nhsuk-tag--blue" }) }}

    - We are testing a new service – your feedback will help us to improve it. -

    + We are testing a new service – your feedback will help us to improve it.

    @@ -82,48 +63,46 @@ {% block footer %} {{ footer({ -meta: { -items: [ -{ -href: "/prototype_v3/accessibility-statement", -text: "Accessibility statement" -}, -{ -href: "/prototype_v3/contact-us", -text: "Contact us" -}, -{ -href: "/prototype_v3/cookies", -text: "Cookies" -}, -{ -href: "/prototype_v3/privacy-policy", -text: "Privacy policy" -}, -{ -href: "/prototype_v3/terms-of-use", -text: "Terms of use" -} -] -} + meta: { + items: [ + { + href: "/prototype_v3/accessibility-statement", + text: "Accessibility statement" + }, + { + href: "/prototype_v3/contact-us", + text: "Contact us" + }, + { + href: "/prototype_v3/cookies", + text: "Cookies" + }, + { + href: "/prototype_v3/privacy-policy", + text: "Privacy policy" + }, + { + href: "/prototype_v3/terms-of-use", + text: "Terms of use" + } + ] + } }) }} - -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/accessibility-statement.html b/app/views/prototype_v3/accessibility-statement.html index 5f4704d..a68e1e8 100644 --- a/app/views/prototype_v3/accessibility-statement.html +++ b/app/views/prototype_v3/accessibility-statement.html @@ -1,136 +1,136 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} - Accessibility statement for NHS check if you need a lung scan - NHS + Accessibility statement for NHS {{ serviceName | lower }} - NHS {% endblock %} {% block beforeContent %} {% endblock %} {% block content %} -
    -
    +
    +
    -

    Accessibility statement for NHS check if you need a lung scan

    +

    Accessibility statement for NHS {{ serviceName | lower }}

    -

    This statement was created in March 2026.

    +

    This statement was created in March 2026.

    -

    This accessibility statement applies to the website digital-lung-cancer-screening.nhs.uk

    +

    This accessibility statement applies to the website digital-lung-cancer-screening.nhs.uk

    -

    This website is run by NHS England. We want as many people as possible to be able to use this website. For example, that means you should be able to:

    +

    This website is run by NHS England. We want as many people as possible to be able to use this website. For example, that means you should be able to:

    -
      -
    • change colours, contrast levels and fonts using browser or device settings
    • -
    • zoom in up to 400% without the text spilling off the screen
    • -
    • navigate most of the website using a keyboard or speech recognition software
    • -
    • listen to most of the website using a screen reader (including the most recent versions of JAWS, NVDA and VoiceOver)
    • -
    +
      +
    • change colours, contrast levels and fonts using browser or device settings
    • +
    • zoom in up to 400% without the text spilling off the screen
    • +
    • navigate most of the website using a keyboard or speech recognition software
    • +
    • listen to most of the website using a screen reader (including the most recent versions of JAWS, NVDA and VoiceOver)
    • +
    -

    We've also made the website text as simple as possible to understand.

    +

    We've also made the website text as simple as possible to understand.

    -

    AbilityNet has advice on making your device easier to use if you have a disability.

    +

    AbilityNet has advice on making your device easier to use if you have a disability.

    -

    How accessible this website is

    +

    How accessible this website is

    -

    We have used the NHS service standard and NHS design system to design and build this website which has been fully accessibility tested.

    +

    We have used the NHS service standard and NHS design system to design and build this website which has been fully accessibility tested.

    -

    Due to the short-term nature of the test of the online service and the delivery schedule we were unable to test the accessibility of this website with people with access needs.

    +

    Due to the short-term nature of the test of the online service and the delivery schedule we were unable to test the accessibility of this website with people with access needs.

    -

    We have tested this website for accessibility issues with automated tools and through manual testing. We have a phone service for people who are unable to access this website.

    +

    We have tested this website for accessibility issues with automated tools and through manual testing. We have a phone service for people who are unable to access this website.

    -

    If you are unable to test the online service, please call us on 020 3835 1600

    +

    If you are unable to test the online service, please call us on 020 3835 1600

    -

    We know some parts of this website are not fully accessible:

    +

    We know some parts of this website are not fully accessible:

    -
      -
    • There are some issues with accessibility of the content of our service, relating to error handling, text and headings and text fields and labelling
    • -
    +
      +
    • There are some issues with accessibility of the content of our service, relating to error handling, text and headings and text fields and labelling
    • +
    -

    Details of this can be found below in the 'Non-accessible content' section.

    +

    Details of this can be found below in the 'Non-accessible content' section.

    -

    Feedback and contact information

    +

    Feedback and contact information

    -

    If you find any problems not listed on this page or think we're not meeting accessibility requirements, contact: england.digitallungcancerscreening@nhs.net

    +

    If you find any problems not listed on this page or think we're not meeting accessibility requirements, contact: england.digitallungcancerscreening@nhs.net

    -

    If you need information on this website in a different format like accessible PDF, large print, easy read, audio recording or braille:

    +

    If you need information on this website in a different format like accessible PDF, large print, easy read, audio recording or braille:

    - + -

    We'll consider your request and get back to you in 7-14 days.

    +

    We'll consider your request and get back to you in 7-14 days.

    -

    Enforcement procedure

    +

    Enforcement procedure

    -

    The Equality and Human Rights Commission (EHRC) is responsible for enforcing the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018 (the 'accessibility regulations'). If you're not happy with how we respond to your complaint, contact the Equality Advisory and Support Service (EASS).

    +

    The Equality and Human Rights Commission (EHRC) is responsible for enforcing the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018 (the 'accessibility regulations'). If you're not happy with how we respond to your complaint, contact the Equality Advisory and Support Service (EASS).

    -

    Technical information about this website's accessibility

    +

    Technical information about this website'2 accessibility

    -

    NHS England is committed to making its website accessible, in accordance with the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018.

    +

    NHS England is committed to making its website accessible, in accordance with the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018.

    -

    Compliance status

    +

    Compliance status

    -

    This website is partially compliant with the Web Content Accessibility Guidelines (WCAG) version 2.2 AA standard, due to the non-compliances listed below.

    +

    This website is partially compliant with the Web Content Accessibility Guidelines (WCAG) version 2.2 AA standard, due to the non-compliances listed below.

    -

    Non-accessible content

    +

    Non-accessible content

    -

    The content listed below is non-accessible for the following reasons.

    +

    The content listed below is non-accessible for the following reasons.

    -

    Error handling

    +

    Error handling

    -
      -
    • There is no error summary at the top of the page if there are errors
    • -
    +
      +
    • There is no error summary at the top of the page if there are errors
    • +
    -

    Text and headings

    +

    Text and headings

    -
      -
    • Questions on pages are not marked as 'Heading level 2'
    • -
    +
      +
    • Questions on pages are not marked as 'Heading level 2'
    • +
    -

    Text fields and labelling

    +

    Text fields and labelling

    -
      -
    • Text entry fields are editable but not announced as editable for screenreader users
    • -
    +
      +
    • Text entry fields are editable but not announced as editable for screenreader users
    • +
    -

    What we're doing to improve accessibility

    +

    What we're doing to improve accessibility

    -

    We have an alternate phone service that increases accessibility for all users. To access this service, please call 020 3835 1600.

    +

    We have an alternate phone service that increases accessibility for all users. To access this service, please call 020 3835 1600.

    -

    We have published tools and guidance on accessibility in the NHS digital service manual based on extensive testing. The service manual helps our teams build products and services to meet the same accessibility standards.

    +

    We have published tools and guidance on accessibility in the NHS digital service manual based on extensive testing. The service manual helps our teams build products and services to meet the same accessibility standards.

    -

    At NHS England, creating an accessible service is a team effort. We want our teams to make accessible services by:

    +

    At NHS England, creating an accessible service is a team effort. We want our teams to make accessible services by:

    -
      -
    • considering accessibility at the start of their project, and throughout
    • -
    • making accessibility the whole team's responsibility
    • -
    • researching with disabled users
    • -
    • using a library of accessible components and patterns
    • -
    • carrying out regular accessibility audits and testing
    • -
    • designing and building to level AA of WCAG 2.2 – which is NHS England policy
    • -
    +
      +
    • considering accessibility at the start of their project, and throughout
    • +
    • making accessibility the whole team's responsibility
    • +
    • researching with disabled users
    • +
    • using a library of accessible components and patterns
    • +
    • carrying out regular accessibility audits and testing
    • +
    • designing and building to level AA of WCAG 2.2 – which is NHS England policy
    • +
    -

    As part of this commitment, we have set up a cross-functional accessibility working group to make sure that accessibility remains at the core of everything we do.

    +

    As part of this commitment, we have set up a cross-functional accessibility working group to make sure that accessibility remains at the core of everything we do.

    -

    We are making sure that accessibility issues highlighted in this statement are being prioritised and fixed. Measures include:

    +

    We are making sure that accessibility issues highlighted in this statement are being prioritised and fixed. Measures include:

    -
      -
    • ongoing improvements to the NHS design system with a focus on accessibility
    • -
    • prioritising accessibility remedial work in all new development and improvement projects
    • -
    • working with suppliers to improve the accessibility of their products
    • -
    +
      +
    • ongoing improvements to the NHS design system with a focus on accessibility
    • +
    • prioritising accessibility remedial work in all new development and improvement projects
    • +
    • working with suppliers to improve the accessibility of their products
    • +
    -

    Preparation of this accessibility statement

    +

    Preparation of this accessibilit2 statement

    -

    This statement was prepared on 19th March 2026.

    +

    This statement was prepared on 19th March 2026.

    -

    This website was last tested on 17th March 2026 against the WCAG 2.2 AA standard by the product team of NHS check if you need a lung scan.

    +

    This website was last tested on 17th March 2026 against the WCAG 2.2 AA standard by the product team of NHS {{ serviceName | lower }}.

    -

    Content was selected to make sure a good representation of different pages, templates and components were tested as well as key content and user journeys.

    +

    Content was selected to make sure a good representation of different pages, templates and components were tested as well as key content and user journeys.

    -

    This website's accessibility will be reviewed on a regular basis and this accessibility statement updated with any relevant changes.

    +

    This website's accessibility will be reviewed on a regular basis and this accessibility statement updated with any relevant changes.

    +
    -
    {% endblock %} diff --git a/app/views/prototype_v3/agree-to-share-login-info.html b/app/views/prototype_v3/agree-to-share-login-info.html index fdcbc7d..b5926fc 100644 --- a/app/views/prototype_v3/agree-to-share-login-info.html +++ b/app/views/prototype_v3/agree-to-share-login-info.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Agree to share your NHS login information - NHS @@ -10,11 +10,11 @@
    -

    Agree to share your NHS login information

    +

    Agree to share your NHS login information

    -

    To continue, you need to agree to share your NHS login information with NHS check if you need a lung scan.

    +

    To continue, you need to agree to share your NHS login information with NHS {{ serviceName | lower }}.

    -

    NHS check if you need a lung scan will use your:

    +

    NHS {{ serviceName | lower }} will use your:

    • first names
    • @@ -24,17 +24,17 @@

      Agree to share your NHS login information

    • NHS number
    -

    Read the terms of use and privacy policy for NHS check if you need a lung scan to check how your information will be used.

    +

    Read the terms of use and privacy policy for NHS {{ serviceName | lower }} to check how your information will be used.

    -

    If you do not agree to share this information you will not be able to use NHS login with NHS check if you need a lung scan.

    +

    If you do not agree to share this information you will not be able to use NHS login with NHS {{ serviceName | lower }}.

    {{ button({ - "text": "I agree" + text: "I agree" }) }}
    -

    I do not agree to share this information

    +

    I do not agree to share this information

    diff --git a/app/views/prototype_v3/check-if-you-need-face-to-face-appointment.html b/app/views/prototype_v3/check-if-you-need-face-to-face-appointment.html index e1d176f..37fd039 100644 --- a/app/views/prototype_v3/check-if-you-need-face-to-face-appointment.html +++ b/app/views/prototype_v3/check-if-you-need-face-to-face-appointment.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Check if you need a face-to-face appointment - NHS @@ -17,21 +17,23 @@
    -

    Check if you need a face-to-face appointment

    +

    Check if you need a face-to-face appointment

    -

    This online service uses automatic calculations based on your height and weight. This means it is not suitable for everyone.

    +

    This online service uses automatic calculations based on your height and weight. This means it is not suitable for everyone.

    -

    You need to do your questionnaire in person, not online, if you:

    + {% set insetTextHtml %} +

    You need to do your questionnaire in person, not online, if you:

    + +
      +
    • have a condition that affects your height
    • +
    • have had a limb amputation, or were born with a limb difference
    • +
    • have been diagnosed with an eating disorder, or think you may have one
    • +
    • are pregnant
    • +
    + {% endset %} {{ insetText({ - html: " -
      -
    • have a condition that affects your height
    • -
    • have had a limb amputation, or were born with a limb difference
    • -
    • have been diagnosed with an eating disorder, or think you may have one
    • -
    • are pregnant
    • -
    - " + html: insetTextHtml }) }} {{ radios({ @@ -65,4 +67,4 @@

    Check if you need a face-to-face appointment

    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/check-the-details.html b/app/views/prototype_v3/check-the-details.html index 2432fd4..efbefeb 100644 --- a/app/views/prototype_v3/check-the-details.html +++ b/app/views/prototype_v3/check-the-details.html @@ -1,8 +1,7 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% set pageName = "Are these details correct?" %} - {% block beforeContent %} {{ backLink({ href: "start-page", @@ -13,70 +12,68 @@
    -

    Check the information we hold about you

    -

    These are details held in your NHS Account.

    +

    Check the information we hold about you

    +

    These are details held in your NHS Account.

    - {{ summaryList({ - rows: [ - { - key: { - text: "Name" + {{ summaryList({ + rows: [ + { + key: { + text: "Name" + }, + value: { + text: "Jane Smith" + } }, - value: { - text: "Jane Smith" - } - }, - { - key: { - text: "Date of birth" + { + key: { + text: "Date of birth" + }, + value: { + html: "20 June 1965" + } }, - value: { - html: "20 June 1965" + { + key: { + text: "NHS number" + }, + value: { + text: "415 514 1993" + } + } + ] + }) }} + +
    + + {{ radios({ + idPrefix: "are-details-correct", + name: "are-these-details-correct", + value: data["are-these-details-correct"], + fieldset: { + legend: { + text: "Are these details correct?", + classes: "nhsuk-fieldset__legend--m", + isPageHeading: true } }, - { - key: { - text: "NHS number" + items: [ + { + value: "yes", + text: "Yes" }, - value: { - text: "415 514 1993" + { + value: "no", + text: "No" } - } - ] - }) }} + ] + }) }} + {{ button({ + text: "Continue" + }) }} - -
    - - -{{ radios({ - idPrefix: "are-details-correct", - name: "are-these-details-correct", - fieldset: { - legend: { - text: "Are these details correct?", - classes: "nhsuk-fieldset__legend--m", - isPageHeading: true - } - }, - items: [ - { - value: "yes", - text: "Yes" - }, - { - value: "no", - text: "No" - } - ] -}) }} - -{{ button({ - text: "Continue" -}) }} - - +
    - {% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/check-your-answers.html b/app/views/prototype_v3/check-your-answers.html index b93ae83..32bf3c1 100644 --- a/app/views/prototype_v3/check-your-answers.html +++ b/app/views/prototype_v3/check-your-answers.html @@ -1,1060 +1,1059 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% set pageHeading = "Check your answers" %} {% set buttonText = "Submit" %} {% block beforeContent %} -{{ backLink({ -href: "javascript:history.back();", -text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} +
    +
    +

    {{ pageHeading }}

    +

    Check the information you have given us. If any of the details are wrong, you can change them.

    -
    -
    -

    {{ pageHeading }}

    -

    Check the information you have given us. If any of the details are wrong, you can change them.

    + + {% if data.smokedRegularly or data.dateOfBirth %} +

    Eligibility

    - - {% if data["smokedRegularly"] or data["dateOfBirth"] %} -

    Eligibility

    - -
    - {% if data["smokedRegularly"] %} -
    -
    Have you ever smoked tobacco?
    -
    - {% if data["smokedRegularly"] == "Yes-currently" %} - Yes, I currently smoke - {% elif data["smokedRegularly"] == "Yes-usedToRegularly" %} - Yes, I used to smoke regularly - {% else %} - {{ data["smokedRegularly"] }} - {% endif %} -
    -
    - Change smoking - status -
    -
    - {% endif %} - - {% if data["dateOfBirth"] %} -
    -
    Date of birth
    -
    - {% if data["dateOfBirth"]["day"] and data["dateOfBirth"]["month"] and data["dateOfBirth"]["year"] %} - {{ data["dateOfBirth"]["day"] }}/{{ data["dateOfBirth"]["month"] }}/{{ data["dateOfBirth"]["year"] }} - {% else %} - {{ data["dateOfBirth"] }} - {% endif %} -
    -
    - Change date of - birth -
    -
    - {% endif %} -
    - {% endif %} - - -

    About you

    - -
    - {% if data["height"] %} -
    -
    Height
    -
    - {% if data["height"]["feet"] and data["height"]["inches"] %} - {{ data["height"]["feet"] }} feet {{ data["height"]["inches"] }} inches - {% elif data["height"]["centimetres"] %} - {{ data["height"]["centimetres"] }} cm - {% else %} - {{ data["height"] }} cm - {% endif %} -
    -
    - Change height -
    -
    - {% endif %} - - {% if data["weight"] %} -
    -
    Weight
    -
    - {% if data["weight"]["stone"] and data["weight"]["pounds"] %} - {{ data["weight"]["stone"] }} stone {{ data["weight"]["pounds"] }} pounds - {% elif data["weight"]["kilograms"] %} - {{ data["weight"]["kilograms"] }} kg - {% else %} - {{ data["weight"] }} kg - {% endif %} -
    -
    - Change weight -
    -
    - {% endif %} - - {% if data["whatIsYourSex"] %} -
    -
    Sex at birth
    -
    {{ data["whatIsYourSex"] }}
    -
    - Change sex -
    -
    - {% endif %} - - {% if data["bestDescribe"] %} -
    -
    Gender identity
    -
    {{ data["bestDescribe"] }}
    -
    - Change gender identity -
    -
    - {% endif %} - - {% if data["ethnicBackground"] %} -
    -
    Ethnic background
    -
    {{ data["ethnicBackground"] }}
    -
    - Change ethnic - background -
    -
    - {% endif %} - - {% if data["educationCompleted"] %} -
    -
    Education
    -
    {{ data["educationCompleted"] }}
    -
    - Change education - level -
    -
    - {% endif %} -
    - - -

    Your health

    - -
    - {% if data["EverDiagnosedWith"] %} -
    -
    Respiratory conditions
    -
    - {% if data["EverDiagnosedWith"] is iterable and data["EverDiagnosedWith"] is not string %} - {{ data["EverDiagnosedWith"] | join(", ") }} - {% else %} - {{ data["EverDiagnosedWith"] }} - {% endif %} -
    -
    - Change respiratory - conditions -
    -
    - {% endif %} - - {% if data["exposedAsbestos"] %} -
    -
    Have you ever worked in a job where you were exposed to asbestos?
    -
    {{ data["exposedAsbestos"] }}
    -
    - Change asbestos exposure at - work -
    -
    - {% endif %} - - {% if data["livedWithAsbestosWorker"] %} -
    -
    Have you ever lived with anyone who worked with asbestos?
    -
    {{ data["livedWithAsbestosWorker"] }}
    -
    - Change lived with asbestos - worker -
    -
    - {% endif %} - - {% if data["diagnosedCancer"] %} -
    -
    Have you ever been diagnosed with cancer?
    -
    {{ data["diagnosedCancer"] }}
    -
    - Change cancer diagnosis -
    -
    - {% endif %} -
    - - -

    Family history

    - -
    - {% if data["relativesHaveCancer"] %} -
    -
    Have any of your parents, siblings or children ever been diagnosed with lung cancer?
    -
    {{ data["relativesHaveCancer"] }}
    -
    - Change relatives with cancer -
    -
    - {% endif %} - - {% if data["relativesHaveCancer"] == "Yes" and data["relativeAge"] %} -
    -
    Were any of your relatives younger than 60 years old when they were diagnosed with lung cancer?
    -
    {{ data["relativeAge"] }}
    -
    - Change relatives age at - diagnosis -
    -
    - {% endif %} -
    - - -

    Smoking habits

    - -
    - {% if data["ageStartedSmoking"] %} -
    -
    Age you started smoking
    -
    Aged {{ data["ageStartedSmoking"] }}
    -
    - Change age started - smoking -
    -
    - {% endif %} - - {% if data["formerSmokingQuitDate"] %} -
    -
    Age you quit smoking
    -
    - Aged {{ data["formerSmokingQuitDate"]["age"] or (data["formerSmokingQuitDate"]["month"] ~ "/" ~ data["formerSmokingQuitDate"]["year"]) }} -
    -
    - Change quit date -
    -
    - {% endif %} - - - {% if data["stoppedSmokingPeriods"] == "Yes" and data["totalYearsStoppedSmoking"] %} -
    -
    Periods where you stopped smoking for 1 year or longer
    -
    {{ data["totalYearsStoppedSmoking"] }} years
    -
    - Change periods when stopped -
    -
    - {% endif %} - - - {% if data["whatSmokeNow"] or data["whatDidSmoke"] or data["tobaccoTypes"] %} -
    -
    Types of tobacco smoked
    -
    - {% set tobaccoTypes = data["tobaccoTypes"] or data["whatSmokeNow"] or data["whatDidSmoke"] %} - {% if tobaccoTypes is iterable and tobaccoTypes is not string %} - {{ tobaccoTypes | join(", ") }} - {% else %} - {{ tobaccoTypes }} - {% endif %} -
    -
    - Change tobacco types -
    -
    - {% endif %} - - - - - {% if data["cigarettesCurrentYearsSmoked"] or data["cigarettesCurrentFrequency"] %} -
    -
    Total number of years you have smoked cigarettes
    -
    {{ data["cigarettesCurrentYearsSmoked"] }} years
    -
    - Change cigarettes years -
    -
    - {% endif %} - - {% if data["cigarettesCurrentFrequency"] %} -
    -
    Cigarettes - how often you smoke
    -
    {{ data["cigarettesCurrentFrequency"] }}
    -
    - Change cigarettes frequency -
    -
    - {% endif %} - - {% if data["cigarettesCurrentQuantity"] %} -
    -
    Cigarettes per - {% if data["cigarettesCurrentFrequency"] == "Daily" %}day{% elif data["cigarettesCurrentFrequency"] == "Weekly" %}week{% elif data["cigarettesCurrentFrequency"] == "Monthly" %}month{% else %}day{% endif %} -
    -
    {{ data["cigarettesCurrentQuantity"] }} cigarettes
    -
    - Change cigarettes quantity -
    -
    - {% endif %} - - {% if data["cigarettesCurrentMoreQuantity"] and data["cigarettesCurrentMoreDuration"] %} -
    -
    Cigarettes - period of more smoking
    -
    - {{ data["cigarettesCurrentMoreQuantity"] }} cigarettes - {% if data["cigarettesCurrentMoreFrequency"] == "Daily" %}a day{% elif data["cigarettesCurrentMoreFrequency"] == "Weekly" %}a week{% elif data["cigarettesCurrentMoreFrequency"] == "Monthly" %}a month{% endif %} - for {{ data["cigarettesCurrentMoreDuration"] }} years -
    -
    - Change more period -
    -
    - {% endif %} - - {% if data["cigarettesCurrentLessQuantity"] and data["cigarettesCurrentLessDuration"] %} -
    -
    Cigarettes - period of less smoking
    -
    - {{ data["cigarettesCurrentLessQuantity"] }} cigarettes - {% if data["cigarettesCurrentLessFrequency"] == "Daily" %}a day{% elif data["cigarettesCurrentLessFrequency"] == "Weekly" %}a week{% elif data["cigarettesCurrentLessFrequency"] == "Monthly" %}a month{% endif %} - for {{ data["cigarettesCurrentLessDuration"] }} years -
    -
    - Change less period -
    -
    - {% endif %} - - {% if data["cigarettesCurrentStoppedYears"] %} -
    -
    Cigarettes - stopped smoking for
    -
    {{ data["cigarettesCurrentStoppedYears"] }} years
    -
    - Change stopped years -
    -
    - {% endif %} - - - - - {% if data["cigarettesFormerYearsSmoked"] or data["cigarettesFormerFrequency"] %} -
    -
    Total number of years you have smoked cigarettes
    -
    {{ data["cigarettesFormerYearsSmoked"] }} years
    -
    - Change cigarettes years -
    -
    - {% endif %} - - {% if data["cigarettesFormerFrequency"] %} -
    -
    Cigarettes - how often you smoked
    -
    {{ data["cigarettesFormerFrequency"] }}
    -
    - Change cigarettes frequency -
    -
    - {% endif %} - - {% if data["cigarettesFormerQuantity"] %} -
    -
    Cigarettes per - {% if data["cigarettesFormerFrequency"] == "Daily" %}day{% elif data["cigarettesFormerFrequency"] == "Weekly" %}week{% elif data["cigarettesFormerFrequency"] == "Monthly" %}month{% else %}day{% endif %} -
    -
    {{ data["cigarettesFormerQuantity"] }} cigarettes
    -
    - Change cigarettes quantity -
    -
    - {% endif %} - - {% if data["cigarettesFormerMoreQuantity"] and data["cigarettesFormerMoreDuration"] %} -
    -
    Cigarettes - period of more smoking
    -
    - {{ data["cigarettesFormerMoreQuantity"] }} cigarettes - {% if data["cigarettesFormerMoreFrequency"] == "Daily" %}a day{% elif data["cigarettesFormerMoreFrequency"] == "Weekly" %}a week{% elif data["cigarettesFormerMoreFrequency"] == "Monthly" %}a month{% endif %} - for {{ data["cigarettesFormerMoreDuration"] }} years -
    -
    - Change more period -
    -
    - {% endif %} - - {% if data["cigarettesFormerLessQuantity"] and data["cigarettesFormerLessDuration"] %} -
    -
    Cigarettes - period of less smoking
    -
    - {{ data["cigarettesFormerLessQuantity"] }} cigarettes - {% if data["cigarettesFormerLessFrequency"] == "Daily" %}a day{% elif data["cigarettesFormerLessFrequency"] == "Weekly" %}a week{% elif data["cigarettesFormerLessFrequency"] == "Monthly" %}a month{% endif %} - for {{ data["cigarettesFormerLessDuration"] }} years -
    -
    - Change less period -
    -
    - {% endif %} - - {% if data["cigarettesFormerStoppedYears"] %} -
    -
    Cigarettes - stopped smoking for
    -
    {{ data["cigarettesFormerStoppedYears"] }} years
    -
    - Change stopped years -
    -
    - {% endif %} - - - - - {% if data["rollingTobaccoCurrentYearsSmoked"] or data["rollingTobaccoCurrentFrequency"] %} -
    -
    Total number of years you have smoked rolling tobacco
    -
    {{ data["rollingTobaccoCurrentYearsSmoked"] }} years
    -
    - Change rolling tobacco years -
    -
    - {% endif %} - - {% if data["rollingTobaccoCurrentFrequency"] %} -
    -
    Rolling tobacco - how often you smoke
    -
    {{ data["rollingTobaccoCurrentFrequency"] }}
    -
    - Change rolling tobacco frequency -
    -
    - {% endif %} - - {% if data["rollingTobaccoCurrentQuantity"] %} -
    -
    Rolling tobacco per - {% if data["rollingTobaccoCurrentFrequency"] == "Daily" %}day{% elif data["rollingTobaccoCurrentFrequency"] == "Weekly" %}week{% elif data["rollingTobaccoCurrentFrequency"] == "Monthly" %}month{% else %}day{% endif %} -
    -
    {{ data["rollingTobaccoCurrentQuantity"] }} rolling tobacco
    -
    - Change rolling tobacco quantity -
    -
    - {% endif %} - - {% if data["rollingTobaccoCurrentMoreQuantity"] and data["rollingTobaccoCurrentMoreDuration"] %} -
    -
    Rolling tobacco - period of more smoking
    -
    - {{ data["rollingTobaccoCurrentMoreQuantity"] }} rolling tobacco - {% if data["rollingTobaccoCurrentMoreFrequency"] == "Daily" %}a day{% elif data["rollingTobaccoCurrentMoreFrequency"] == "Weekly" %}a week{% elif data["rollingTobaccoCurrentMoreFrequency"] == "Monthly" %}a month{% endif %} - for {{ data["rollingTobaccoCurrentMoreDuration"] }} years -
    -
    - Change more period -
    -
    - {% endif %} - - {% if data["rollingTobaccoCurrentLessQuantity"] and data["rollingTobaccoCurrentLessDuration"] %} -
    -
    Rolling tobacco - period of less smoking
    -
    - {{ data["rollingTobaccoCurrentLessQuantity"] }} rolling tobacco - {% if data["rollingTobaccoCurrentLessFrequency"] == "Daily" %}a day{% elif data["rollingTobaccoCurrentLessFrequency"] == "Weekly" %}a week{% elif data["rollingTobaccoCurrentLessFrequency"] == "Monthly" %}a month{% endif %} - for {{ data["rollingTobaccoCurrentLessDuration"] }} years -
    -
    - Change less period -
    -
    - {% endif %} - - {% if data["rollingTobaccoCurrentStoppedYears"] %} -
    -
    Rolling tobacco - stopped smoking for
    -
    {{ data["rollingTobaccoCurrentStoppedYears"] }} years
    -
    - Change stopped years -
    -
    - {% endif %} - - - - - {% if data["rollingTobaccoFormerYearsSmoked"] or data["rollingTobaccoFormerFrequency"] %} -
    -
    Total number of years you have smoked rolling tobacco
    -
    {{ data["rollingTobaccoFormerYearsSmoked"] }} years
    -
    - Change rolling tobacco years -
    -
    - {% endif %} - - {% if data["rollingTobaccoFormerFrequency"] %} -
    -
    Rolling tobacco - how often you smoked
    -
    {{ data["rollingTobaccoFormerFrequency"] }}
    -
    - Change rolling tobacco frequency -
    -
    - {% endif %} - - {% if data["rollingTobaccoFormerQuantity"] %} -
    -
    Rolling tobacco per - {% if data["rollingTobaccoFormerFrequency"] == "Daily" %}day{% elif data["rollingTobaccoFormerFrequency"] == "Weekly" %}week{% elif data["rollingTobaccoFormerFrequency"] == "Monthly" %}month{% else %}day{% endif %} -
    -
    {{ data["rollingTobaccoFormerQuantity"] }} rolling tobacco
    -
    - Change rolling tobacco quantity -
    -
    - {% endif %} - - {% if data["rollingTobaccoFormerMoreQuantity"] and data["rollingTobaccoFormerMoreDuration"] %} -
    -
    Rolling tobacco - period of more smoking
    -
    - {{ data["rollingTobaccoFormerMoreQuantity"] }} rolling tobacco - {% if data["rollingTobaccoFormerMoreFrequency"] == "Daily" %}a day{% elif data["rollingTobaccoFormerMoreFrequency"] == "Weekly" %}a week{% elif data["rollingTobaccoFormerMoreFrequency"] == "Monthly" %}a month{% endif %} - for {{ data["rollingTobaccoFormerMoreDuration"] }} years -
    -
    - Change more period -
    -
    - {% endif %} - - {% if data["rollingTobaccoFormerLessQuantity"] and data["rollingTobaccoFormerLessDuration"] %} -
    -
    Rolling tobacco - period of less smoking
    -
    - {{ data["rollingTobaccoFormerLessQuantity"] }} rolling tobacco - {% if data["rollingTobaccoFormerLessFrequency"] == "Daily" %}a day{% elif data["rollingTobaccoFormerLessFrequency"] == "Weekly" %}a week{% elif data["rollingTobaccoFormerLessFrequency"] == "Monthly" %}a month{% endif %} - for {{ data["rollingTobaccoFormerLessDuration"] }} years -
    -
    - Change less period -
    -
    - {% endif %} - - {% if data["rollingTobaccoFormerStoppedYears"] %} -
    -
    Rolling tobacco - stopped smoking for
    -
    {{ data["rollingTobaccoFormerStoppedYears"] }} years
    -
    - Change stopped years -
    -
    - {% endif %} - - - - - {% if data["pipeCurrentYearsSmoked"] or data["pipeCurrentFrequency"] %} -
    -
    Total number of years you have smoked a pipe
    -
    {{ data["pipeCurrentYearsSmoked"] }} years
    -
    - Change pipe years -
    -
    - {% endif %} - - {% if data["pipeCurrentFrequency"] %} -
    -
    Pipe - how often you smoke
    -
    {{ data["pipeCurrentFrequency"] }}
    -
    - Change pipe frequency -
    -
    - {% endif %} - - {% if data["pipeCurrentQuantity"] %} -
    -
    Pipe - bowls per - {% if data["pipeCurrentFrequency"] == "Daily" %}day{% elif data["pipeCurrentFrequency"] == "Weekly" %}week{% elif data["pipeCurrentFrequency"] == "Monthly" %}month{% else %}day{% endif %} -
    -
    {{ data["pipeCurrentQuantity"] }} bowls
    -
    - Change pipe quantity -
    -
    - {% endif %} - - {% if data["pipeCurrentMoreQuantity"] and data["pipeCurrentMoreDuration"] %} -
    -
    Pipe - period of more smoking
    -
    - {{ data["pipeCurrentMoreQuantity"] }} bowls - {% if data["pipeCurrentMoreFrequency"] == "Daily" %}a day{% elif data["pipeCurrentMoreFrequency"] == "Weekly" %}a week{% elif data["pipeCurrentMoreFrequency"] == "Monthly" %}a month{% endif %} - for {{ data["pipeCurrentMoreDuration"] }} years -
    -
    - Change more period -
    -
    - {% endif %} - - {% if data["pipeCurrentLessQuantity"] and data["pipeCurrentLessDuration"] %} -
    -
    Pipe - period of less smoking
    -
    - {{ data["pipeCurrentLessQuantity"] }} bowls - {% if data["pipeCurrentLessFrequency"] == "Daily" %}a day{% elif data["pipeCurrentLessFrequency"] == "Weekly" %}a week{% elif data["pipeCurrentLessFrequency"] == "Monthly" %}a month{% endif %} - for {{ data["pipeCurrentLessDuration"] }} years -
    -
    - Change less period -
    -
    - {% endif %} - - {% if data["pipeCurrentStoppedYears"] %} -
    -
    Pipe - stopped smoking for
    -
    {{ data["pipeCurrentStoppedYears"] }} years
    -
    - Change stopped years -
    -
    - {% endif %} - - - - - {% if data["pipeFormerYearsSmoked"] or data["pipeFormerFrequency"] %} -
    -
    Total number of years you have smoked a pipe
    -
    {{ data["pipeFormerYearsSmoked"] }} years
    -
    - Change pipe years -
    -
    - {% endif %} - - {% if data["pipeFormerFrequency"] %} -
    -
    Pipe - how often you smoked
    -
    {{ data["pipeFormerFrequency"] }}
    -
    - Change pipe frequency -
    -
    - {% endif %} - - {% if data["pipeFormerQuantity"] %} -
    -
    Pipe - bowls per - {% if data["pipeFormerFrequency"] == "Daily" %}day{% elif data["pipeFormerFrequency"] == "Weekly" %}week{% elif data["pipeFormerFrequency"] == "Monthly" %}month{% else %}day{% endif %} -
    -
    {{ data["pipeFormerQuantity"] }} bowls
    -
    - Change pipe quantity -
    -
    - {% endif %} - - {% if data["pipeFormerMoreQuantity"] and data["pipeFormerMoreDuration"] %} -
    -
    Pipe - period of more smoking
    -
    - {{ data["pipeFormerMoreQuantity"] }} bowls - {% if data["pipeFormerMoreFrequency"] == "Daily" %}a day{% elif data["pipeFormerMoreFrequency"] == "Weekly" %}a week{% elif data["pipeFormerMoreFrequency"] == "Monthly" %}a month{% endif %} - for {{ data["pipeFormerMoreDuration"] }} years -
    -
    - Change more period -
    -
    - {% endif %} - - {% if data["pipeFormerLessQuantity"] and data["pipeFormerLessDuration"] %} -
    -
    Pipe - period of less smoking
    -
    - {{ data["pipeFormerLessQuantity"] }} bowls - {% if data["pipeFormerLessFrequency"] == "Daily" %}a day{% elif data["pipeFormerLessFrequency"] == "Weekly" %}a week{% elif data["pipeFormerLessFrequency"] == "Monthly" %}a month{% endif %} - for {{ data["pipeFormerLessDuration"] }} years -
    -
    - Change less period -
    -
    - {% endif %} - - {% if data["pipeFormerStoppedYears"] %} -
    -
    Pipe - stopped smoking for
    -
    {{ data["pipeFormerStoppedYears"] }} years
    -
    - Change stopped years -
    -
    - {% endif %} - - - - - {% set selectedTobaccoTypes = data["tobaccoTypes"] or data["whatSmokeNow"] or data["whatDidSmoke"] %} - {% if selectedTobaccoTypes and selectedTobaccoTypes is iterable and selectedTobaccoTypes is not string %} - {% set tobaccoTypesList = selectedTobaccoTypes %} - {% elif selectedTobaccoTypes %} - {% set tobaccoTypesList = [selectedTobaccoTypes] %} - {% else %} - {% set tobaccoTypesList = [] %} - {% endif %} - {% set isCigarCurrent = data["smokedRegularly"] == "Yes-currently" %} - {% set cigarsYearsField = "cigarsCurrentYearsSmoked" if isCigarCurrent else "cigarsFormerYearsSmoked" %} - {% set cigarsState = "current" if isCigarCurrent else "former" %} - {% set cigarsHowOften = "how often you smoke" if isCigarCurrent else "how often you smoked" %} - {% set anyCigar = ("Small cigars" in tobaccoTypesList) or ("Medium cigars" in tobaccoTypesList) or ("Large cigars" in tobaccoTypesList) %} - - {% if anyCigar %} - - {% if data[cigarsYearsField] %} -
    -
    Total number of years you have smoked cigars
    -
    {{ data[cigarsYearsField] }} years
    -
    - Change cigars years smoked -
    -
    - {% endif %} - - {% for cigarSize in ["Small", "Medium", "Large"] %} - {% if (cigarSize + " cigars") in tobaccoTypesList %} - {% set sizeKey = "cigar" + cigarSize %} - {% set sizeFreqField = sizeKey + "Frequency" %} - - {% if data[sizeFreqField] %} -
    -
    {{ cigarSize }} cigars - {{ cigarsHowOften }}
    -
    {{ data[sizeFreqField] }}
    -
    - Change {{ cigarSize | lower }} cigars frequency -
    -
    - {% endif %} - - {% if data[sizeKey + "Quantity"] %} -
    -
    {{ cigarSize }} cigars per {% if data[sizeFreqField] == "Daily" %}day{% elif data[sizeFreqField] == "Weekly" %}week{% elif data[sizeFreqField] == "Monthly" %}month{% elif data[sizeFreqField] == "Yearly" %}year{% else %}day{% endif %}
    -
    {{ data[sizeKey + "Quantity"] }} {{ cigarSize | lower }} cigars
    -
    - Change {{ cigarSize | lower }} cigars quantity -
    -
    - {% endif %} - - {% if data[sizeKey + "MoreQuantity"] and data[sizeKey + "MoreDuration"] %} -
    -
    {{ cigarSize }} cigars - period of more smoking
    -
    - {{ data[sizeKey + "MoreQuantity"] }} {{ cigarSize | lower }} cigars - {% if data[sizeKey + "MoreFrequency"] == "Daily" %}a day{% elif data[sizeKey + "MoreFrequency"] == "Weekly" %}a week{% elif data[sizeKey + "MoreFrequency"] == "Monthly" %}a month{% elif data[sizeKey + "MoreFrequency"] == "Yearly" %}a year{% endif %} - for {{ data[sizeKey + "MoreDuration"] }} years -
    -
    - Change {{ cigarSize | lower }} cigars more period -
    -
    - {% endif %} - - {% if data[sizeKey + "LessQuantity"] and data[sizeKey + "LessDuration"] %} +
    + {% if data.smokedRegularly %}
    -
    {{ cigarSize }} cigars - period of less smoking
    +
    Have you ever smoked tobacco?
    - {{ data[sizeKey + "LessQuantity"] }} {{ cigarSize | lower }} cigars - {% if data[sizeKey + "LessFrequency"] == "Daily" %}a day{% elif data[sizeKey + "LessFrequency"] == "Weekly" %}a week{% elif data[sizeKey + "LessFrequency"] == "Monthly" %}a month{% elif data[sizeKey + "LessFrequency"] == "Yearly" %}a year{% endif %} - for {{ data[sizeKey + "LessDuration"] }} years + {% if data.smokedRegularly == "Yes-currently" %} + Yes, I currently smoke + {% elif data.smokedRegularly == "Yes-usedToRegularly" %} + Yes, I used to smoke regularly + {% else %} + {{ data.smokedRegularly }} + {% endif %}
    - Change {{ cigarSize | lower }} cigars less period -
    -
    - {% endif %} - + Change smoking + status + +
    + {% endif %} + + {% if data.dateOfBirth %} +
    +
    Date of birth
    +
    + {% if data.dateOfBirth["day"] and data.dateOfBirth["month"] and data.dateOfBirth["year"] %} + {{ data.dateOfBirth["day"] }}/{{ data.dateOfBirth["month"] }}/{{ data.dateOfBirth["year"] }} + {% else %} + {{ data.dateOfBirth }} + {% endif %} +
    +
    + Change date of + birth +
    +
    + {% endif %} + + {% endif %} + + +

    About you

    + +
    + {% if data.height %} +
    +
    Height
    +
    + {% if data.height["feet"] and data.height["inches"] %} + {{ data.height["feet"] }} feet {{ data.height["inches"] }} inches + {% elif data.height["centimetres"] %} + {{ data.height["centimetres"] }} cm + {% else %} + {{ data.height }} cm {% endif %} - {% endfor %} - - {% endif %} - - - - - {% if data["cigarillosCurrentYearsSmoked"] or data["cigarillosCurrentFrequency"] %} -
    -
    Total number of years you have smoked cigarillos
    -
    {{ data["cigarillosCurrentYearsSmoked"] }} years
    -
    - Change cigarillos years -
    -
    - {% endif %} - - {% if data["cigarillosCurrentFrequency"] %} -
    -
    Cigarillos - how often you smoke
    -
    {{ data["cigarillosCurrentFrequency"] }}
    -
    - Change cigarillos frequency -
    -
    - {% endif %} - - {% if data["cigarillosCurrentQuantity"] %} -
    -
    Cigarillos per - {% if data["cigarillosCurrentFrequency"] == "Daily" %}day{% elif data["cigarillosCurrentFrequency"] == "Weekly" %}week{% elif data["cigarillosCurrentFrequency"] == "Monthly" %}month{% else %}day{% endif %} -
    -
    {{ data["cigarillosCurrentQuantity"] }} cigarillos
    -
    - Change cigarillos quantity -
    -
    - {% endif %} - - {% if data["cigarillosCurrentMoreQuantity"] and data["cigarillosCurrentMoreDuration"] %} -
    -
    Cigarillos - period of more smoking
    -
    - {{ data["cigarillosCurrentMoreQuantity"] }} cigarillos - {% if data["cigarillosCurrentMoreFrequency"] == "Daily" %}a day{% elif data["cigarillosCurrentMoreFrequency"] == "Weekly" %}a week{% elif data["cigarillosCurrentMoreFrequency"] == "Monthly" %}a month{% endif %} - for {{ data["cigarillosCurrentMoreDuration"] }} years
    - Change more period + Change height
    - {% endif %} + {% endif %} - {% if data["cigarillosCurrentLessQuantity"] and data["cigarillosCurrentLessDuration"] %} + {% if data.weight %}
    -
    Cigarillos - period of less smoking
    +
    Weight
    - {{ data["cigarillosCurrentLessQuantity"] }} cigarillos - {% if data["cigarillosCurrentLessFrequency"] == "Daily" %}a day{% elif data["cigarillosCurrentLessFrequency"] == "Weekly" %}a week{% elif data["cigarillosCurrentLessFrequency"] == "Monthly" %}a month{% endif %} - for {{ data["cigarillosCurrentLessDuration"] }} years -
    -
    - Change less period -
    -
    - {% endif %} - - {% if data["cigarillosCurrentStoppedYears"] %} -
    -
    Cigarillos - stopped smoking for
    -
    {{ data["cigarillosCurrentStoppedYears"] }} years
    -
    - Change stopped years -
    -
    - {% endif %} + {% if data.weight["stone"] and data.weight["pounds"] %} + {{ data.weight["stone"] }} stone {{ data.weight["pounds"] }} pounds + {% elif data.weight["kilograms"] %} + {{ data.weight["kilograms"] }} kg + {% else %} + {{ data.weight }} kg +{% endif %} + +
    + Change weight +
    +
    +{% endif %} + +{% if data.whatIsYourSex %} +
    +
    Sex at birth
    +
    {{ data.whatIsYourSex }}
    +
    + Change sex +
    +
    +{% endif %} + +{% if data.bestDescribe %} +
    +
    Gender identity
    +
    {{ data.bestDescribe }}
    +
    + Change gender identity +
    +
    +{% endif %} - - - - {% if data["cigarillosFormerYearsSmoked"] or data["cigarillosFormerFrequency"] %} -
    -
    Total number of years you have smoked cigarillos
    -
    {{ data["cigarillosFormerYearsSmoked"] }} years
    -
    - Change cigarillos years +{% if data.ethnicBackground %} +
    +
    Ethnic background
    +
    {{ data.ethnicBackground }}
    +
    + Change ethnic + background
    - {% endif %} + {% endif %} - {% if data["cigarillosFormerFrequency"] %} + {% if data.educationCompleted %}
    -
    Cigarillos - how often you smoked
    -
    {{ data["cigarillosFormerFrequency"] }}
    +
    Education
    +
    {{ data.educationCompleted }}
    - Change cigarillos frequency -
    -
    - {% endif %} + Change education + level + +
    + {% endif %} + + + +

    Your health

    + +
    + {% if data.everDiagnosedWith %} +
    +
    Respiratory conditions
    +
    + {% if data.everDiagnosedWith is iterable and data.everDiagnosedWith is not string %} + {{ data.everDiagnosedWith | join(", ") }} + {% else %} + {{ data.everDiagnosedWith }} + {% endif %} +
    +
    + Change respiratory + conditions +
    +
    + {% endif %} - {% if data["cigarillosFormerQuantity"] %} -
    -
    Cigarillos per - {% if data["cigarillosFormerFrequency"] == "Daily" %}day{% elif data["cigarillosFormerFrequency"] == "Weekly" %}week{% elif data["cigarillosFormerFrequency"] == "Monthly" %}month{% else %}day{% endif %} -
    -
    {{ data["cigarillosFormerQuantity"] }} cigarillos
    -
    - Change cigarillos quantity -
    -
    - {% endif %} + {% if data.exposedAsbestos %} +
    +
    Have you ever worked in a job where you were exposed to asbestos?
    +
    {{ data.exposedAsbestos }}
    +
    + Change asbestos exposure at + work +
    +
    + {% endif %} + + {% if data.livedWithAsbestosWorker %} +
    +
    Have you ever lived with anyone who worked with asbestos?
    +
    {{ data.livedWithAsbestosWorker }}
    +
    + Change lived with asbestos + worker +
    +
    + {% endif %} + + {% if data.diagnosedCancer %} +
    +
    Have you ever been diagnosed with cancer?
    +
    {{ data.diagnosedCancer }}
    +
    + Change cancer diagnosis +
    +
    + {% endif %} +
    + + +

    Family history

    + +
    + {% if data.relativesHaveCancer %} +
    +
    Have any of your parents, siblings or children ever been diagnosed with lung cancer?
    +
    {{ data.relativesHaveCancer }}
    +
    + Change relatives with cancer +
    +
    + {% endif %} + + {% if data.relativesHaveCancer == "Yes" and data.relativeAge %} +
    +
    Were any of your relatives younger than 60 years old when they were diagnosed with lung cancer?
    +
    {{ data.relativeAge }}
    +
    + Change relatives age at + diagnosis +
    +
    + {% endif %} +
    + + +

    Smoking habits

    + +
    + {% if data.ageStartedSmoking %} +
    +
    Age you started smoking
    +
    Aged {{ data.ageStartedSmoking }}
    +
    + Change age started + smoking +
    +
    + {% endif %} + + {% if data.formerSmokingQuitDate %} +
    +
    Age you quit smoking
    +
    + Aged {{ data.formerSmokingQuitDate["age"] or (data.formerSmokingQuitDate["month"] ~ "/" ~ data.formerSmokingQuitDate["year"]) }} +
    +
    + Change quit date +
    +
    + {% endif %} + + + {% if data.stoppedSmokingPeriods == "Yes" and data.totalYearsStoppedSmoking %} +
    +
    Periods where you stopped smoking for 1 year or longer
    +
    {{ data.totalYearsStoppedSmoking }} years
    +
    + Change periods when stopped +
    +
    + {% endif %} + + + {% if data.whatSmokeNow or data.whatDidSmoke or data.tobaccoTypes %} +
    +
    Types of tobacco smoked
    +
    + {% set tobaccoTypes = data.tobaccoTypes or data.whatSmokeNow or data.whatDidSmoke %} + {% if tobaccoTypes is iterable and tobaccoTypes is not string %} + {{ tobaccoTypes | join(", ") }} + {% else %} + {{ tobaccoTypes }} + {% endif %} +
    +
    + Change tobacco types +
    +
    + {% endif %} + + + + + {% if data.cigarettesCurrentYearsSmoked or data.cigarettesCurrentFrequency %} +
    +
    Total number of years you have smoked cigarettes
    +
    {{ data.cigarettesCurrentYearsSmoked }} years
    +
    + Change cigarettes years +
    +
    + {% endif %} + + {% if data.cigarettesCurrentFrequency %} +
    +
    Cigarettes - how often you smoke
    +
    {{ data.cigarettesCurrentFrequency }}
    +
    + Change cigarettes frequency +
    +
    + {% endif %} + + {% if data.cigarettesCurrentQuantity %} +
    +
    Cigarettes per + {% if data.cigarettesCurrentFrequency == "Daily" %}day{% elif data.cigarettesCurrentFrequency == "Weekly" %}week{% elif data.cigarettesCurrentFrequency == "Monthly" %}month{% else %}day{% endif %} +
    +
    {{ data.cigarettesCurrentQuantity }} cigarettes
    +
    + Change cigarettes quantity +
    +
    + {% endif %} + + {% if data.cigarettesCurrentMoreQuantity and data.cigarettesCurrentMoreDuration %} +
    +
    Cigarettes - period of more smoking
    +
    + {{ data.cigarettesCurrentMoreQuantity }} cigarettes + {% if data.cigarettesCurrentMoreFrequency == "Daily" %}a day{% elif data.cigarettesCurrentMoreFrequency == "Weekly" %}a week{% elif data.cigarettesCurrentMoreFrequency == "Monthly" %}a month{% endif %} + for {{ data.cigarettesCurrentMoreDuration }} years +
    +
    + Change more period +
    +
    + {% endif %} + + {% if data.cigarettesCurrentLessQuantity and data.cigarettesCurrentLessDuration %} +
    +
    Cigarettes - period of less smoking
    +
    + {{ data.cigarettesCurrentLessQuantity }} cigarettes + {% if data.cigarettesCurrentLessFrequency == "Daily" %}a day{% elif data.cigarettesCurrentLessFrequency == "Weekly" %}a week{% elif data.cigarettesCurrentLessFrequency == "Monthly" %}a month{% endif %} + for {{ data.cigarettesCurrentLessDuration }} years +
    +
    + Change less period +
    +
    + {% endif %} + + {% if data.cigarettesCurrentStoppedYears %} +
    +
    Cigarettes - stopped smoking for
    +
    {{ data.cigarettesCurrentStoppedYears }} years
    +
    + Change stopped years +
    +
    + {% endif %} + + + + + {% if data.cigarettesFormerYearsSmoked or data.cigarettesFormerFrequency %} +
    +
    Total number of years you have smoked cigarettes
    +
    {{ data.cigarettesFormerYearsSmoked }} years
    +
    + Change cigarettes years +
    +
    + {% endif %} + + {% if data.cigarettesFormerFrequency %} +
    +
    Cigarettes - how often you smoked
    +
    {{ data.cigarettesFormerFrequency }}
    +
    + Change cigarettes frequency +
    +
    + {% endif %} + + {% if data.cigarettesFormerQuantity %} +
    +
    Cigarettes per + {% if data.cigarettesFormerFrequency == "Daily" %}day{% elif data.cigarettesFormerFrequency == "Weekly" %}week{% elif data.cigarettesFormerFrequency == "Monthly" %}month{% else %}day{% endif %} +
    +
    {{ data.cigarettesFormerQuantity }} cigarettes
    +
    + Change cigarettes quantity +
    +
    + {% endif %} + + {% if data.cigarettesFormerMoreQuantity and data.cigarettesFormerMoreDuration %} +
    +
    Cigarettes - period of more smoking
    +
    + {{ data.cigarettesFormerMoreQuantity }} cigarettes + {% if data.cigarettesFormerMoreFrequency == "Daily" %}a day{% elif data.cigarettesFormerMoreFrequency == "Weekly" %}a week{% elif data.cigarettesFormerMoreFrequency == "Monthly" %}a month{% endif %} + for {{ data.cigarettesFormerMoreDuration }} years +
    +
    + Change more period +
    +
    + {% endif %} + + {% if data.cigarettesFormerLessQuantity and data.cigarettesFormerLessDuration %} +
    +
    Cigarettes - period of less smoking
    +
    + {{ data.cigarettesFormerLessQuantity }} cigarettes + {% if data.cigarettesFormerLessFrequency == "Daily" %}a day{% elif data.cigarettesFormerLessFrequency == "Weekly" %}a week{% elif data.cigarettesFormerLessFrequency == "Monthly" %}a month{% endif %} + for {{ data.cigarettesFormerLessDuration }} years +
    +
    + Change less period +
    +
    + {% endif %} + + {% if data.cigarettesFormerStoppedYears %} +
    +
    Cigarettes - stopped smoking for
    +
    {{ data.cigarettesFormerStoppedYears }} years
    +
    + Change stopped years +
    +
    + {% endif %} + + + + + {% if data.rollingTobaccoCurrentYearsSmoked or data.rollingTobaccoCurrentFrequency %} +
    +
    Total number of years you have smoked rolling tobacco
    +
    {{ data.rollingTobaccoCurrentYearsSmoked }} years
    +
    + Change rolling tobacco years +
    +
    + {% endif %} + + {% if data.rollingTobaccoCurrentFrequency %} +
    +
    Rolling tobacco - how often you smoke
    +
    {{ data.rollingTobaccoCurrentFrequency }}
    +
    + Change rolling tobacco frequency +
    +
    + {% endif %} + + {% if data.rollingTobaccoCurrentQuantity %} +
    +
    Rolling tobacco per + {% if data.rollingTobaccoCurrentFrequency == "Daily" %}day{% elif data.rollingTobaccoCurrentFrequency == "Weekly" %}week{% elif data.rollingTobaccoCurrentFrequency == "Monthly" %}month{% else %}day{% endif %} +
    +
    {{ data.rollingTobaccoCurrentQuantity }} rolling tobacco
    +
    + Change rolling tobacco quantity +
    +
    + {% endif %} + + {% if data.rollingTobaccoCurrentMoreQuantity and data.rollingTobaccoCurrentMoreDuration %} +
    +
    Rolling tobacco - period of more smoking
    +
    + {{ data.rollingTobaccoCurrentMoreQuantity }} rolling tobacco + {% if data.rollingTobaccoCurrentMoreFrequency == "Daily" %}a day{% elif data.rollingTobaccoCurrentMoreFrequency == "Weekly" %}a week{% elif data.rollingTobaccoCurrentMoreFrequency == "Monthly" %}a month{% endif %} + for {{ data.rollingTobaccoCurrentMoreDuration }} years +
    +
    + Change more period +
    +
    + {% endif %} - {% if data["cigarillosFormerMoreQuantity"] and data["cigarillosFormerMoreDuration"] %} -
    -
    Cigarillos - period of more smoking
    -
    - {{ data["cigarillosFormerMoreQuantity"] }} cigarillos - {% if data["cigarillosFormerMoreFrequency"] == "Daily" %}a day{% elif data["cigarillosFormerMoreFrequency"] == "Weekly" %}a week{% elif data["cigarillosFormerMoreFrequency"] == "Monthly" %}a month{% endif %} - for {{ data["cigarillosFormerMoreDuration"] }} years -
    -
    - Change more period -
    -
    - {% endif %} + {% if data.rollingTobaccoCurrentLessQuantity and data.rollingTobaccoCurrentLessDuration %} +
    +
    Rolling tobacco - period of less smoking
    +
    + {{ data.rollingTobaccoCurrentLessQuantity }} rolling tobacco + {% if data.rollingTobaccoCurrentLessFrequency == "Daily" %}a day{% elif data.rollingTobaccoCurrentLessFrequency == "Weekly" %}a week{% elif data.rollingTobaccoCurrentLessFrequency == "Monthly" %}a month{% endif %} + for {{ data.rollingTobaccoCurrentLessDuration }} years +
    +
    + Change less period +
    +
    + {% endif %} - {% if data["cigarillosFormerLessQuantity"] and data["cigarillosFormerLessDuration"] %} -
    -
    Cigarillos - period of less smoking
    -
    - {{ data["cigarillosFormerLessQuantity"] }} cigarillos - {% if data["cigarillosFormerLessFrequency"] == "Daily" %}a day{% elif data["cigarillosFormerLessFrequency"] == "Weekly" %}a week{% elif data["cigarillosFormerLessFrequency"] == "Monthly" %}a month{% endif %} - for {{ data["cigarillosFormerLessDuration"] }} years -
    -
    - Change less period -
    -
    - {% endif %} + {% if data.rollingTobaccoCurrentStoppedYears %} +
    +
    Rolling tobacco - stopped smoking for
    +
    {{ data.rollingTobaccoCurrentStoppedYears }} years
    +
    + Change stopped years +
    +
    + {% endif %} - {% if data["cigarillosFormerStoppedYears"] %} -
    -
    Cigarillos - stopped smoking for
    -
    {{ data["cigarillosFormerStoppedYears"] }} years
    -
    - Change stopped years -
    -
    - {% endif %} + + + + {% if data.rollingTobaccoFormerYearsSmoked or data.rollingTobaccoFormerFrequency %} +
    +
    Total number of years you have smoked rolling tobacco
    +
    {{ data.rollingTobaccoFormerYearsSmoked }} years
    +
    + Change rolling tobacco years +
    +
    + {% endif %} - - - - {% if data["shishaCurrentYearsSmoked"] or data["shishaCurrentGroupOrAlone"] %} -
    -
    Total number of years you have smoked shisha
    -
    {{ data["shishaCurrentYearsSmoked"] }} years
    -
    - Change shisha years -
    -
    - {% endif %} + {% if data.rollingTobaccoFormerFrequency %} +
    +
    Rolling tobacco - how often you smoked
    +
    {{ data.rollingTobaccoFormerFrequency }}
    +
    + Change rolling tobacco frequency +
    +
    + {% endif %} - {% if data["shishaCurrentGroupOrAlone"] %} -
    -
    Shisha - how you smoke
    -
    {{ data["shishaCurrentGroupOrAlone"] }}
    -
    - Change shisha group or alone -
    -
    - {% endif %} + {% if data.rollingTobaccoFormerQuantity %} +
    +
    Rolling tobacco per + {% if data.rollingTobaccoFormerFrequency == "Daily" %}day{% elif data.rollingTobaccoFormerFrequency == "Weekly" %}week{% elif data.rollingTobaccoFormerFrequency == "Monthly" %}month{% else %}day{% endif %} +
    +
    {{ data.rollingTobaccoFormerQuantity }} rolling tobacco
    +
    + Change rolling tobacco quantity +
    +
    + {% endif %} - {% if data["shishaCurrentGroupQuantity"] %} -
    -
    Shisha - group sessions
    -
    - {{ data["shishaCurrentGroupQuantity"] }} sessions - {% if data["shishaCurrentGroupFrequency"] == "Daily" %}a day{% elif data["shishaCurrentGroupFrequency"] == "Weekly" %}a week{% elif data["shishaCurrentGroupFrequency"] == "Monthly" %}a month{% elif data["shishaCurrentGroupFrequency"] == "Yearly" %}a year{% endif %} + {% if data.rollingTobaccoFormerMoreQuantity and data.rollingTobaccoFormerMoreDuration %} +
    +
    Rolling tobacco - period of more smoking
    +
    + {{ data.rollingTobaccoFormerMoreQuantity }} rolling tobacco + {% if data.rollingTobaccoFormerMoreFrequency == "Daily" %}a day{% elif data.rollingTobaccoFormerMoreFrequency == "Weekly" %}a week{% elif data.rollingTobaccoFormerMoreFrequency == "Monthly" %}a month{% endif %} + for {{ data.rollingTobaccoFormerMoreDuration }} years
    - Change group sessions + Change more period
    - {% endif %} + {% endif %} - {% if data["shishaCurrentAloneQuantity"] %} + {% if data.rollingTobaccoFormerLessQuantity and data.rollingTobaccoFormerLessDuration %}
    -
    Shisha - alone sessions
    +
    Rolling tobacco - period of less smoking
    - {{ data["shishaCurrentAloneQuantity"] }} sessions - {% if data["shishaCurrentAloneFrequency"] == "Daily" %}a day{% elif data["shishaCurrentAloneFrequency"] == "Weekly" %}a week{% elif data["shishaCurrentAloneFrequency"] == "Monthly" %}a month{% elif data["shishaCurrentAloneFrequency"] == "Yearly" %}a year{% endif %} -
    -
    - Change alone sessions -
    -
    - {% endif %} - - - - - {% if data["shishaFormerYearsSmoked"] or data["shishaFormerGroupOrAlone"] %} -
    -
    Total number of years you have smoked shisha
    -
    {{ data["shishaFormerYearsSmoked"] }} years
    -
    - Change shisha years -
    -
    - {% endif %} - - {% if data["shishaFormerGroupOrAlone"] %} -
    -
    Shisha - how you smoked
    -
    {{ data["shishaFormerGroupOrAlone"] }}
    -
    - Change shisha group or alone -
    -
    + {{ data.rollingTobaccoFormerLessQuantity }} rolling tobacco + {% if data.rollingTobaccoFormerLessFrequency == "Daily" %}a day{% elif data.rollingTobaccoFormerLessFrequency == "Weekly" %}a week{% elif data.rollingTobaccoFormerLessFrequency == "Monthly" %}a month{% endif %} + for {{ data.rollingTobaccoFormerLessDuration }} years + +
    + Change less period +
    +
    +{% endif %} + +{% if data.rollingTobaccoFormerStoppedYears %} +
    +
    Rolling tobacco - stopped smoking for
    +
    {{ data.rollingTobaccoFormerStoppedYears }} years
    +
    + Change stopped years +
    +
    +{% endif %} + + + + +{% if data.pipeCurrentYearsSmoked or data.pipeCurrentFrequency %} +
    +
    Total number of years you have smoked a pipe
    +
    {{ data.pipeCurrentYearsSmoked }} years
    +
    + Change pipe years +
    +
    +{% endif %} + +{% if data.pipeCurrentFrequency %} +
    +
    Pipe - how often you smoke
    +
    {{ data.pipeCurrentFrequency }}
    +
    + Change pipe frequency +
    +
    +{% endif %} + +{% if data.pipeCurrentQuantity %} +
    +
    Pipe - bowls per + {% if data.pipeCurrentFrequency == "Daily" %}day{% elif data.pipeCurrentFrequency == "Weekly" %}week{% elif data.pipeCurrentFrequency == "Monthly" %}month{% else %}day{% endif %} +
    +
    {{ data.pipeCurrentQuantity }} bowls
    +
    + Change pipe quantity +
    +
    +{% endif %} + +{% if data.pipeCurrentMoreQuantity and data.pipeCurrentMoreDuration %} +
    +
    Pipe - period of more smoking
    +
    + {{ data.pipeCurrentMoreQuantity }} bowls + {% if data.pipeCurrentMoreFrequency == "Daily" %}a day{% elif data.pipeCurrentMoreFrequency == "Weekly" %}a week{% elif data.pipeCurrentMoreFrequency == "Monthly" %}a month{% endif %} + for {{ data.pipeCurrentMoreDuration }} years +
    +
    + Change more period +
    +
    +{% endif %} + +{% if data.pipeCurrentLessQuantity and data.pipeCurrentLessDuration %} +
    +
    Pipe - period of less smoking
    +
    + {{ data.pipeCurrentLessQuantity }} bowls + {% if data.pipeCurrentLessFrequency == "Daily" %}a day{% elif data.pipeCurrentLessFrequency == "Weekly" %}a week{% elif data.pipeCurrentLessFrequency == "Monthly" %}a month{% endif %} + for {{ data.pipeCurrentLessDuration }} years +
    +
    + Change less period +
    +
    +{% endif %} + +{% if data.pipeCurrentStoppedYears %} +
    +
    Pipe - stopped smoking for
    +
    {{ data.pipeCurrentStoppedYears }} years
    +
    + Change stopped years +
    +
    +{% endif %} + + + + +{% if data.pipeFormerYearsSmoked or data.pipeFormerFrequency %} +
    +
    Total number of years you have smoked a pipe
    +
    {{ data.pipeFormerYearsSmoked }} years
    +
    + Change pipe years +
    +
    +{% endif %} + +{% if data.pipeFormerFrequency %} +
    +
    Pipe - how often you smoked
    +
    {{ data.pipeFormerFrequency }}
    +
    + Change pipe frequency +
    +
    +{% endif %} + +{% if data.pipeFormerQuantity %} +
    +
    Pipe - bowls per + {% if data.pipeFormerFrequency == "Daily" %}day{% elif data.pipeFormerFrequency == "Weekly" %}week{% elif data.pipeFormerFrequency == "Monthly" %}month{% else %}day{% endif %} +
    +
    {{ data.pipeFormerQuantity }} bowls
    +
    + Change pipe quantity +
    +
    +{% endif %} + +{% if data.pipeFormerMoreQuantity and data.pipeFormerMoreDuration %} +
    +
    Pipe - period of more smoking
    +
    + {{ data.pipeFormerMoreQuantity }} bowls + {% if data.pipeFormerMoreFrequency == "Daily" %}a day{% elif data.pipeFormerMoreFrequency == "Weekly" %}a week{% elif data.pipeFormerMoreFrequency == "Monthly" %}a month{% endif %} + for {{ data.pipeFormerMoreDuration }} years +
    +
    + Change more period +
    +
    +{% endif %} + +{% if data.pipeFormerLessQuantity and data.pipeFormerLessDuration %} +
    +
    Pipe - period of less smoking
    +
    + {{ data.pipeFormerLessQuantity }} bowls + {% if data.pipeFormerLessFrequency == "Daily" %}a day{% elif data.pipeFormerLessFrequency == "Weekly" %}a week{% elif data.pipeFormerLessFrequency == "Monthly" %}a month{% endif %} + for {{ data.pipeFormerLessDuration }} years +
    +
    + Change less period +
    +
    +{% endif %} + +{% if data.pipeFormerStoppedYears %} +
    +
    Pipe - stopped smoking for
    +
    {{ data.pipeFormerStoppedYears }} years
    +
    + Change stopped years +
    +
    +{% endif %} + + + + +{% set selectedTobaccoTypes = data.tobaccoTypes or data.whatSmokeNow or data.whatDidSmoke %} +{% if selectedTobaccoTypes and selectedTobaccoTypes is iterable and selectedTobaccoTypes is not string %} + {% set tobaccoTypesList = selectedTobaccoTypes %} +{% elif selectedTobaccoTypes %} + {% set tobaccoTypesList = [selectedTobaccoTypes] %} +{% else %} + {% set tobaccoTypesList = [] %} +{% endif %} +{% set isCigarCurrent = data.smokedRegularly == "Yes-currently" %} +{% set cigarsYearsField = "cigarsCurrentYearsSmoked" if isCigarCurrent else "cigarsFormerYearsSmoked" %} +{% set cigarsState = "current" if isCigarCurrent else "former" %} +{% set cigarsHowOften = "how often you smoke" if isCigarCurrent else "how often you smoked" %} +{% set anyCigar = ("Small cigars" in tobaccoTypesList) or ("Medium cigars" in tobaccoTypesList) or ("Large cigars" in tobaccoTypesList) %} + +{% if anyCigar %} + + {% if data[cigarsYearsField] %} +
    +
    Total number of years you have smoked cigars
    +
    {{ data[cigarsYearsField] }} years
    +
    + Change cigars years smoked +
    +
    + {% endif %} + + {% for cigarSize in ["Small", "Medium", "Large"] %} + {% if (cigarSize + " cigars") in tobaccoTypesList %} + {% set sizeKey = "cigar" + cigarSize %} + {% set sizeFreqField = sizeKey + "Frequency" %} + + {% if data[sizeFreqField] %} +
    +
    {{ cigarSize }} cigars - {{ cigarsHowOften }}
    +
    {{ data[sizeFreqField] }}
    +
    + Change {{ cigarSize | lower }} cigars frequency +
    +
    {% endif %} - {% if data["shishaFormerGroupQuantity"] %} -
    -
    Shisha - group sessions
    -
    - {{ data["shishaFormerGroupQuantity"] }} sessions - {% if data["shishaFormerGroupFrequency"] == "Daily" %}a day{% elif data["shishaFormerGroupFrequency"] == "Weekly" %}a week{% elif data["shishaFormerGroupFrequency"] == "Monthly" %}a month{% elif data["shishaFormerGroupFrequency"] == "Yearly" %}a year{% endif %} -
    -
    - Change group sessions -
    -
    + {% if data[sizeKey + "Quantity"] %} +
    +
    {{ cigarSize }} cigars per {% if data[sizeFreqField] == "Daily" %}day{% elif data[sizeFreqField] == "Weekly" %}week{% elif data[sizeFreqField] == "Monthly" %}month{% elif data[sizeFreqField] == "Yearly" %}year{% else %}day{% endif %}
    +
    {{ data[sizeKey + "Quantity"] }} {{ cigarSize | lower }} cigars
    +
    + Change {{ cigarSize | lower }} cigars quantity +
    +
    {% endif %} - {% if data["shishaFormerAloneQuantity"] %} -
    -
    Shisha - alone sessions
    -
    - {{ data["shishaFormerAloneQuantity"] }} sessions - {% if data["shishaFormerAloneFrequency"] == "Daily" %}a day{% elif data["shishaFormerAloneFrequency"] == "Weekly" %}a week{% elif data["shishaFormerAloneFrequency"] == "Monthly" %}a month{% elif data["shishaFormerAloneFrequency"] == "Yearly" %}a year{% endif %} -
    -
    - Change alone sessions -
    -
    - {% endif %} + {% if data[sizeKey + "MoreQuantity"] and data[sizeKey + "MoreDuration"] %} +
    +
    {{ cigarSize }} cigars - period of more smoking
    +
    + {{ data[sizeKey + "MoreQuantity"] }} {{ cigarSize | lower }} cigars + {% if data[sizeKey + "MoreFrequency"] == "Daily" %}a day{% elif data[sizeKey + "MoreFrequency"] == "Weekly" %}a week{% elif data[sizeKey + "MoreFrequency"] == "Monthly" %}a month{% elif data[sizeKey + "MoreFrequency"] == "Yearly" %}a year{% endif %} + for {{ data[sizeKey + "MoreDuration"] }} years +
    +
    + Change {{ cigarSize | lower }} cigars more period +
    +
    + {% endif %} + + {% if data[sizeKey + "LessQuantity"] and data[sizeKey + "LessDuration"] %} +
    +
    {{ cigarSize }} cigars - period of less smoking
    +
    + {{ data[sizeKey + "LessQuantity"] }} {{ cigarSize | lower }} cigars + {% if data[sizeKey + "LessFrequency"] == "Daily" %}a day{% elif data[sizeKey + "LessFrequency"] == "Weekly" %}a week{% elif data[sizeKey + "LessFrequency"] == "Monthly" %}a month{% elif data[sizeKey + "LessFrequency"] == "Yearly" %}a year{% endif %} + for {{ data[sizeKey + "LessDuration"] }} years +
    +
    + Change {{ cigarSize | lower }} cigars less period +
    +
    +{% endif %} + +{% endif %} +{% endfor %} + +{% endif %} + + + + +{% if data.cigarillosCurrentYearsSmoked or data.cigarillosCurrentFrequency %} +
    +
    Total number of years you have smoked cigarillos
    +
    {{ data.cigarillosCurrentYearsSmoked }} years
    +
    + Change cigarillos years +
    +
    +{% endif %} + +{% if data.cigarillosCurrentFrequency %} +
    +
    Cigarillos - how often you smoke
    +
    {{ data.cigarillosCurrentFrequency }}
    +
    + Change cigarillos frequency +
    +
    +{% endif %} + +{% if data.cigarillosCurrentQuantity %} +
    +
    Cigarillos per + {% if data.cigarillosCurrentFrequency == "Daily" %}day{% elif data.cigarillosCurrentFrequency == "Weekly" %}week{% elif data.cigarillosCurrentFrequency == "Monthly" %}month{% else %}day{% endif %} +
    +
    {{ data.cigarillosCurrentQuantity }} cigarillos
    +
    + Change cigarillos quantity +
    +
    +{% endif %} + +{% if data.cigarillosCurrentMoreQuantity and data.cigarillosCurrentMoreDuration %} +
    +
    Cigarillos - period of more smoking
    +
    + {{ data.cigarillosCurrentMoreQuantity }} cigarillos + {% if data.cigarillosCurrentMoreFrequency == "Daily" %}a day{% elif data.cigarillosCurrentMoreFrequency == "Weekly" %}a week{% elif data.cigarillosCurrentMoreFrequency == "Monthly" %}a month{% endif %} + for {{ data.cigarillosCurrentMoreDuration }} years +
    +
    + Change more period +
    +
    +{% endif %} + +{% if data.cigarillosCurrentLessQuantity and data.cigarillosCurrentLessDuration %} +
    +
    Cigarillos - period of less smoking
    +
    + {{ data.cigarillosCurrentLessQuantity }} cigarillos + {% if data.cigarillosCurrentLessFrequency == "Daily" %}a day{% elif data.cigarillosCurrentLessFrequency == "Weekly" %}a week{% elif data.cigarillosCurrentLessFrequency == "Monthly" %}a month{% endif %} + for {{ data.cigarillosCurrentLessDuration }} years +
    +
    + Change less period +
    +
    +{% endif %} + +{% if data.cigarillosCurrentStoppedYears %} +
    +
    Cigarillos - stopped smoking for
    +
    {{ data.cigarillosCurrentStoppedYears }} years
    +
    + Change stopped years +
    +
    +{% endif %} + + + + +{% if data.cigarillosFormerYearsSmoked or data.cigarillosFormerFrequency %} +
    +
    Total number of years you have smoked cigarillos
    +
    {{ data.cigarillosFormerYearsSmoked }} years
    +
    + Change cigarillos years +
    +
    +{% endif %} + +{% if data.cigarillosFormerFrequency %} +
    +
    Cigarillos - how often you smoked
    +
    {{ data.cigarillosFormerFrequency }}
    +
    + Change cigarillos frequency +
    +
    +{% endif %} + +{% if data.cigarillosFormerQuantity %} +
    +
    Cigarillos per + {% if data.cigarillosFormerFrequency == "Daily" %}day{% elif data.cigarillosFormerFrequency == "Weekly" %}week{% elif data.cigarillosFormerFrequency == "Monthly" %}month{% else %}day{% endif %} +
    +
    {{ data.cigarillosFormerQuantity }} cigarillos
    +
    + Change cigarillos quantity +
    +
    +{% endif %} + +{% if data.cigarillosFormerMoreQuantity and data.cigarillosFormerMoreDuration %} +
    +
    Cigarillos - period of more smoking
    +
    + {{ data.cigarillosFormerMoreQuantity }} cigarillos + {% if data.cigarillosFormerMoreFrequency == "Daily" %}a day{% elif data.cigarillosFormerMoreFrequency == "Weekly" %}a week{% elif data.cigarillosFormerMoreFrequency == "Monthly" %}a month{% endif %} + for {{ data.cigarillosFormerMoreDuration }} years +
    +
    + Change more period +
    +
    +{% endif %} + +{% if data.cigarillosFormerLessQuantity and data.cigarillosFormerLessDuration %} +
    +
    Cigarillos - period of less smoking
    +
    + {{ data.cigarillosFormerLessQuantity }} cigarillos + {% if data.cigarillosFormerLessFrequency == "Daily" %}a day{% elif data.cigarillosFormerLessFrequency == "Weekly" %}a week{% elif data.cigarillosFormerLessFrequency == "Monthly" %}a month{% endif %} + for {{ data.cigarillosFormerLessDuration }} years +
    +
    + Change less period +
    +
    +{% endif %} + +{% if data.cigarillosFormerStoppedYears %} +
    +
    Cigarillos - stopped smoking for
    +
    {{ data.cigarillosFormerStoppedYears }} years
    +
    + Change stopped years +
    +
    +{% endif %} + + + + +{% if data.shishaCurrentYearsSmoked or data.shishaCurrentGroupOrAlone %} +
    +
    Total number of years you have smoked shisha
    +
    {{ data.shishaCurrentYearsSmoked }} years
    +
    + Change shisha years +
    +
    +{% endif %} + +{% if data.shishaCurrentGroupOrAlone %} +
    +
    Shisha - how you smoke
    +
    {{ data.shishaCurrentGroupOrAlone }}
    +
    + Change shisha group or alone +
    +
    +{% endif %} + +{% if data.shishaCurrentGroupQuantity %} +
    +
    Shisha - group sessions
    +
    + {{ data.shishaCurrentGroupQuantity }} sessions + {% if data.shishaCurrentGroupFrequency == "Daily" %}a day{% elif data.shishaCurrentGroupFrequency == "Weekly" %}a week{% elif data.shishaCurrentGroupFrequency == "Monthly" %}a month{% elif data.shishaCurrentGroupFrequency == "Yearly" %}a year{% endif %} +
    +
    + Change group sessions +
    +
    +{% endif %} + +{% if data.shishaCurrentAloneQuantity %} +
    +
    Shisha - alone sessions
    +
    + {{ data.shishaCurrentAloneQuantity }} sessions + {% if data.shishaCurrentAloneFrequency == "Daily" %}a day{% elif data.shishaCurrentAloneFrequency == "Weekly" %}a week{% elif data.shishaCurrentAloneFrequency == "Monthly" %}a month{% elif data.shishaCurrentAloneFrequency == "Yearly" %}a year{% endif %} +
    +
    + Change alone sessions +
    +
    +{% endif %} + + + + +{% if data.shishaFormerYearsSmoked or data.shishaFormerGroupOrAlone %} +
    +
    Total number of years you have smoked shisha
    +
    {{ data.shishaFormerYearsSmoked }} years
    +
    + Change shisha years +
    +
    +{% endif %} + +{% if data.shishaFormerGroupOrAlone %} +
    +
    Shisha - how you smoked
    +
    {{ data.shishaFormerGroupOrAlone }}
    +
    + Change shisha group or alone +
    +
    +{% endif %} + +{% if data.shishaFormerGroupQuantity %} +
    +
    Shisha - group sessions
    +
    + {{ data.shishaFormerGroupQuantity }} sessions + {% if data.shishaFormerGroupFrequency == "Daily" %}a day{% elif data.shishaFormerGroupFrequency == "Weekly" %}a week{% elif data.shishaFormerGroupFrequency == "Monthly" %}a month{% elif data.shishaFormerGroupFrequency == "Yearly" %}a year{% endif %} +
    +
    + Change group sessions +
    +
    +{% endif %} + +{% if data.shishaFormerAloneQuantity %} +
    +
    Shisha - alone sessions
    +
    + {{ data.shishaFormerAloneQuantity }} sessions + {% if data.shishaFormerAloneFrequency == "Daily" %}a day{% elif data.shishaFormerAloneFrequency == "Weekly" %}a week{% elif data.shishaFormerAloneFrequency == "Monthly" %}a month{% elif data.shishaFormerAloneFrequency == "Yearly" %}a year{% endif %} +
    +
    + Change alone sessions +
    +
    +{% endif %} - + -
    - {{ button({ text: "Submit" }) }} -
    +
    + {{ button({ text: "Submit" }) }} +
    - + {% endblock %} diff --git a/app/views/prototype_v3/completed-by-phone-exit.html b/app/views/prototype_v3/completed-by-phone-exit.html index 639ff6f..e0f9734 100644 --- a/app/views/prototype_v3/completed-by-phone-exit.html +++ b/app/views/prototype_v3/completed-by-phone-exit.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} You do not need to test the online service - NHS {% endblock %} @@ -9,32 +9,34 @@ }) }} {% endblock %} {% block content %} -
    -
    -

    You do not need to test the online service

    -

    Because you have completed the questionnaire by phone you do not need to test the online service. This is because the online service asks the same questions.

    +
    +
    +

    You do not need to test the online service

    +

    Because you have completed the questionnaire by phone you do not need to test the online service. This is because the online service asks the same questions.

    -

    Find out more about NHS lung cancer screening in North West and South West London.

    +

    Find out more about NHS lung cancer screening in North West and South West London.

    -{{ card({ - type: "non-urgent", - heading: "Speak to a GP if:", - descriptionHtml: " -

    You have any of the following symptoms:

    -
      -
    • a cough that does not go away after 3 weeks
    • -
    • a long-standing cough that gets worse
    • -
    • chest infections that keep coming back
    • -
    • coughing up blood
    • -
    • an ache or pain when breathing or coughing
    • -
    • persistent breathlessness
    • -
    • persistent tiredness or lack of energy
    • -
    • loss of appetite or unexplained weight loss
    • -
    -

    They could be symptoms of lung cancer. Your GP will ask about your general health and your symptoms.

    -

    You may be asked to have a blood test to rule out some of the possible causes of your symptoms, such as a chest infection.

    - " -}) }} -
    -
    -{% endblock %} \ No newline at end of file + {% set cardDescriptionHtml %} +

    You have any of the following symptoms:

    +
      +
    • a cough that does not go away after 3 weeks
    • +
    • a long-standing cough that gets worse
    • +
    • chest infections that keep coming back
    • +
    • coughing up blood
    • +
    • an ache or pain when breathing or coughing
    • +
    • persistent breathlessness
    • +
    • persistent tiredness or lack of energy
    • +
    • loss of appetite or unexplained weight loss
    • +
    +

    They could be symptoms of lung cancer. Your GP will ask about your general health and your symptoms.

    +

    You may be asked to have a blood test to rule out some of the possible causes of your symptoms, such as a chest infection.

    + {% endset %} + + {{ card({ + type: "non-urgent", + heading: "Speak to a GP if:", + descriptionHtml: cardDescriptionHtml + }) }} +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/contact-us.html b/app/views/prototype_v3/contact-us.html index 10fef3f..29a249d 100644 --- a/app/views/prototype_v3/contact-us.html +++ b/app/views/prototype_v3/contact-us.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Contact us - NHS @@ -8,23 +8,23 @@ {% endblock %} {% block content %} -
    -
    +
    +
    -

    Contact us

    +

    Contact us

    -

    To complete your lung cancer screening by phone

    +

    To complete your lung cancer screening by phone

    -

    Call us on: 020 3835 1600

    +

    Call us on: 020 3835 1600

    -

    Phone lines are open:
    - Monday to Friday 8am to 8pm
    - Saturdays 8am to 1pm

    +

    Phone lines are open:
    + Monday to Friday 8am to 8pm
    + Saturdays 8am to 1pm

    -

    If you have questions about the online service

    +

    If you have questions about the online service

    -

    Contact us by email: england.digitallungcancerscreening@nhs.net

    +

    Contact us by email: england.digitallungcancerscreening@nhs.net

    -
    -
    -{% endblock %} +
    +
    + {% endblock %} diff --git a/app/views/prototype_v3/cookies.html b/app/views/prototype_v3/cookies.html index 3094923..25275be 100644 --- a/app/views/prototype_v3/cookies.html +++ b/app/views/prototype_v3/cookies.html @@ -1,93 +1,97 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} - NHS check if you need a lung scan cookies policy - NHS + NHS {{ serviceName | lower }} cookies policy - NHS {% endblock %} {% block beforeContent %} {% endblock %} {% block content %} -
    -
    +
    +
    -

    NHS check if you need a lung scan cookies policy

    +

    NHS {{ serviceName | lower }} cookies policy

    -

    Version 1.0, 11 March 2026

    +

    Version 1.0, 11 March 2026

    - {{ insetText({ - html: "

    First release of the service for pilot GP surgeries.

    " - }) }} + {% set insetTextHtml %} +

    First release of the service for pilot GP surgeries.

    + {% endset %} -

    This cookies policy relates to the service provided by NHS England.

    + {{ insetText({ + html: insetTextHtml + }) }} -

    NHS England ("we" or "us") uses cookies to deliver the NHS check if you need a lung scan.

    +

    This cookies policy relates to the service provided by NHS England.

    -

    The information set out in this policy is provided in addition to the NHS check if you need a lung scan privacy policy and should be read alongside it.

    +

    NHS England ("we" or "us") uses cookies to deliver the NHS {{ serviceName | lower }}.

    -

    We put small files called cookies on your device (for example, your phone).

    +

    The information set out in this policy is provided in addition to the NHS {{ serviceName | lower }} privacy policy and should be read alongside it.

    -

    Cookies are widely used to make websites and apps work, or work more efficiently, as well as to provide services and functionalities for users.

    +

    We put small files called cookies on your device (for example, your phone).

    -

    We only put cookies on your device that are required for the NHS check if you need a lung scan to work ("strictly necessary cookies").

    +

    Cookies are widely used to make websites and apps work, or work more efficiently, as well as to provide services and functionalities for users.

    -

    We ask you to accept our cookies policy when you accept the NHS check if you need a lung scan terms of use and privacy policy. In doing so, you agree to let us put the strictly necessary cookies on your device.

    +

    We only put cookies on your device that are required for the NHS {{ serviceName | lower }} to work ("strictly necessary cookies").

    -

    The strictly necessary cookies we need to put on your device for the NHS check if you need a lung scan to work are listed here.

    +

    We ask you to accept our cookies policy when you accept the NHS {{ serviceName | lower }} terms of use and privacy policy. In doing so, you agree to let us put the strictly necessary cookies on your device.

    -

    Essential cookies

    +

    The strictly necessary cookies we need to put on your device for the NHS {{ serviceName | lower }} to work are listed here.

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NamePurposeExpires
    sessionidThis cookie is used by Django to identify your session on the site. It allows the website to remember information as you navigate between pages. No personal data is stored in the cookie itself, it only contains a session identifier.The end of the session. When you close the browser window, sign out or your session expires.
    ASLBSA and ASLBSACORSThese cookies are created by Azure and help identify different users even if they share the same IP address, allowing for a more even distribution of traffic among origins.The end of the session. When you close the browser window, sign out or your session expires.
    csrftokenThis cookie is created by Django to protect the site from Cross-Site Request Forgery (CSRF) attacks. It ensures that form submissions and other actions come from you and not from a malicious third party.Typically one year, unless your browser clears cookies.
    +

    Essential cookies

    -

    Cookies set by Qualtrics

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    NamePurposeExpires
    sessionidThis cookie is used by Django to identify your session on the site. It allows the website to remember information as you navigate between pages. No personal data is stored in the cookie itself, it only contains a session identifier.The end of the session. When you close the browser window, sign out or your session expires.
    ASLBSA and ASLBSACORSThese cookies are created by Azure and help identify different users even if they share the same IP address, allowing for a more even distribution of traffic among origins.The end of the session. When you close the browser window, sign out or your session expires.
    csrftokenThis cookie is created by Django to protect the site from Cross-Site Request Forgery (CSRF) attacks. It ensures that form submissions and other actions come from you and not from a malicious third party.Typically one year, unless your browser clears cookies.
    -

    The NHS check if you need a lung scan uses Qualtrics cookies for the purpose of capturing responses to feedback surveys.

    +

    Cookies set by Qualtrics

    -

    Details on how Qualtrics uses cookies can be found in the Qualtrics cookies policy, which can be accessed from within the feedback survey.

    +

    The NHS {{ serviceName | lower }} uses Qualtrics cookies for the purpose of capturing responses to feedback surveys.

    -

    Your cookie choices

    +

    Details on how Qualtrics uses cookies can be found in the Qualtrics cookies policy, which can be accessed from within the feedback survey.

    -

    The majority of devices and browsers will allow you to alter the settings used for cookies and disable and enable them as you require.

    +

    Your cookie choices

    -

    You can select your cookie preferences so that you do not get any cookies (except strictly necessary cookies) if you prefer not to receive them.

    +

    The majority of devices and browsers will allow you to alter the settings used for cookies and disable and enable them as you require.

    -

    You can also delete the cookies already on your device, and you can set your browser or device to prevent them being placed.

    +

    You can select your cookie preferences so that you do not get any cookies (except strictly necessary cookies) if you prefer not to receive them.

    -

    Please be aware that if you set your preferences to not allow cookies, it could limit the functionality of the NHS check if you need a lung scan as it needs the strictly necessary cookies to function.

    +

    You can also delete the cookies already on your device, and you can set your browser or device to prevent them being placed.

    -

    Changes to this cookies policy

    +

    Please be aware that if you set your preferences to not allow cookies, it could limit the functionality of the NHS {{ serviceName | lower }} as it needs the strictly necessary cookies to function.

    -

    The NHS check if you need a lung scan terms of use, privacy policy and cookies policy may change. If you use the NHS check if you need a lung scan service again in the future you will be subject to the policies which exist at that time.

    +

    Changes to this cookies policy

    -

    Version history

    +

    The NHS {{ serviceName | lower }} terms of use, privacy policy and cookies policy may change. If you use the NHS {{ serviceName | lower }} service again in the future you will be subject to the policies which exist at that time.

    -

    Version 1, 11 March 2026 - first release of the service for pilot GP surgeries.

    +

    Version history

    +

    Version 1, 11 March 2026 - first release of the service for pilot GP surgeries.

    + +
    -
    {% endblock %} diff --git a/app/views/prototype_v3/diagnosed-cancer.html b/app/views/prototype_v3/diagnosed-cancer.html index c804785..3a67aba 100644 --- a/app/views/prototype_v3/diagnosed-cancer.html +++ b/app/views/prototype_v3/diagnosed-cancer.html @@ -1,5 +1,4 @@ -{% extends 'layout.html' %} -{% from 'radios/macro.njk' import radios %} +{% extends "layout.html" %} {% block pageTitle %} If you have ever been diagnosed with cancer - NHS @@ -13,36 +12,37 @@ {% endblock %} {% block content %} -
    -
    -
    -

    If you have ever been diagnosed with cancer

    -

    If you have ever been diagnosed with any type of cancer it may impact your chances of developing lung cancer.

    - - {{ radios({ - idPrefix: "diagnosedCancer", - name: "diagnosedCancer", - fieldset: { - legend: { - text: "Have you ever been diagnosed with cancer?", - classes: "nhsuk-fieldset__legend--m", - isPageHeading: false - } - }, - items: [ - { - value: "Yes", - text: "Yes" +
    +
    + +

    If you have ever been diagnosed with cancer

    +

    If you have ever been diagnosed with any type of cancer it may impact your chances of developing lung cancer.

    + + {{ radios({ + idPrefix: "diagnosedCancer", + name: "diagnosedCancer", + fieldset: { + legend: { + text: "Have you ever been diagnosed with cancer?", + classes: "nhsuk-fieldset__legend--m", + isPageHeading: false + } }, - { - value: "No", - text: "No" - } - ] - }) }} + value: data.diagnosedCancer, + items: [ + { + value: "Yes", + text: "Yes" + }, + { + value: "No", + text: "No" + } + ] + }) }} - {{ button({ text: "Continue" }) }} - + {{ button({ text: "Continue" }) }} + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/drop-out-age.html b/app/views/prototype_v3/drop-out-age.html index 667424b..104bdce 100644 --- a/app/views/prototype_v3/drop-out-age.html +++ b/app/views/prototype_v3/drop-out-age.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} You are not eligible for an NHS lung scan - NHS @@ -15,32 +15,34 @@
    -

    You are not eligible for an NHS lung scan

    +

    You are not eligible for an NHS lung scan

    -

    The NHS lung scan is for people between the ages of 55 and 74.

    +

    The NHS lung scan is for people between the ages of 55 and 74.

    -

    According to your date of birth you are not in this age range.

    +

    According to your date of birth you are not in this age range.

    + + {% set cardDescriptionHtml %} +

    You have any of the following symptoms:

    +
      +
    • a cough that does not go away after 3 weeks
    • +
    • a long-standing cough that gets worse
    • +
    • chest infections that keep coming back
    • +
    • coughing up blood
    • +
    • an ache or pain when breathing or coughing
    • +
    • persistent breathlessness
    • +
    • persistent tiredness or lack of energy
    • +
    • loss of appetite or unexplained weight loss
    • +
    +

    They could be symptoms of lung cancer. Your GP will ask about your general health and your symptoms.

    +

    You may be asked to have a blood test to rule out some of the possible causes of your symptoms, such as a chest infection.

    + {% endset %} {{ card({ type: "non-urgent", heading: "Speak to a GP if:", - descriptionHtml: " -

    You have any of the following symptoms:

    -
      -
    • a cough that does not go away after 3 weeks
    • -
    • a long-standing cough that gets worse
    • -
    • chest infections that keep coming back
    • -
    • coughing up blood
    • -
    • an ache or pain when breathing or coughing
    • -
    • persistent breathlessness
    • -
    • persistent tiredness or lack of energy
    • -
    • loss of appetite or unexplained weight loss
    • -
    -

    They could be symptoms of lung cancer. Your GP will ask about your general health and your symptoms.

    -

    You may be asked to have a blood test to rule out some of the possible causes of your symptoms, such as a chest infection.

    - " + descriptionHtml: cardDescriptionHtml }) }}
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/drop-out-bmi.html b/app/views/prototype_v3/drop-out-bmi.html index 588b700..f5cbffe 100644 --- a/app/views/prototype_v3/drop-out-bmi.html +++ b/app/views/prototype_v3/drop-out-bmi.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Call us to book an appointment - NHS @@ -19,34 +19,36 @@ titleText: "Call us to book an appointment" }) }} -

    Call us on 020 3835 1600 to book an appointment. If we do not hear from you in 2 weeks we will call you.

    +

    Call us on 020 3835 1600 to book an appointment. If we do not hear from you in 2 weeks we will call you.

    -

    At your face to face appointment a health professional will measure your height and weight. They will also ask you questions to check if you need a lung scan.

    +

    At your face to face appointment a health professional will measure your height and weight. They will also ask you questions to {{ serviceName | lower }}.

    -

    Phone lines are open:
    - Monday to Friday 8am to 8pm
    - Saturdays 8am to 1pm

    +

    Phone lines are open:
    + Monday to Friday 8am to 8pm
    + Saturdays 8am to 1pm

    - {{ card({ - type: "non-urgent", - heading: "Speak to a GP if:", - descriptionHtml: " -

    You have any of the following symptoms:

    -
      + {% set cardDescriptionHtml %} +

      You have any of the following symptoms:

      + -

      They could be symptoms of lung cancer. Your GP will ask about your general health and your symptoms.

      -

      You may be asked to have a blood test to rule out some of the possible causes of your symptoms, such as a chest infection.

      - " - }) }} +

      They could be symptoms of lung cancer. Your GP will ask about your general health and your symptoms.

      +

      You may be asked to have a blood test to rule out some of the possible causes of your symptoms, such as a chest infection.

      + {% endset %} + + {{ card({ + type: "non-urgent", + heading: "Speak to a GP if:", + descriptionHtml: cardDescriptionHtml + }) }} +
    - -{% endblock %} \ No newline at end of file + {% endblock %} diff --git a/app/views/prototype_v3/drop-out-never-smoked.html b/app/views/prototype_v3/drop-out-never-smoked.html index ed39e39..ba69f07 100644 --- a/app/views/prototype_v3/drop-out-never-smoked.html +++ b/app/views/prototype_v3/drop-out-never-smoked.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} You are not eligible for lung cancer screening - NHS {% endblock %} @@ -9,29 +9,32 @@ }) }} {% endblock %} {% block content %} -
    -
    -

    You are not eligible for lung cancer screening

    -

    You told us you have never smoked or have smoked fewer than 100 cigarettes in your lifetime. This means you are not eligible for NHS lung cancer screening.

    +
    +
    +

    You are not eligible for lung cancer screening

    +

    You told us you have never smoked or have smoked fewer than 100 cigarettes in your lifetime. This means you are not eligible for NHS lung cancer screening.

    + + {% set cardDescriptionHtml %} +

    You have any of the following symptoms:

    +
      +
    • a cough that does not go away after 3 weeks
    • +
    • a long-standing cough that gets worse
    • +
    • chest infections that keep coming back
    • +
    • coughing up blood
    • +
    • an ache or pain when breathing or coughing
    • +
    • persistent breathlessness
    • +
    • persistent tiredness or lack of energy
    • +
    • loss of appetite or unexplained weight loss
    • +
    +

    They could be symptoms of lung cancer. Your GP will ask about your general health and your symptoms.

    +

    You may be asked to have a blood test to rule out some of the possible causes of your symptoms, such as a chest infection.

    + {% endset %} + {{ card({ type: "non-urgent", heading: "Speak to a GP if:", - descriptionHtml: " -

    You have any of the following symptoms:

    -
      -
    • a cough that does not go away after 3 weeks
    • -
    • a long-standing cough that gets worse
    • -
    • chest infections that keep coming back
    • -
    • coughing up blood
    • -
    • an ache or pain when breathing or coughing
    • -
    • persistent breathlessness
    • -
    • persistent tiredness or lack of energy
    • -
    • loss of appetite or unexplained weight loss
    • -
    -

    They could be symptoms of lung cancer. Your GP will ask about your general health and your symptoms.

    -

    You may be asked to have a blood test to rule out some of the possible causes of your symptoms, such as a chest infection.

    - " + descriptionHtml: cardDescriptionHtml }) }} -
    -
    -{% endblock %} \ No newline at end of file +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/eligibility-have-you-ever-smoked.html b/app/views/prototype_v3/eligibility-have-you-ever-smoked.html index dd541cd..2b83365 100644 --- a/app/views/prototype_v3/eligibility-have-you-ever-smoked.html +++ b/app/views/prototype_v3/eligibility-have-you-ever-smoked.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Have you ever smoked tobacco - NHS @@ -17,9 +17,9 @@
    -

    Tobacco smoking

    +

    Tobacco smoking

    -

    We will ask you questions about your smoking habits. This includes different types of tobacco smoking such as:

    +

    We will ask you questions about your smoking habits. This includes different types of tobacco smoking such as:

    -

    It does not currently include vaping or e-cigarettes.

    +

    It does not currently include vaping or e-cigarettes.

    {{ radios({ idPrefix: "smokedRegularly", @@ -74,4 +74,4 @@

    Tobacco smoking

    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/eligibility-what-is-your-date-of-birth.html b/app/views/prototype_v3/eligibility-what-is-your-date-of-birth.html index 960a5c6..2cd813f 100644 --- a/app/views/prototype_v3/eligibility-what-is-your-date-of-birth.html +++ b/app/views/prototype_v3/eligibility-what-is-your-date-of-birth.html @@ -1,52 +1,52 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} What is your date of birth? - NHS {% endblock %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} -
    -
    - -{{ dateInput({ - id: "what-is-your-date-of-birth", - namePrefix: "dateOfBirth", - fieldset: { - legend: { - text: "What is your date of birth?", - classes: "nhsuk-fieldset__legend--l", - isPageHeading: true - } - }, - hint: { - text: "For example, 15 03 1964" - }, - items: [ - { - name: "day", - classes: "nhsuk-input--width-2", - value: data["dateOfBirth"]["day"] - }, - { - name: "month", - classes: "nhsuk-input--width-2", - value: data["dateOfBirth"]["month"] - }, - { - name: "year", - classes: "nhsuk-input--width-4", - value: data["dateOfBirth"]["year"] - } - ] -}) }} - {{ button({ - text: "Continue" - }) }} - -
    -
    -{% endblock %} \ No newline at end of file +
    +
    +
    + {{ dateInput({ + id: "what-is-your-date-of-birth", + namePrefix: "dateOfBirth", + fieldset: { + legend: { + text: "What is your date of birth?", + classes: "nhsuk-fieldset__legend--l", + isPageHeading: true + } + }, + hint: { + text: "For example, 15 03 1964" + }, + items: [ + { + name: "day", + classes: "nhsuk-input--width-2", + value: data.dateOfBirth["day"] + }, + { + name: "month", + classes: "nhsuk-input--width-2", + value: data.dateOfBirth["month"] + }, + { + name: "year", + classes: "nhsuk-input--width-4", + value: data.dateOfBirth["year"] + } + ] + }) }} + {{ button({ + text: "Continue" + }) }} +
    +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/enter-the-security-code.html b/app/views/prototype_v3/enter-the-security-code.html index 21ceddd..d7e2474 100644 --- a/app/views/prototype_v3/enter-the-security-code.html +++ b/app/views/prototype_v3/enter-the-security-code.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Enter the security code - NHS @@ -10,61 +10,74 @@
    -

    Enter the security code

    +

    Enter the security code

    -

    We have sent a 6-digit security code to your phone number ending in 0887.

    +

    We have sent a 6-digit security code to your phone number ending in 0887.

    -

    It may take a few minutes to arrive.

    +

    It may take a few minutes to arrive.

    - {{ details({ - "summaryText": "Not received a security code?", - "html": "

    Make sure your device:

    -
      + {% set detailsHtml1 %} +

      Make sure your device:

      +
      • is not in flight mode and has a strong signal
      • can receive text messages from other senders
      -

      Wait 30 seconds before you send the security code again.

      " +

      Wait 30 seconds before you send the security code again.

      + {% endset %} + + {{ details({ + summaryText: "Not received a security code?", + html: detailsHtml1 }) }}
      {{ input({ - "label": { - "text": "Security code" + label: { + text: "Security code" }, - "hint": { - "text": "The code is 6 digits" + hint: { + text: "The code is 6 digits" }, - "id": "securityCode", - "name": "securityCode", - "classes": "nhsuk-input--width-10" + id: "securityCode", + name: "securityCode", + classes: "nhsuk-input--width-10" }) }} {{ checkboxes({ - "idPrefix": "rememberDevice", - "name": "rememberDevice", - "items": [ + idPrefix: "rememberDevice", + name: "rememberDevice", + values: data.rememberDevice, + items: [ { - "value": "yes", - "text": "Remember this device and stop sending security codes" + value: "yes", + text: "Remember this device and stop sending security codes" } ] }) }} + {% set detailsHtml2 %} +

      We can remember the device you are using now, so you will not need to enter a security code when you log in with this device in the future.

      +

      To keep your NHS login secure, you should only do this on your own personal or trusted devices.

      +

      We may ask if you still want us to remember this device in the future.

      + {% endset %} + {{ details({ - "summaryText": "What does remember this device mean?", - "html": "

      We can remember the device you are using now, so you will not need to enter a security code when you log in with this device in the future.

      -

      To keep your NHS login secure, you should only do this on your own personal or trusted devices.

      -

      We may ask if you still want us to remember this device in the future.

      " + summaryText: "What does remember this device mean?", + html: detailsHtml2 }) }} + {% set detailsHtml3 %} +

      If you no longer have access to it, you can change the mobile phone number you use to log in.

      + {% endset %} + {{ details({ - "summaryText": "I cannot log in using my mobile phone", - "html": "

      If you no longer have access to it, you can change the mobile phone number you use to log in.

      " + summaryText: "I cannot log in using my mobile phone", + html: detailsHtml3 }) }} {{ button({ - "text": "Continue" + text: "Continue" }) }}
      diff --git a/app/views/prototype_v3/enter-your-height.html b/app/views/prototype_v3/enter-your-height.html index e33128d..322266e 100644 --- a/app/views/prototype_v3/enter-your-height.html +++ b/app/views/prototype_v3/enter-your-height.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} {% if data.heightErrors %}Error: {% endif %}Enter your height - NHS @@ -29,11 +29,11 @@
      -

      Enter your height

      +

      Enter your height

      -

      An accurate measurement is important.

      +

      An accurate measurement is important.

      -

      You can measure your height at home with a measuring tape. Some pharmacies and gyms have machines to measure your height.

      +

      You can measure your height at home with a measuring tape. Some pharmacies and gyms have machines to measure your height.

      {% if data.heightUnit == "imperial" %}
      @@ -43,73 +43,73 @@

      Enter your height

      {% if data.heightErrors.height %} Error: {{ data.heightErrors.height }} - - {% endif %} -
      -
      -
      - - {% if data.heightErrors.feet %} - - Error: {{ data.heightErrors.feet }} - - {% endif %} -
      - - -
      -
      -
      -
      -
      - - {% if data.heightErrors.inches %} - - Error: {{ data.heightErrors.inches }} - - {% endif %} -
      - - -
      -
      -
      -
      -
      - -

      Switch to centimetres

      - {% else %} -
      - -
      - Centimetres -
      - {% if data.heightErrors.height %} - - Error: {{ data.heightErrors.height }} - - {% endif %} -
      - - -
      -
      - -

      Switch to feet and inches

      - {% endif %} + + {% endif %} +
      +
      +
      + + {% if data.heightErrors.feet %} + + Error: {{ data.heightErrors.feet }} + + {% endif %} +
      + + +
      +
      +
      +
      +
      + + {% if data.heightErrors.inches %} + + Error: {{ data.heightErrors.inches }} + + {% endif %} +
      + + +
      +
      +
      +
      + + +

      Switch to centimetres

      + {% else %} +
      + +
      + Centimetres +
      + {% if data.heightErrors.height %} + + Error: {{ data.heightErrors.height }} + + {% endif %} +
      + + +
      +
      + +

      Switch to feet and inches

      + {% endif %} - {{ button({ - text: "Continue" - }) }} + {{ button({ + text: "Continue" + }) }} -
      + -
    -
    -{% endblock %} \ No newline at end of file + + + {% endblock %} diff --git a/app/views/prototype_v3/enter-your-weight.html b/app/views/prototype_v3/enter-your-weight.html index e6a9c41..c6f25ed 100644 --- a/app/views/prototype_v3/enter-your-weight.html +++ b/app/views/prototype_v3/enter-your-weight.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} {% if data.weightErrors %}Error: {% endif %}Enter your weight - NHS @@ -29,11 +29,11 @@
    -

    Enter your weight

    +

    Enter your weight

    -

    An accurate measurement is important.

    - -

    If you have digital scales, use these to check your weight. Some pharmacies and gyms have scales where you can check for free.

    +

    An accurate measurement is important.

    + +

    If you have digital scales, use these to check your weight. Some pharmacies and gyms have scales where you can check for free.

    {% if data.weightUnit == "imperial" %}
    @@ -43,73 +43,73 @@

    Enter your weight

    {% if data.weightErrors.weight %} Error: {{ data.weightErrors.weight }} - - {% endif %} -
    -
    -
    - - {% if data.weightErrors.stone %} - - Error: {{ data.weightErrors.stone }} - - {% endif %} -
    - - -
    -
    -
    -
    -
    - - {% if data.weightErrors.pounds %} - - Error: {{ data.weightErrors.pounds }} - - {% endif %} -
    - - -
    -
    -
    -
    -
    - -

    Switch to kilograms

    - {% else %} -
    - -
    - Kilograms -
    - {% if data.weightErrors.weight %} - - Error: {{ data.weightErrors.weight }} - - {% endif %} -
    - - -
    -
    - -

    Switch to stone and pounds

    - {% endif %} + + {% endif %} +
    +
    +
    + + {% if data.weightErrors.stone %} + + Error: {{ data.weightErrors.stone }} + + {% endif %} +
    + + +
    +
    +
    +
    +
    + + {% if data.weightErrors.pounds %} + + Error: {{ data.weightErrors.pounds }} + + {% endif %} +
    + + +
    +
    +
    +
    + + +

    Switch to kilograms

    + {% else %} +
    + +
    + Kilograms +
    + {% if data.weightErrors.weight %} + + Error: {{ data.weightErrors.weight }} + + {% endif %} +
    + + +
    +
    + +

    Switch to stone and pounds

    + {% endif %} - {{ button({ - text: "Continue" - }) }} + {{ button({ + text: "Continue" + }) }} -
    + - - -{% endblock %} \ No newline at end of file + + + {% endblock %} diff --git a/app/views/prototype_v3/exposed-to-asbestos.html b/app/views/prototype_v3/exposed-to-asbestos.html index 8f238ca..ca7b53f 100644 --- a/app/views/prototype_v3/exposed-to-asbestos.html +++ b/app/views/prototype_v3/exposed-to-asbestos.html @@ -1,5 +1,5 @@ -{% extends 'layout.html' %} -{% from 'details/macro.njk' import details %} +{% extends "layout.html" %} + {% block pageTitle %} Tell us if you might have been exposed to asbestos at work - NHS {% endblock %} @@ -10,39 +10,42 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    -

    Tell us if you might have been exposed to asbestos at work

    -

    You may have been exposed to asbestos if you worked in an industry such as building or construction, particularly from the 1950s to the 1990s.

    -

    You could be exposed to asbestos today if your job involves working in certain roles in old buildings.

    -

    Examples include:

    -
      -
    • heating and ventilation engineers
    • -
    • demolition workers
    • -
    • plumbers
    • -
    • construction workers
    • -
    • electricians
    • -
    +
    +
    + +

    Tell us if you might have been exposed to asbestos at work

    +

    You may have been exposed to asbestos if you worked in an industry such as building or construction, particularly from the 1950s to the 1990s.

    +

    You could be exposed to asbestos today if your job involves working in certain roles in old buildings.

    +

    Examples include:

    +
      +
    • heating and ventilation engineers
    • +
    • demolition workers
    • +
    • plumbers
    • +
    • construction workers
    • +
    • electricians
    • +
    + +

    If you did not work with asbestos but think you might have been exposed

    +

    You might know there was asbestos in buildings you have spent time in, or products you have used. But if the asbestos was not damaged, the risk to your health is very low.

    +

    If you lived with someone who worked with asbestos you may have been exposed to asbestos yourself. For example, if you washed the clothes they worked in. The question on the next page will ask if you lived with someone who might have been exposed to asbestos at work.

    -

    If you did not work with asbestos but think you might have been exposed

    -

    You might know there was asbestos in buildings you have spent time in, or products you have used. But if the asbestos was not damaged, the risk to your health is very low.

    -

    If you lived with someone who worked with asbestos you may have been exposed to asbestos yourself. For example, if you washed the clothes they worked in. The question on the next page will ask if you lived with someone who might have been exposed to asbestos at work.

    + {% set detailsHtml %} +

    Asbestos was used in a number of building materials and products. For example:

    +
      +
    • boilers and pipes
    • +
    • car brakes
    • +
    • cement for roofing sheets
    • +
    • floor tiles
    • +
    • insulating board to protect buildings and ships against fire
    • +
    +

    If you worked in an industry such as building or construction, you are more likely to have come into contact with damaged asbestos.

    + {% endset %} + + {{ details({ + summaryText: "What is asbestos?", + html: detailsHtml + }) }} - {{ details({ - summaryText: "What is asbestos?", - html: " -

    Asbestos was used in a number of building materials and products. For example:

    -
      -
    • boilers and pipes
    • -
    • car brakes
    • -
    • cement for roofing sheets
    • -
    • floor tiles
    • -
    • insulating board to protect buildings and ships against fire
    • -
    -

    If you worked in an industry such as building or construction, you are more likely to have come into contact with damaged asbestos.

    - " -}) }} {{ radios({ idPrefix: "exposedAsbestos", name: "exposedAsbestos", @@ -68,7 +71,7 @@

    If you did not work with asbestos but think you might have been exposed

    {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/former-smoker-when-quit-smoking.html b/app/views/prototype_v3/former-smoker-when-quit-smoking.html index 2f537ad..0a0c462 100644 --- a/app/views/prototype_v3/former-smoker-when-quit-smoking.html +++ b/app/views/prototype_v3/former-smoker-when-quit-smoking.html @@ -1,36 +1,36 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% set pageHeading = "When you quit smoking" %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} -
    -
    -
    -

    {{pageHeading}}

    -

    If you stopped smoking more than once, tell us your age when you last quit smoking.

    -

    The question on the next page will ask if you ever stopped smoking for periods of 1 year or longer before you quit.

    +
    +
    + +

    {{pageHeading}}

    +

    If you stopped smoking more than once, tell us your age when you last quit smoking.

    +

    The question on the next page will ask if you ever stopped smoking for periods of 1 year or longer before you quit.

    -{{ input({ - label: { - text: "How old were you when you quit smoking?", - classes: "nhsuk-label--m" - }, - hint: { text: "Give an estimate if you are not sure" }, - prefix: { text: "Age" }, - id: "age-stopped-smoking", - name: "ageStoppedSmoking", - classes: "nhsuk-input--width-2", - value: data.ageStoppedSmoking -}) }} + {{ input({ + label: { + text: "How old were you when you quit smoking?", + classes: "nhsuk-label--m" + }, + hint: { text: "Give an estimate if you are not sure" }, + prefix: { text: "Age" }, + id: "age-stopped-smoking", + name: "ageStoppedSmoking", + classes: "nhsuk-input--width-2", + value: data.ageStoppedSmoking + }) }} -{{ button({ -text: "Continue" -}) }} - -
    -
    -{% endblock %} \ No newline at end of file + {{ button({ + text: "Continue" + }) }} + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/have-you-completed-by-phone.html b/app/views/prototype_v3/have-you-completed-by-phone.html index 49d6e3a..abbd520 100644 --- a/app/views/prototype_v3/have-you-completed-by-phone.html +++ b/app/views/prototype_v3/have-you-completed-by-phone.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Confirm if you have completed a lung cancer risk questionnaire by phone - NHS {% endblock %} @@ -9,41 +9,48 @@ }) }} {% endblock %} {% block content %} -
    -
    -

    Confirm if you have completed a lung cancer risk questionnaire by phone

    -

    If you have already completed a questionnaire about your lung health or lung cancer risk by phone you do not need to test the online service. This is because the online service asks the same questions.

    -

    The questionnaire would have asked you questions about:

    -
      -
    • your height and weight
    • -
    • your ethnicity
    • -
    • your education
    • -
    • if you have ever had a cancer diagnosis
    • -
    • if your parents, siblings, or children have ever had a lung cancer diagnosis
    • -
    • your smoking habits
    • -
    +
    +
    +

    Confirm if you have completed a lung cancer risk questionnaire by phone

    +

    If you have already completed a questionnaire about your lung health or lung cancer risk by phone you do not need to test the online service. This is because the online service asks the same questions.

    +

    The questionnaire would have asked you questions about:

    +
      +
    • your height and weight
    • +
    • your ethnicity
    • +
    • your education
    • +
    • if you have ever had a cancer diagnosis
    • +
    • if your parents, siblings, or children have ever had a lung cancer diagnosis
    • +
    • your smoking habits
    • +
    -

    Have you previously completed a lung cancer risk questionnaire by phone?

    +
    - - {{ radios({ - idPrefix: "completedByPhone", - name: "completedByPhone", - items: [ - { - value: "Yes", - text: "Yes" - }, - { - value: "No", - text: "No" - } - ] - }) }} - {{ button({ - text: "Continue" - }) }} -
    -
    -
    -{% endblock %} \ No newline at end of file + {{ radios({ + idPrefix: "completedByPhone", + name: "completedByPhone", + fieldset: { + legend: { + text: "Have you previously completed a lung cancer risk questionnaire by phone?", + isPageHeading: false, + classes: "nhsuk-fieldset__legend--m" + } + }, + value: data.completedByPhone, + items: [ + { + value: "Yes", + text: "Yes" + }, + { + value: "No", + text: "No" + } + ] + }) }} + {{ button({ + text: "Continue" + }) }} + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/how-old-when-started-smoking.html b/app/views/prototype_v3/how-old-when-started-smoking.html index 5c76da9..f7678be 100644 --- a/app/views/prototype_v3/how-old-when-started-smoking.html +++ b/app/views/prototype_v3/how-old-when-started-smoking.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} How old were you when you started smoking regularly? - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {{ input({ label: { text: "How old were you when you started smoking?", @@ -33,7 +33,7 @@ {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/index-allpages.html b/app/views/prototype_v3/index-allpages.html index 63dbaa1..1b37196 100644 --- a/app/views/prototype_v3/index-allpages.html +++ b/app/views/prototype_v3/index-allpages.html @@ -1,1077 +1,1077 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% set pageHeading = "Index of all prototype pages" %} {% block beforeContent %} -{{ backLink({ -href: "javascript:history.back();", -text: "Go back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Go back" + }) }} {% endblock %} {% block content %} - + .nhsuk-summary-list__value { + display: none; + } + -
    -
    -

    {{pageHeading}}

    -

    Quick navigation to all pages in the prototype. Click any page name to jump directly to it.

    +
    +
    +

    {{pageHeading}}

    +

    Quick navigation to all pages in the prototype. Click any page name to jump directly to it.

    +
    -
    -
    -
    +
    +
    - -

    Start & Login

    -
    - - - - - -
    + +

    Start & Login

    +
    + + + + + +
    - -

    Eligibility

    -
    -
    -
    - Tobacco smoking -
    -
    -
    - - - - - -
    + +

    Eligibility

    +
    +
    +
    + Tobacco smoking +
    +
    +
    + + + + + +
    - -

    About you

    -
    -
    -
    - Enter your height -
    -
    -
    -
    -
    - Enter your weight -
    -
    -
    -
    -
    - Your sex at birth -
    -
    -
    - - -
    -
    - Your education -
    -
    -
    -
    + +

    About you

    +
    +
    +
    + Enter your height +
    +
    +
    +
    +
    + Enter your weight +
    +
    +
    +
    +
    + Your sex at birth +
    +
    +
    + + +
    +
    + Your education +
    +
    +
    +
    - -

    Your health

    -
    - - - - -
    + +

    Your health

    +
    + + + + +
    - -

    Family history

    -
    - - -
    + +

    Family history

    +
    + + +
    - -

    Smoking habits

    -
    - - - - - - -
    + +

    Smoking habits

    +
    + + + + + + +
    - -

    Tobacco - Cigarettes

    -
    - - - - - - - - - - - - - - - - - - - - - - - -
    + +

    Tobacco - Cigarettes

    +
    + + + + + + + + + + + + + + + + + + + + + + + +
    - -

    Tobacco - Rolling tobacco

    -
    - - - - - - - - - - - - - - - - - - - - - - - -
    + +

    Tobacco - Rolling tobacco

    +
    + + + + + + + + + + + + + + + + + + + + + + + +
    - -

    Tobacco - Cigars

    -
    - - - - - - - - - - - - - - - - - - - - - - - -
    + +

    Tobacco - Cigars

    +
    + + + + + + + + + + + + + + + + + + + + + + + +
    - -

    Tobacco - Cigarillos

    -
    - - - - - - - - - - - - - - - - - - - - - - - -
    + +

    Tobacco - Cigarillos

    +
    + + + + + + + + + + + + + + + + + + + + + + + +
    - -

    Tobacco - Pipe

    -
    - - - - - - - - - - - - - - - - - - - - - - - -
    + +

    Tobacco - Pipe

    +
    + + + + + + + + + + + + + + + + + + + + + + + +
    - -

    Tobacco - Shisha

    -
    - - - - - - - - - - - - - -
    + +

    Tobacco - Shisha

    +
    + + + + + + + + + + + + + +
    - -

    Check answers and submitted

    -
    -
    -
    - Check your answers -
    -
    -
    - - - -
    + +

    Check answers and submitted

    +
    +
    +
    + Check your answers +
    +
    +
    + + + +
    +
    -
    {% endblock %} diff --git a/app/views/prototype_v3/invite-email.html b/app/views/prototype_v3/invite-email.html index ad8a0b5..07d70cf 100644 --- a/app/views/prototype_v3/invite-email.html +++ b/app/views/prototype_v3/invite-email.html @@ -1,14 +1,14 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% set contactmethod = "email" %} {% block pageTitle %} -Lung Health Check - invite email + Lung Health Check - invite email {% endblock %} {% block headCSS %} - + {% endblock %} {% block header %} @@ -18,65 +18,59 @@ {% endblock %} {% block outerContent %} -{{ backLink({ -"href": "index.html", -"text": "Back", -"classes": "nhsuk-u-margin-top-3 nhsuk-u-margin-bottom-0" -}) }} + {{ backLink({ + href: "index.html", + text: "Back", + classes: "nhsuk-u-margin-top-3 nhsuk-u-margin-bottom-0" + }) }} {% endblock %} {% block content %} +
    +
    + +

    {{ pageTitle }}

    +

    Subject: Sign up for Digital Staff Passport

    + +
    + +

    Doncaster and Bassetlaw Teaching Hospitals

    +

    - + Dear Ashley,

    + You are invited to sign up for Digital Staff Passport (DSP) with Doncaster and Bassetlaw Teaching Hospitals.

    + Start application: https://digitalstaffpassport.nhs.uk/dbth

    + DSP makes onboarding faster, easier and less repetitive for NHS employees.

    + Read about DSP: https://digital.nhs.uk/services/digital-staff-passport

    + If you cannot use the online service, read our troubleshooting guidance: https://digital.nhs.uk/services/digital-staff-passport/guidance-and-support/support-for-staff

    Kind regards,

    + NHS Digital Staff Passport

    + Replies to this inbox are not monitored. -

    -
    +

    -

    {{ pageTitle }}

    -

    Subject: Sign up for Digital Staff Passport

    -
    - -

    Doncaster and Bassetlaw Teaching Hospitals

    -

    - - Dear Ashley,

    - You are invited to sign up for Digital Staff Passport (DSP) with Doncaster and Bassetlaw Teaching Hospitals.

    - Start application: https://digitalstaffpassport.nhs.uk/dbth

    - DSP makes onboarding faster, easier and less repetitive for NHS employees.

    - Read about DSP: https://digital.nhs.uk/services/digital-staff-passport

    - If you cannot use the online service, read our troubleshooting guidance: https://digital.nhs.uk/services/digital-staff-passport/guidance-and-support/support-for-staff

    Kind regards,

    - NHS Digital Staff Passport

    - Replies to this inbox are not monitored. -

    -
    -
    -
    - {% endblock %} {% block footer %} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/lived-with-asbestos-worker.html b/app/views/prototype_v3/lived-with-asbestos-worker.html index 70fb5be..7991e0e 100644 --- a/app/views/prototype_v3/lived-with-asbestos-worker.html +++ b/app/views/prototype_v3/lived-with-asbestos-worker.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'details/macro.njk' import details %} {% block pageTitle %} Tell us if you ever lived with anyone who worked with asbestos - NHS @@ -10,27 +10,29 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    -

    Tell us if you ever lived with anyone who worked with asbestos

    -

    If you lived with someone who worked with asbestos you may have been exposed to asbestos. For example, if you washed the clothes they worked in.

    -

    Someone might have worked with asbestos if they worked in an industry such as building or construction, particularly from the 1950s to the 1990s.

    +
    +
    + +

    Tell us if you ever lived with anyone who worked with asbestos

    +

    If you lived with someone who worked with asbestos you may have been exposed to asbestos. For example, if you washed the clothes they worked in.

    +

    Someone might have worked with asbestos if they worked in an industry such as building or construction, particularly from the 1950s to the 1990s.

    -{{ details({ - summaryText: "What is asbestos?", - html: " -

    Asbestos was used in a number of building materials and products. For example:

    -
      -
    • boilers and pipes
    • -
    • car brakes
    • -
    • cement for roofing sheets
    • -
    • floor tiles
    • -
    • insulating board to protect buildings and ships against fire
    • -
    -

    If you lived with someone who worked in an industry such as building or construction, you are more likely to have come into contact with damaged asbestos.

    - " -}) }} + {% set detailsHtml %} +

    Asbestos was used in a number of building materials and products. For example:

    +
      +
    • boilers and pipes
    • +
    • car brakes
    • +
    • cement for roofing sheets
    • +
    • floor tiles
    • +
    • insulating board to protect buildings and ships against fire
    • +
    +

    If you lived with someone who worked in an industry such as building or construction, you are more likely to have come into contact with damaged asbestos.

    + {% endset %} + + {{ details({ + summaryText: "What is asbestos?", + html: detailsHtml + }) }} {{ radios({ idPrefix: "livedWithAsbestosWorker", name: "livedWithAsbestosWorker", @@ -56,7 +58,7 @@

    Tell us if you ever lived with anyone who worked with asbestos

    {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/login.html b/app/views/prototype_v3/login.html index faa5a6c..b1006ef 100644 --- a/app/views/prototype_v3/login.html +++ b/app/views/prototype_v3/login.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Log in to your NHS account - NHS @@ -11,7 +11,7 @@
    -

    Log in to your NHS account

    +

    Log in to your NHS account

    @@ -34,15 +34,15 @@

    Log in to your NHS account

    classes: "nhsuk-input--width-20" }) }} -

    Forgot password?

    +

    Forgot password?

    {{ button({ - "text": "Continue" + text: "Continue" }) }}
    -

    Log in with a passkey

    +

    Log in with a passkey

    or

    @@ -52,18 +52,18 @@

    Log in to your NHS account

    classes: "nhsuk-button--secondary" }) }} -

    An NHS account allows you to access a range of online health services with one set of login details.

    -

    Learn more about NHS account.

    +

    An NHS account allows you to access a range of online health services with one set of login details.

    +

    Learn more about NHS account.

    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/periods-when-you-stopped-smoking.html b/app/views/prototype_v3/periods-when-you-stopped-smoking.html index 59aff18..971eb36 100644 --- a/app/views/prototype_v3/periods-when-you-stopped-smoking.html +++ b/app/views/prototype_v3/periods-when-you-stopped-smoking.html @@ -1,69 +1,70 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% set pageHeading = "Periods when you stopped smoking" %} {% set buttonText = "Continue" %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Go back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Go back" + }) }} {% endblock %} {% block content %} -
    -
    +
    +
    -

    Periods when you stopped smoking

    +

    Periods when you stopped smoking

    - {% if data["smokedRegularly"] == "Yes-currently" %} -

    There may have been periods when you stopped or quit smoking.

    - {% elif data["smokedRegularly"] == "Yes-usedToRegularly" %} -

    There may have been periods when you stopped smoking before you quit for the last time.

    - {% endif %} + {% if data.smokedRegularly == "Yes-currently" %} +

    There may have been periods when you stopped or quit smoking.

    + {% elif data.smokedRegularly == "Yes-usedToRegularly" %} +

    There may have been periods when you stopped smoking before you quit for the last time.

    + {% endif %} -

    If you stopped smoking for periods of 1 year or longer, tell us the total number of years you stopped smoking.

    +

    If you stopped smoking for periods of 1 year or longer, tell us the total number of years you stopped smoking.

    -
    + - {% if data["smokedRegularly"] == "Yes-currently" %} - {% set legendText = "Have you ever stopped smoking for periods of 1 year or longer?" %} - {% elif data["smokedRegularly"] == "Yes-usedToRegularly" %} - {% set legendText = "Did you ever stop smoking for periods of 1 year or longer?" %} - {% endif %} + {% if data.smokedRegularly == "Yes-currently" %} + {% set legendText = "Have you ever stopped smoking for periods of 1 year or longer?" %} + {% elif data.smokedRegularly == "Yes-usedToRegularly" %} + {% set legendText = "Did you ever stop smoking for periods of 1 year or longer?" %} + {% endif %} - {{ radios({ - "idPrefix": "stoppedSmokingPeriods", - "name": "stoppedSmokingPeriods", - "fieldset": { - "legend": { - "text": legendText, - "classes": "nhsuk-fieldset__legend--m" - } - }, - "items": [ - { - "value": "Yes", - "text": "Yes", - "conditional": { - "html": '

    Give an estimate if you are not sure

    ' + {{ radios({ + idPrefix: "stoppedSmokingPeriods", + name: "stoppedSmokingPeriods", + fieldset: { + legend: { + text: legendText, + classes: "nhsuk-fieldset__legend--m" } }, - { - "value": "No", - "text": "No" - } - ] - }) }} + value: data.stoppedSmokingPeriods, + items: [ + { + value: "Yes", + text: "Yes", + conditional: { + html: '

    Give an estimate if you are not sure

    ' + } + }, + { + value: "No", + text: "No" + } + ] + }) }} - {{ button({ - "text": buttonText - }) }} + {{ button({ + text: buttonText + }) }} -
    + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/privacy-policy.html b/app/views/prototype_v3/privacy-policy.html index 5540c28..f1ce2b9 100644 --- a/app/views/prototype_v3/privacy-policy.html +++ b/app/views/prototype_v3/privacy-policy.html @@ -1,125 +1,125 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} - NHS check if you need a lung scan privacy policy - NHS + NHS {{ serviceName | lower }} privacy policy - NHS {% endblock %} {% block beforeContent %} {% endblock %} {% block content %} -
    -
    - -

    NHS check if you need a lung scan privacy policy

    - -

    Who we are

    -

    NHS England is running a pilot of the Check if you need a lung scan digital service.

    - -

    Why we use your data

    -

    We use your information to evaluate whether a digital questionnaire can safely and effectively support lung cancer screening alongside the existing telephone service.

    - -

    What data we use

    -

    This includes information you provide in the questionnaire, limited details from NHS login, and (if you complete both routes) responses from the telephone screening so they can be compared.

    - -

    Your choice

    -

    Taking part is voluntary. You can choose not to take part or withdraw at any time. This will not affect your NHS care.

    - -

    How we protect your data

    -

    Your data is kept secure, access is restricted, and personal identifiers are removed once analysis is complete.

    - -

    More information

    -

    Read the full privacy notice below to understand how your data is used, shared, stored, and what your rights are.

    - -

    1. About this service

    -

    NHS check if you need a lung scan is a pilot by NHS England and allows you to complete a lung health check online before you complete your phone appointment. The pilot is designed to evaluate whether a digital questionnaire can operate as effectively as the existing telephone based lung cancer screening service.

    -

    The pilot is for service evaluation purposes only and does not form part of routine clinical care.

    - -

    2. Who we are

    -

    Data Controller: NHS England

    -

    NHS England is responsible for deciding how and why your personal data is used as part of this pilot.

    - -

    3. What data we collect

    -

    If you choose to take part, we may collect:

    -
      -
    • NHS number
    • -
    • Name
    • -
    • Email address
    • -
    -

    This information is provided through NHS login to allow secure access.

    -

    Information you provide in the questionnaire:

    -
      -
    • Date of birth
    • -
    • Smoking history
    • -
    • Height and weight
    • -
    • Sex at birth and gender identity
    • -
    • Ethnicity
    • -
    • Education level
    • -
    • Relevant health, lifestyle, and family history information
    • -
    -

    When you complete the telephone screening, NHS England receives the telephone responses so they can be compared with the digital responses as part of the evaluation.

    -

    On completion of both the digital service and phone screening appointment, your name and email address will be used to issue a participation voucher.

    - -

    4. How we use your information

    -

    We use your information to:

    -
      -
    • Evaluate whether the digital questionnaire works as safely and accurately as the telephone screening
    • -
    • Compare digital and telephone screening responses
    • -
    • Understand clarity, usability, and accessibility of the digital service
    • -
    • Inform decisions about future service design
    • -
    -

    We do not use your information to:

    -
      -
    • Provide diagnoses
    • -
    • Make clinical decisions
    • -
    • Replace existing screening pathways
    • -
    -

    Participation in the pilot is voluntary. Where you choose to take part, we rely on your consent to:

    -
      -
    • participate in the digital pilot
    • -
    • allow comparison of digital and telephone screening responses
    • -
    • administer participation incentives where applicable
    • -
    -

    You can withdraw from the pilot at any time without affecting your NHS care.

    - -

    5. Who we share your information with

    -

    Your information may be shared with:

    -
      -
    • InHealth, to enable comparison between digital and telephone screening responses
    • -
    • NHS England technical and analysis teams, limited to staff who need access to support the pilot
    • -
    • Edenred, where applicable, to issue participation vouchers (name and email address only)
    • -
    -

    We do not sell your data or use it for marketing.

    - -

    6. How long information is kept

    -

    How long we keep your information:

    -
      -
    • Identifiable pilot data is kept only for the duration of the pilot and up to three months afterwards
    • -
    • Personal identifiers are removed once analysis is complete
    • -
    • An anonymised and aggregated dataset may be retained for up to 10 years to support service evaluation and regulatory requirements
    • -
    • All data is managed in line with the NHS Records Management Code of Practice
    • -
    - -

    7. The law and your information

    -

    The law allows the NHS to use information:

    -
      -
    • to invite people for screening
    • -
    • to keep screening services safe and effective
    • -
    -

    You can find out more here.

    - -

    8. Your rights and getting help

    -

    You have rights over your personal information.

    -

    These include the right to:

    -
      -
    • ask what information the NHS holds about you
    • -
    • ask for a copy of your screening results
    • -
    -

    If you want to access your screening results, contact your GP or local screening service.

    - -

    9. Ask a question or find out more

    -

    If you have a general question about using the NHS check if you need a lung scan, you can contact us by email at: england.digitallungcancerscreening@nhs.net

    - +
    +
    + +

    NHS {{ serviceName | lower }} privacy policy

    + +

    Who we are

    +

    NHS England is running a pilot of the {{ serviceName | lower }} digital service.

    + +

    Why we use your data

    +

    We use your information to evaluate whether a digital questionnaire can safely and effectively support lung cancer screening alongside the existing telephone service.

    + +

    What data we use

    +

    This includes information you provide in the questionnaire, limited details from NHS login, and (if you complete both routes) responses from the telephone screening so they can be compared.

    + +

    Your choice

    +

    Taking part is voluntary. You can choose not to take part or withdraw at any time. This will not affect your NHS care.

    + +

    How we protect your data

    +

    Your data is kept secure, access is restricted, and personal identifiers are removed once analysis is complete.

    + +

    More information

    +

    Read the full privacy notice below to understand how your data is used, shared, stored, and what your rights are.

    + +

    1. About this service

    +

    NHS {{ serviceName | lower }} is a pilot by NHS England and allows you to complete a lung health check online before you complete your phone appointment. The pilot is designed to evaluate whether a digital questionnaire can operate as effectively as the existing telephone based lung cancer screening service.

    +

    The pilot is for service evaluation purposes only and does not form part of routine clinical care.

    + +

    2. Who we are

    +

    Data Controller: NHS England

    +

    NHS England is responsible for deciding how and why your personal data is used as part of this pilot.

    + +

    3. What data we collect

    +

    If you choose to take part, we may collect:

    +
      +
    • NHS number
    • +
    • Name
    • +
    • Email address
    • +
    +

    This information is provided through NHS login to allow secure access.

    +

    Information you provide in the questionnaire:

    +
      +
    • Date of birth
    • +
    • Smoking history
    • +
    • Height and weight
    • +
    • Sex at birth and gender identity
    • +
    • Ethnicity
    • +
    • Education level
    • +
    • Relevant health, lifestyle, and family history information
    • +
    +

    When you complete the telephone screening, NHS England receives the telephone responses so they can be compared with the digital responses as part of the evaluation.

    +

    On completion of both the digital service and phone screening appointment, your name and email address will be used to issue a participation voucher.

    + +

    4. How we use your information

    +

    We use your information to:

    +
      +
    • Evaluate whether the digital questionnaire works as safely and accurately as the telephone screening
    • +
    • Compare digital and telephone screening responses
    • +
    • Understand clarity, usability, and accessibility of the digital service
    • +
    • Inform decisions about future service design
    • +
    +

    We do not use your information to:

    +
      +
    • Provide diagnoses
    • +
    • Make clinical decisions
    • +
    • Replace existing screening pathways
    • +
    +

    Participation in the pilot is voluntary. Where you choose to take part, we rely on your consent to:

    +
      +
    • participate in the digital pilot
    • +
    • allow comparison of digital and telephone screening responses
    • +
    • administer participation incentives where applicable
    • +
    +

    You can withdraw from the pilot at any time without affecting your NHS care.

    + +

    5. Who we share your information with

    +

    Your information may be shared with:

    +
      +
    • InHealth, to enable comparison between digital and telephone screening responses
    • +
    • NHS England technical and analysis teams, limited to staff who need access to support the pilot
    • +
    • Edenred, where applicable, to issue participation vouchers (name and email address only)
    • +
    +

    We do not sell your data or use it for marketing.

    + +

    6. How long information is kept

    +

    How long we keep your information:

    +
      +
    • Identifiable pilot data is kept only for the duration of the pilot and up to three months afterwards
    • +
    • Personal identifiers are removed once analysis is complete
    • +
    • An anonymised and aggregated dataset may be retained for up to 10 years to support service evaluation and regulatory requirements
    • +
    • All data is managed in line with the NHS Records Management Code of Practice
    • +
    + +

    7. The law and your information

    +

    The law allows the NHS to use information:

    +
      +
    • to invite people for screening
    • +
    • to keep screening services safe and effective
    • +
    +

    You can find out more here.

    + +

    8. Your rights and getting help

    +

    You have rights over your personal information.

    +

    These include the right to:

    +
      +
    • ask what information the NHS holds about you
    • +
    • ask for a copy of your screening results
    • +
    +

    If you want to access your screening results, contact your GP or local screening service.

    + +

    9. Ask a question or find out more

    +

    If you have a general question about using the NHS {{ serviceName | lower }}, you can contact us by email at: england.digitallungcancerscreening@nhs.net

    + +
    -
    {% endblock %} diff --git a/app/views/prototype_v3/relatives-age-when-diagnosed.html b/app/views/prototype_v3/relatives-age-when-diagnosed.html index 53c66f7..cea3e44 100644 --- a/app/views/prototype_v3/relatives-age-when-diagnosed.html +++ b/app/views/prototype_v3/relatives-age-when-diagnosed.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} If your relatives were under 60 when they were diagnosed - NHS {% endblock %} @@ -9,15 +9,15 @@ }) }} {% endblock %} {% block content %} -
    -
    -

    If your relatives were under 60 when they were diagnosed

    +
    +
    +

    If your relatives were under 60 when they were diagnosed

    -

    We ask about their age when they were diagnosed with lung cancer because it may impact your chances of developing lung cancer.

    +

    We ask about their age when they were diagnosed with lung cancer because it may impact your chances of developing lung cancer.

    -

    If you do not know or cannot remember, select 'I do not know'.

    +

    If you do not know or cannot remember, select 'I do not know'.

    -
    + {{ radios({ idPrefix: "relativeAge", name: "relativeAge", @@ -47,7 +47,7 @@

    If your relatives were under 60 when they were diagnosed

    {{ button({ text: "Continue" }) }} -
    -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/relatives-with-cancer.html b/app/views/prototype_v3/relatives-with-cancer.html index 09745fa..1cd8c75 100644 --- a/app/views/prototype_v3/relatives-with-cancer.html +++ b/app/views/prototype_v3/relatives-with-cancer.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} @@ -13,46 +13,47 @@ {% endblock %} {% block content %} -
    -
    -

    If your parents, siblings or children have ever been diagnosed with lung cancer

    - -

    If any of your parents, siblings or children have ever been diagnosed with lung cancer it may impact your chances of developing lung cancer.

    - -

    This question is about lung cancer rather than any other type of cancer. It does not include your grandparents or grandchildren.

    - -
    - - {{ radios({ - idPrefix: "relativesHaveCancer", - name: "relativesHaveCancer", - fieldset: { - legend: { - text: "Have any of your parents, siblings or children ever been diagnosed with lung cancer?", - classes: "nhsuk-fieldset__legend--m", - isPageHeading: false - } - }, - items: [ - { - value: "Yes", - text: "Yes" - }, - { - value: "No", - text: "No" +
    +
    +

    If your parents, siblings or children have ever been diagnosed with lung cancer

    + +

    If any of your parents, siblings or children have ever been diagnosed with lung cancer it may impact your chances of developing lung cancer.

    + +

    This question is about lung cancer rather than any other type of cancer. It does not include your grandparents or grandchildren.

    + + + + {{ radios({ + idPrefix: "relativesHaveCancer", + name: "relativesHaveCancer", + fieldset: { + legend: { + text: "Have any of your parents, siblings or children ever been diagnosed with lung cancer?", + classes: "nhsuk-fieldset__legend--m", + isPageHeading: false + } }, - { - value: "I don't know", - text: "I do not know" - } - ] - }) }} - - {{ button({ - text: "Continue" - }) }} - + value: data.relativesHaveCancer, + items: [ + { + value: "Yes", + text: "Yes" + }, + { + value: "No", + text: "No" + }, + { + value: "I don't know", + text: "I do not know" + } + ] + }) }} + + {{ button({ + text: "Continue" + }) }} + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/respiratory-conditions.html b/app/views/prototype_v3/respiratory-conditions.html index 0122512..2ba780b 100644 --- a/app/views/prototype_v3/respiratory-conditions.html +++ b/app/views/prototype_v3/respiratory-conditions.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Have you ever been diagnosed with any of the following respiratory conditions? - NHS {% endblock %} @@ -9,74 +9,75 @@ }) }} {% endblock %} {% block content %} -
    -
    +
    +
    -
    - {{ checkboxes({ - idPrefix: "EverDiagnosedWith", - name: "EverDiagnosedWith", - fieldset: { - legend: { - text: "Have you ever been diagnosed with any of the following respiratory conditions?", - isPageHeading: true, - classes: "nhsuk-fieldset__legend--l" - } - }, - hint: { - text: "Select all that apply" - }, - items: [ - { - value: "Pneumonia", - text: "Pneumonia", - hint: { - text: "An infection of the lungs, usually diagnosed by a chest x-ray" - } - }, - { - value: "Emphysema", - text: "Emphysema", - hint: { - text: "Damage to the air sacs in the lungs" - } - }, - { - value: "Bronchitis", - text: "Bronchitis", - hint: { - text: "An inflammation of the airways in the lungs that is usually caused by an infection" - } - }, - { - value: "Tuberculosis (TB)", - text: "Tuberculosis (TB)", - hint: { - text: "An infection that usually affects the lungs, but can affect any part of the body" - } - }, - { - value: "Chronic obstructive pulmonary disease (COPD)", - text: "Chronic obstructive pulmonary disease (COPD)", - hint: { - text: "A group of lung conditions that cause breathing difficulties" - } - }, - { - divider: "or" - }, - { - value: "No, I have not had any of these respiratory conditions", - text: "No, I have not had any of these respiratory conditions" - } - ] - }) }} - - {{ button({ - text: "Continue" - }) }} -
    +
    + {{ checkboxes({ + idPrefix: "everDiagnosedWith", + name: "everDiagnosedWith", + fieldset: { + legend: { + text: "Have you ever been diagnosed with any of the following respiratory conditions?", + isPageHeading: true, + classes: "nhsuk-fieldset__legend--l" + } + }, + hint: { + text: "Select all that apply" + }, + values: data.everDiagnosedWith, + items: [ + { + value: "Pneumonia", + text: "Pneumonia", + hint: { + text: "An infection of the lungs, usually diagnosed by a chest x-ray" + } + }, + { + value: "Emphysema", + text: "Emphysema", + hint: { + text: "Damage to the air sacs in the lungs" + } + }, + { + value: "Bronchitis", + text: "Bronchitis", + hint: { + text: "An inflammation of the airways in the lungs that is usually caused by an infection" + } + }, + { + value: "Tuberculosis (TB)", + text: "Tuberculosis (TB)", + hint: { + text: "An infection that usually affects the lungs, but can affect any part of the body" + } + }, + { + value: "Chronic obstructive pulmonary disease (COPD)", + text: "Chronic obstructive pulmonary disease (COPD)", + hint: { + text: "A group of lung conditions that cause breathing difficulties" + } + }, + { + divider: "or" + }, + { + value: "No, I have not had any of these respiratory conditions", + text: "No, I have not had any of these respiratory conditions" + } + ] + }) }} -
    -
    -{% endblock %} \ No newline at end of file + {{ button({ + text: "Continue" + }) }} + + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/results-high-risk.html b/app/views/prototype_v3/results-high-risk.html index 0d91ce3..3938fd7 100644 --- a/app/views/prototype_v3/results-high-risk.html +++ b/app/views/prototype_v3/results-high-risk.html @@ -1,146 +1,160 @@ -{% extends 'layout.html' %} -{% from 'details/macro.njk' import details %} -{% from 'button/macro.njk' import button %} -{% from 'do-dont-list/macro.njk' import list as doDontList %} -{% from 'card/macro.njk' import card %} -{% from 'inset-text/macro.njk' import insetText %} +{% extends "layout.html" %} + {% set pageHeading = "Your results" %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} -
    -
    - -

    {{ pageHeading }}

    - -
    -
    -

    You may benefit from further tests

    -
    -
    -
    - Information: -

    Based on the information you have provided we recommend that you call to book an appointment to see a healthcare professional

    +
    +
    + +

    {{ pageHeading }}

    + +
    +
    +

    You may benefit from further tests

    +
    +
    +
    + Information: +

    Based on the information you have provided we recommend that you call to book an appointment to see a healthcare professional

    +
    +

    About the appointment

    +

    The appointment will be in person and offered within 2 weeks of your call. A healthcare professional will review your responses and answer any questions you may have.

    +

    Your appointment will take place at your local hospital or a mobile unit in a convenient location such as a supermarket car park.

    +

    You may be offered a CT scan

    +

    If the healthcare professional recommends a CT scan, a machine will take detailed pictures of the inside of your chest. It is non-invasive and pain free. The scan is used to detect any abnormalities in your lungs.

    +

    For every 100 people who are scanned 2 people are diagnosed with lung cancer. The aim is to find lung cancer early. Early diagnosis can make lung cancer more treatable and make treatment more successful.

    +

    Book a CT scan

    +

    Call 020 1234 1234 to book an appointment.

    -

    About the appointment

    -

    The appointment will be in person and offered within 2 weeks of your call. A healthcare professional will review your responses and answer any questions you may have.

    -

    Your appointment will take place at your local hospital or a mobile unit in a convenient location such as a supermarket car park.

    -

    You may be offered a CT scan

    -

    If the healthcare professional recommends a CT scan, a machine will take detailed pictures of the inside of your chest. It is non-invasive and pain free. The scan is used to detect any abnormalities in your lungs.

    -

    For every 100 people who are scanned 2 people are diagnosed with lung cancer. The aim is to find lung cancer early. Early diagnosis can make lung cancer more treatable and make treatment more successful.

    -

    Book a CT scan

    -

    Call 020 1234 1234 to book an appointment.

    -
    -

    Find your local Stop Smoking Service

    -

    Stopping smoking is the single biggest change you can make for your health. Find local services to help you stop smoking.

    -

    Benefits of stopping smoking

    -

    Stopping smoking is a great way to stay healthy, protect the health of those around you, and enjoy a better quality of life.

    - - {{ doDontList({ - title: "When you quit, you:", - type: "tick", - items: [ - { - item: "lower your risk of cancer, lung disease, heart disease, stroke and dementia" - }, - { - item: "protect your loved ones and pets from secondhand smoke" - }, - { - item: "feel better mentally in as little as 6 weeks" - }, - { - item: "save money - around £38 a week for the average smoker" - }, - { - item: "increase energy levels" - }, - { - item: "look better and have healthier skin" - } - ] - }) }} - -

    It's never too late to stop

    -

    When you stop smoking, your body can repair itself sooner than you might think. It does not matter how old you are, or how long you have smoked.

    - - {{ insetText({ - html: "

    When you stop smoking, in:

    • 2 days, all harmful carbon monoxide leaves your body
    • 2 to 12 weeks, your circulation improves
    • 3 to 9 months, your lung function and breathing improves
    • 1 year, your risk of a heart attack halves compared to a smoker
    " - }) }} - - {{ doDontList({ - title: "To help stop smoking:", - type: "tick", - items: [ - { - item: "talk to your GP or pharmacy about stop smoking aids, medication and support services" - }, - { - item: "set small goals - you're 5 times more likely to quit for good if you stop smoking for 28 days" - }, - { - item: "reflect on any past attempts to quit and try new methods" - } - ] - }) }} - - {{ details({ - classes: "nhsuk-expander", - summaryText: "Vaping to quit smoking", - html: "

    Nearly two-thirds of people who use vapes with Stop Smoking Services quit smoking.

    Nicotine vapes are less harmful than cigarettes. They don't produce tar or carbon monoxide, which cause cancer, lung disease, and heart disease.

    Vaping mimics smoking with hand-to-mouth movement and helps manage nicotine cravings.

    Vaping also costs about a third as much as smoking, once you have the kit.

    Vaping is not risk-free. It is not recommended for non smokers or those under 18 years old.

    Useful resources

    The following links open in a new tab.

    Visit a vape shop or local Stop Smoking Service for advice

    Read NHS guidance on vaping to quit smoking

    Want to quit vaping?

    To quit vaping, gradually reduce nicotine strength or usage. Seek advice from a vape shop or local Stop Smoking Service.

    " - }) }} - - {{ details({ - classes: "nhsuk-expander", - summaryText: "Smoking, anxiety and mood", - html: "

    Quitting smoking can lift your mood, and ease stress, anxiety and depression.

    Smokers often think that smoking helps them relax. But in reality, nicotine cravings increase anxiety and tension.

    To manage cravings, try to:

    • keep busy with hobbies and activities
    • relax with breathing techniques or meditation
    • seek support from friends, family, or support groups
    • use nicotine replacement therapy or medications

    The following links open in a new tab.

    Read NHS guidance on smoking and mental health

    Get your free Mind Plan

    " - }) }} - - {{ doDontList({ - title: "For free help and support:", - type: "tick", - items: [ - { - item: "find your nearest local Stop Smoking Service" - }, - { - item: "get a free personal quit plan" - }, - { - item: "join the Quit Smoking Group on Facebook" - }, - { - item: "read NHS guidance on smoking" - }, - { - item: "call the free National Smokefree Helpline on 0300 123 1044 (England only)" - }, - { - item: "download the NHS Quit Smoking app from the Apple App Store or Google Play Store" - } - ] - }) }} - -

    The following links open in a new tab:

    - -

    Help us improve this service

    -

    Tell us about your experience using this service today.

    - {{ button({ - text: "Give feedback", - classes: "nhsuk-button--secondary" - }) }} - -
    - [Show lower risk results page] - +

    Find your local Stop Smoking Service

    +

    Stopping smoking is the single biggest change you can make for your health. Find local services to help you stop smoking.

    +

    Benefits of stopping smoking

    +

    Stopping smoking is a great way to stay healthy, protect the health of those around you, and enjoy a better quality of life.

    + + {{ list({ + title: "When you quit, you:", + type: "tick", + items: [ + { + text: "lower your risk of cancer, lung disease, heart disease, stroke and dementia" + }, + { + text: "protect your loved ones and pets from secondhand smoke" + }, + { + text: "feel better mentally in as little as 6 weeks" + }, + { + text: "save money - around £38 a week for the average smoker" + }, + { + text: "increase energy levels" + }, + { + text: "look better and have healthier skin" + } + ] + }) }} + +

    It's never too late to stop

    +

    When you stop smoking, your body can repair itself sooner than you might think. It does not matter how old you are, or how long you have smoked.

    + + {% set insetTextHtml %} +

    When you stop smoking, in:

    +
      +
    • 2 days, all harmful carbon monoxide leaves your body
    • +
    • 2 to 12 weeks, your circulation improves
    • +
    • 3 to 9 months, your lung function and breathing improves
    • +
    • 1 year, your risk of a heart attack halves compared to a smoker
    • +
    + {% endset %} + + {{ insetText({ + html: insetTextHtml + }) }} + + {{ list({ + title: "To help stop smoking:", + type: "tick", + items: [ + { + text: "talk to your GP or pharmacy about stop smoking aids, medication and support services" + }, + { + text: "set small goals - you're 5 times more likely to quit for good if you stop smoking for 28 days" + }, + { + text: "reflect on any past attempts to quit and try new methods" + } + ] + }) }} + + {% set detailsHtml1 %} +

    Nearly two-thirds of people who use vapes with Stop Smoking Services quit smoking.

    Nicotine vapes are less harmful than cigarettes. They don't produce tar or carbon monoxide, which cause cancer, lung disease, and heart disease.

    Vaping mimics smoking with hand-to-mouth movement and helps manage nicotine cravings.

    Vaping also costs about a third as much as smoking, once you have the kit.

    Vaping is not risk-free. It is not recommended for non smokers or those under 18 years old.

    Useful resources

    The following links open in a new tab.

    Visit a vape shop or local Stop Smoking Service (opens in new tab) for advice

    Read NHS guidance on vaping to quit smoking

    Want to quit vaping?

    To quit vaping, gradually reduce nicotine strength or usage. Seek advice from a vape shop or local Stop Smoking Service.

    + {% endset %} + + {{ details({ + classes: "nhsuk-expander", + summaryText: "Vaping to quit smoking", + html: detailsHtml1 + }) }} + + {% set detailsHtml2 %} +

    Quitting smoking can lift your mood, and ease stress, anxiety and depression.

    Smokers often think that smoking helps them relax. But in reality, nicotine cravings increase anxiety and tension.

    To manage cravings, try to:

    • keep busy with hobbies and activities
    • relax with breathing techniques or meditation
    • seek support from friends, family, or support groups
    • use nicotine replacement therapy or medications

    The following links open in a new tab.

    Read NHS guidance on smoking and mental health (opens in new tab)

    Get your free Mind Plan (opens in new tab)

    + {% endset %} + + {{ details({ + classes: "nhsuk-expander", + summaryText: "Smoking, anxiety and mood", + html: detailsHtml2 + }) }} + + {{ list({ + title: "For free help and support:", + type: "tick", + items: [ + { + html: "find your nearest local Stop Smoking Service" + }, + { + html: "get a free personal quit plan" + }, + { + html: "join the Quit Smoking Group on Facebook" + }, + { + html: "read NHS guidance on smoking" + }, + { + html: "call the free National Smokefree Helpline on 0300 123 1044 (England only)" + }, + { + html: "download the NHS Quit Smoking app from the Apple App Store or Google Play Store" + } + ] + }) }} + +

    The following links open in a new tab:

    + +

    Help us improve this service

    +

    Tell us about your experience using this service today.

    + {{ button({ + text: "Give feedback", + classes: "nhsuk-button--secondary" + }) }} + +
    + [Show lower risk results page] + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/results-low-risk.html b/app/views/prototype_v3/results-low-risk.html index e034794..e22b81a 100644 --- a/app/views/prototype_v3/results-low-risk.html +++ b/app/views/prototype_v3/results-low-risk.html @@ -1,56 +1,49 @@ -{% extends 'layout.html' %} -{% from 'details/macro.njk' import details %} -{% from 'button/macro.njk' import button %} -{% from 'do-dont-list/macro.njk' import list as doDontList %} -{% from 'card/macro.njk' import card %} -{% from 'inset-text/macro.njk' import insetText %} +{% extends "layout.html" %} + {% set pageHeading = "Your results" %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} -
    -
    - -

    {{ pageHeading }}

    - -
    -
    -

    You do not need further tests

    -
    -
    -
    - Information: -

    Your responses suggest that you are at a lower risk of developing lung cancer in the next few years

    +
    +
    + +

    {{ pageHeading }}

    + +
    +
    +

    You do not need further tests

    -

    We do not recommend any further tests for lung cancer screening.

    -

    However a lower risk does not mean there is no risk. You should see your GP if you have any symptoms of lung cancer, such as:

    -
      -
    • a cough that does not go away after 3 weeks
    • +
      +
      + Information: +

      Your responses suggest that you are at a lower risk of developing lung cancer in the next few years

      +
      +

      We do not recommend any further tests for lung cancer screening.

      +

      However a lower risk does not mean there is no risk. You should see your GP if you have any symptoms of lung cancer, such as:

      +
        +
      • a cough that does not go away after 3 weeks
      • an existing cough that changes or gets worse
      • -
      • chest infections that keep coming back
      • -
      • coughing up blood
      • -
      • being short of breath a lot
      • -
      • unexplained tiredness
      • -
      • an ache or pain when breathing or coughing
      • -
      • loss of appetite or unexplained weight loss
      • -
      -

      Local stop smoking services

      -

      Stopping smoking is the single biggest change you can make for your health. Find local services to help you stop smoking.

      +
    • chest infections that keep coming back
    • +
    • coughing up blood
    • +
    • being short of breath a lot
    • +
    • unexplained tiredness
    • +
    • an ache or pain when breathing or coughing
    • +
    • loss of appetite or unexplained weight loss
    • +
    +

    Local stop smoking services

    +

    Stopping smoking is the single biggest change you can make for your health. Find local services to help you stop smoking.

    +
    -
    - {{ card({ - type: "non-urgent", - heading: "See a GP if:", - descriptionHtml: " -

    You notice any new symptoms, such as:

    -
      + {% set cardDescriptionHtml %} +

      You notice any new symptoms, such as:

      +
      • a cough that does not go away after 3 weeks
      • an existing cough that changes or gets worse
      • chest infections that keep coming back
      • @@ -60,109 +53,132 @@

        Local stop smoking services

      • an ache or pain when breathing or coughing
      • loss of appetite or unexplained weight loss
      - " - }) }} - -

      Benefits of stopping smoking

      -

      Stopping smoking is a great way to stay healthy, protect the health of those around you, and enjoy a better quality of life.

      - - {{ doDontList({ - title: "When you quit, you:", - type: "tick", - items: [ - { - item: "lower your risk of cancer, lung disease, heart disease, stroke and dementia" - }, - { - item: "protect your loved ones and pets from secondhand smoke" - }, - { - item: "feel better mentally in as little as 6 weeks" - }, - { - item: "save money - around £38 a week for the average smoker" - }, - { - item: "increase energy levels" - }, - { - item: "look better and have healthier skin" - } - ] - }) }} - -

      It's never too late to stop

      -

      When you stop smoking, your body can repair itself sooner than you might think. It does not matter how old you are, or how long you have smoked.

      - - {{ insetText({ - html: "

      When you stop smoking, in:

      • 2 days, all harmful carbon monoxide leaves your body
      • 2 to 12 weeks, your circulation improves
      • 3 to 9 months, your lung function and breathing improves
      • 1 year, your risk of a heart attack halves compared to a smoker
      " - }) }} - - {{ doDontList({ - title: "To help stop smoking:", - type: "tick", - items: [ - { - item: "talk to your GP or pharmacy about stop smoking aids, medication and support services" - }, - { - item: "set small goals - you're 5 times more likely to quit for good if you stop smoking for 28 days" - }, - { - item: "reflect on any past attempts to quit and try new methods" - } - ] - }) }} - - {{ details({ - classes: "nhsuk-expander", - summaryText: "Vaping to quit smoking", - html: "

      Nearly two-thirds of people who use vapes with Stop Smoking Services quit smoking.

      Nicotine vapes are less harmful than cigarettes. They don't produce tar or carbon monoxide, which cause cancer, lung disease, and heart disease.

      Vaping mimics smoking with hand-to-mouth movement and helps manage nicotine cravings.

      Vaping also costs about a third as much as smoking, once you have the kit.

      Vaping is not risk-free. It is not recommended for non smokers or those under 18 years old.

      Useful resources

      The following links open in a new tab.

      Visit a vape shop or local Stop Smoking Service for advice

      Read NHS guidance on vaping to quit smoking

      Want to quit vaping?

      To quit vaping, gradually reduce nicotine strength or usage. Seek advice from a vape shop or local Stop Smoking Service.

      " - }) }} - - {{ details({ - classes: "nhsuk-expander", - summaryText: "Smoking, anxiety and mood", - html: "

      Quitting smoking can lift your mood, and ease stress, anxiety and depression.

      Smokers often think that smoking helps them relax. But in reality, nicotine cravings increase anxiety and tension.

      To manage cravings, try to:

      • keep busy with hobbies and activities
      • relax with breathing techniques or meditation
      • seek support from friends, family, or support groups
      • use nicotine replacement therapy or medications

      The following links open in a new tab.

      Read NHS guidance on smoking and mental health

      Get your free Mind Plan

      " - }) }} - - {{ doDontList({ - title: "For free help and support:", - type: "tick", - items: [ - { - item: "find your nearest local Stop Smoking Service" - }, - { - item: "get a free personal quit plan" - }, - { - item: "join the Quit Smoking Group on Facebook" - }, - { - item: "read NHS guidance on smoking" - }, - { - item: "call the free National Smokefree Helpline on 0300 123 1044 (England only)" - }, - { - item: "download the NHS Quit Smoking app from the Apple App Store or Google Play Store" - } - ] - }) }} - -

      The following links open in a new tab:

      - -

      Help us improve this service

      -

      Tell us about your experience using this service today.

      - {{ button({ - text: "Give feedback", - classes: "nhsuk-button--secondary" - }) }} - -
      - [Show high risk results page] - + {% endset %} + + {{ card({ + type: "non-urgent", + heading: "See a GP if:", + descriptionHtml: cardDescriptionHtml + }) }} + +

      Benefits of stopping smoking

      +

      Stopping smoking is a great way to stay healthy, protect the health of those around you, and enjoy a better quality of life.

      + + {{ list({ + title: "When you quit, you:", + type: "tick", + items: [ + { + text: "lower your risk of cancer, lung disease, heart disease, stroke and dementia" + }, + { + text: "protect your loved ones and pets from secondhand smoke" + }, + { + text: "feel better mentally in as little as 6 weeks" + }, + { + text: "save money - around £38 a week for the average smoker" + }, + { + text: "increase energy levels" + }, + { + text: "look better and have healthier skin" + } + ] + }) }} + +

      It's never too late to stop

      +

      When you stop smoking, your body can repair itself sooner than you might think. It does not matter how old you are, or how long you have smoked.

      + + {% set insetTextHtml %} +

      When you stop smoking, in:

      +
        +
      • 2 days, all harmful carbon monoxide leaves your body
      • +
      • 2 to 12 weeks, your circulation improves
      • +
      • 3 to 9 months, your lung function and breathing improves
      • +
      • 1 year, your risk of a heart attack halves compared to a smoker
      • +
      + {% endset %} + + {{ insetText({ + html: insetTextHtml + }) }} + + {{ list({ + title: "To help stop smoking:", + type: "tick", + items: [ + { + text: "talk to your GP or pharmacy about stop smoking aids, medication and support services" + }, + { + text: "set small goals - you're 5 times more likely to quit for good if you stop smoking for 28 days" + }, + { + text: "reflect on any past attempts to quit and try new methods" + } + ] + }) }} + + {% set detailsHtml1 %} +

      Nearly two-thirds of people who use vapes with Stop Smoking Services quit smoking.

      Nicotine vapes are less harmful than cigarettes. They don't produce tar or carbon monoxide, which cause cancer, lung disease, and heart disease.

      Vaping mimics smoking with hand-to-mouth movement and helps manage nicotine cravings.

      Vaping also costs about a third as much as smoking, once you have the kit.

      Vaping is not risk-free. It is not recommended for non smokers or those under 18 years old.

      Useful resources

      The following links open in a new tab.

      Visit a vape shop or local Stop Smoking Service (opens in new tab) for advice

      Read NHS guidance on vaping to quit smoking (opens in new tab)

      Want to quit vaping?

      To quit vaping, gradually reduce nicotine strength or usage. Seek advice from a vape shop or local Stop Smoking Service.

      + {% endset %} + + {{ details({ + classes: "nhsuk-expander", + summaryText: "Vaping to quit smoking", + html: detailsHtml1 + }) }} + + {% set detailsHtml2 %} +

      Quitting smoking can lift your mood, and ease stress, anxiety and depression.

      Smokers often think that smoking helps them relax. But in reality, nicotine cravings increase anxiety and tension.

      To manage cravings, try to:

      • keep busy with hobbies and activities
      • relax with breathing techniques or meditation
      • seek support from friends, family, or support groups
      • use nicotine replacement therapy or medications

      The following links open in a new tab.

      Read NHS guidance on smoking and mental health (opens in new tab)

      Get your free Mind Plan (opens in new tab)

      + {% endset %} + + {{ details({ + classes: "nhsuk-expander", + summaryText: "Smoking, anxiety and mood", + html: detailsHtml2 + }) }} + + {{ list({ + title: "For free help and support:", + type: "tick", + items: [ + { + html: "find your nearest local Stop Smoking Service" + }, + { + html: "get a free personal quit plan" + }, + { + html: "join the Quit Smoking Group on Facebook" + }, + { + html: "read NHS guidance on smoking" + }, + { + html: "call the free National Smokefree Helpline on 0300 123 1044 (England only)" + }, + { + html: "download the NHS Quit Smoking app from the Apple App Store or Google Play Store" + } + ] + }) }} + +

      The following links open in a new tab:

      + +

      Help us improve this service

      +

      Tell us about your experience using this service today.

      + {{ button({ + text: "Give feedback", + classes: "nhsuk-button--secondary" + }) }} + +
      + [Show high risk results page] + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/results-pilot.html b/app/views/prototype_v3/results-pilot.html index cd9f026..16d9fc7 100644 --- a/app/views/prototype_v3/results-pilot.html +++ b/app/views/prototype_v3/results-pilot.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'details/macro.njk' import details %} {% from 'button/macro.njk' import button %} {% from 'do-dont-list/macro.njk' import list as doDontList %} @@ -9,145 +9,161 @@ {% block content %} -
    -
    - - {{ panel({ titleText: "Thank you for testing the online service" }) }} - -

    What happens next

    - -

    You will need to complete your NHS lung cancer screening by phone.

    - -

    Call us on 020 1234 1234

    - -

    An advisor will ask you similar questions about your medical history and lifestyle. They will not have access to the answers you have submitted online. This is because we are testing the online service.

    - -

    Phone lines are open:
    - Monday to Friday 8am to 8pm
    - Saturdays 8am to 1pm

    - -

    If we do not hear from you in 14 days we will call you to complete the questionnaire by phone. If you are unable to answer the phone we will call you back.

    - -

    As a thank you for testing the online service we will offer you a £10 voucher after you have completed your phone appointment.

    - - {{ card({ - type: "non-urgent", - heading: "Speak to a GP if:", - descriptionHtml: " -

    You have any of the following symptoms:

    -
      -
    • a cough that does not go away after 3 weeks
    • -
    • a long-standing cough that gets worse
    • -
    • chest infections that keep coming back
    • -
    • coughing up blood
    • -
    • an ache or pain when breathing or coughing
    • -
    • persistent breathlessness
    • -
    • persistent tiredness or lack of energy
    • -
    • loss of appetite or unexplained weight loss
    • -
    -

    They could be symptoms of lung cancer. Your GP will ask about your general health and your symptoms.

    -

    You may be asked to have a blood test to rule out some of the possible causes of your symptoms, such as a chest infection.

    - " - }) }} - -

    Find your local Stop Smoking Service

    -

    Stopping smoking is the single biggest change you can make for your health. Find local services to help you stop smoking.

    - -

    Benefits of stopping smoking

    -

    When you stop smoking, you lower your risk of cancer, protect the health of those around you, and enjoy a better quality of life.

    - - {{ doDontList({ - title: "When you quit, you:", - type: "tick", - items: [ - { - item: "lower your risk of cancer, lung disease, heart disease, stroke and dementia" - }, - { - item: "protect your loved ones and pets from secondhand smoke" - }, - { - item: "feel better mentally in as little as 6 weeks" - }, - { - item: "save money - around £38 a week for the average smoker" - }, - { - item: "increase energy levels" - }, - { - item: "look better and have healthier skin" - } - ] - }) }} - -

    It's never too late to stop

    -

    When you stop smoking, your body can repair itself sooner than you might think. It does not matter how old you are, or how long you have smoked.

    - - {{ insetText({ - html: "

    When you stop smoking, in:

    • 2 days, all harmful carbon monoxide leaves your body
    • 2 to 12 weeks, your circulation improves
    • 3 to 9 months, your lung function and breathing improves
    • 1 year, your risk of a heart attack halves compared to a smoker
    " - }) }} - - {{ doDontList({ - title: "To help stop smoking:", - type: "tick", - items: [ - { - item: "talk to your GP or pharmacy about stop smoking aids, medication and support services" - }, - { - item: "set small goals - you're 5 times more likely to quit for good if you stop smoking for 28 days" - }, - { - item: "reflect on any past attempts to quit and try new methods" - } - ] - }) }} - - {{ details({ - classes: "nhsuk-expander", - summaryText: "Smoking, anxiety and mood", - html: "

    Quitting smoking can lift your mood, and ease stress, anxiety and depression.

    Smokers often think that smoking helps them relax. But in reality, nicotine cravings increase anxiety and tension.

    To manage cravings, try to:

    • keep busy with hobbies and activities
    • relax with breathing techniques or meditation
    • seek support from friends, family, or support groups
    • use nicotine replacement therapy or medications

    The following links open in a new tab.

    Read NHS guidance on smoking and mental health

    Get your free Mind Plan

    " - }) }} - -{{ doDontList({ - title: "For free help and support:", - type: "tick", - items: [ - { - html: "find your nearest local Stop Smoking Service" - }, - { - html: "get a free personal quit plan" - }, - { - html: "join the Quit Smoking Group on Facebook" - }, - { - html: "read NHS guidance on smoking" - }, - { - html: "call the free National Smokefree Helpline on 0300 123 1044 (England only)" - }, - { - html: "download the NHS Quit Smoking app from the Apple App Store or Google Play Store" - } - ] -}) }} - -

    Help us improve this service

    -

    Tell us about your experience using this service today.

    - {{ button({ - text: "Give feedback", - classes: "nhsuk-button--secondary", - href: "feedback" - }) }} - -
    - - [Show high risk results page] - -
    -
    - -{% endblock %} \ No newline at end of file +
    +
    + + {{ panel({ titleText: "Thank you for testing the online service" }) }} + +

    What happens next

    + +

    You will need to complete your NHS lung cancer screening by phone.

    + +

    Call us on 020 1234 1234

    + +

    An advisor will ask you similar questions about your medical history and lifestyle. They will not have access to the answers you have submitted online. This is because we are testing the online service.

    + +

    Phone lines are open:
    + Monday to Friday 8am to 8pm
    + Saturdays 8am to 1pm

    + +

    If we do not hear from you in 14 days we will call you to complete the questionnaire by phone. If you are unable to answer the phone we will call you back.

    + +

    As a thank you for testing the online service we will offer you a £10 voucher after you have completed your phone appointment.

    + + {% set cardDescriptionHtml %} +

    You have any of the following symptoms:

    +
      +
    • a cough that does not go away after 3 weeks
    • +
    • a long-standing cough that gets worse
    • +
    • chest infections that keep coming back
    • +
    • coughing up blood
    • +
    • an ache or pain when breathing or coughing
    • +
    • persistent breathlessness
    • +
    • persistent tiredness or lack of energy
    • +
    • loss of appetite or unexplained weight loss
    • +
    +

    They could be symptoms of lung cancer. Your GP will ask about your general health and your symptoms.

    +

    You may be asked to have a blood test to rule out some of the possible causes of your symptoms, such as a chest infection.

    + {% endset %} + + {{ card({ + type: "non-urgent", + heading: "Speak to a GP if:", + descriptionHtml: cardDescriptionHtml + }) }} + +

    Find your local Stop Smoking Service

    +

    Stopping smoking is the single biggest change you can make for your health. Find local services to help you stop smoking.

    + +

    Benefits of stopping smoking

    +

    When you stop smoking, you lower your risk of cancer, protect the health of those around you, and enjoy a better quality of life.

    + + {{ list({ + title: "When you quit, you:", + type: "tick", + items: [ + { + text: "lower your risk of cancer, lung disease, heart disease, stroke and dementia" + }, + { + text: "protect your loved ones and pets from secondhand smoke" + }, + { + text: "feel better mentally in as little as 6 weeks" + }, + { + text: "save money - around £38 a week for the average smoker" + }, + { + text: "increase energy levels" + }, + { + text: "look better and have healthier skin" + } + ] + }) }} + +

    It's never too late to stop

    +

    When you stop smoking, your body can repair itself sooner than you might think. It does not matter how old you are, or how long you have smoked.

    + + {% set insetTextHtml %} +

    When you stop smoking, in:

    +
      +
    • 2 days, all harmful carbon monoxide leaves your body
    • +
    • 2 to 12 weeks, your circulation improves
    • +
    • 3 to 9 months, your lung function and breathing improves
    • +
    • 1 year, your risk of a heart attack halves compared to a smoker
    • +
    + {% endset %} + + {{ insetText({ + html: insetTextHtml + }) }} + + {{ list({ + title: "To help stop smoking:", + type: "tick", + items: [ + { + text: "talk to your GP or pharmacy about stop smoking aids, medication and support services" + }, + { + text: "set small goals - you're 5 times more likely to quit for good if you stop smoking for 28 days" + }, + { + text: "reflect on any past attempts to quit and try new methods" + } + ] + }) }} + + {% set detailsHtml %} +

    Quitting smoking can lift your mood, and ease stress, anxiety and depression.

    Smokers often think that smoking helps them relax. But in reality, nicotine cravings increase anxiety and tension.

    To manage cravings, try to:

    • keep busy with hobbies and activities
    • relax with breathing techniques or meditation
    • seek support from friends, family, or support groups
    • use nicotine replacement therapy or medications

    The following links open in a new tab.

    Read NHS guidance on smoking and mental health

    Get your free Mind Plan

    + {% endset %} + + {{ details({ + classes: "nhsuk-expander", + summaryText: "Smoking, anxiety and mood", + html: detailsHtml + }) }} + + {{ list({ + title: "For free help and support:", + type: "tick", + items: [ + { + html: "find your nearest local Stop Smoking Service" + }, + { + html: "get a free personal quit plan" + }, + { + html: "join the Quit Smoking Group on Facebook" + }, + { + html: "read NHS guidance on smoking" + }, + { + html: "call the free National Smokefree Helpline on 0300 123 1044 (England only)" + }, + { + html: "download the NHS Quit Smoking app from the Apple App Store or Google Play Store" + } + ] + }) }} + +

    Help us improve this service

    +

    Tell us about your experience using this service today.

    + {{ button({ + text: "Give feedback", + classes: "nhsuk-button--secondary", + href: "feedback" + }) }} + +
    + + [Show high risk results page] + +
    +
    + + {% endblock %} diff --git a/app/views/prototype_v3/sorry-you-cannot-test-the-online-service.html b/app/views/prototype_v3/sorry-you-cannot-test-the-online-service.html index 0477b13..f054d98 100644 --- a/app/views/prototype_v3/sorry-you-cannot-test-the-online-service.html +++ b/app/views/prototype_v3/sorry-you-cannot-test-the-online-service.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Sorry, you cannot test the online service - NHS @@ -10,23 +10,23 @@
    -

    Sorry, you cannot test the online service

    +

    Sorry, you cannot test the online service

    -

    To test the online service, we need to confirm who you are. To do this, you need to agree to let NHS login share your information with us.

    +

    To test the online service, we need to confirm who you are. To do this, you need to agree to let NHS login share your information with us.

    -

    If you do not agree to share your NHS login information, you should complete your NHS lung cancer screening by phone.

    +

    If you do not agree to share your NHS login information, you should complete your NHS lung cancer screening by phone.

    -

    Call us on 020 1234 1234

    +

    Call us on 020 1234 1234

    -

    Phone lines are open:

    +

    Phone lines are open:

    -

    Monday to Friday 8am to 8pm

    +

    Monday to Friday 8am to 8pm

    -

    Saturdays 8am to 1pm

    +

    Saturdays 8am to 1pm

    {{ button({ - "text": "Back to start page", - "href": "/prototype_v3/start-page" + text: "Back to start page", + href: "/prototype_v3/start-page" }) }}
    diff --git a/app/views/prototype_v3/start-page.html b/app/views/prototype_v3/start-page.html index ae209e8..31357ea 100644 --- a/app/views/prototype_v3/start-page.html +++ b/app/views/prototype_v3/start-page.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Help us test a new online service - NHS {% endblock %} @@ -9,54 +9,54 @@ }) }} {% endblock %} {% block content %} -
    -
    +
    +
    -

    Help us test a new online service

    +

    Help us test a new online service

    -

    We are testing a new online questionnaire for lung cancer screening. This service will ask you some questions about your medical history and lifestyle.

    +

    We are testing a new online questionnaire for lung cancer screening. This service will ask you some questions about your medical history and lifestyle.

    -

    This online service cannot currently recommend if you need a lung scan. Once you have completed the online service you will need to call us to repeat the questionnaire by phone.

    +

    This online service cannot currently recommend if you need a lung scan. Once you have completed the online service you will need to call us to repeat the questionnaire by phone.

    -

    The answers you submit will not be shared with your patient care advisor during your phone appointment, or with your GP.

    +

    The answers you submit will not be shared with your patient care advisor during your phone appointment, or with your GP.

    -

    As a thank you for testing the online service, we will offer you a £10 voucher once you have completed both the online service and your phone appointment.

    +

    As a thank you for testing the online service, we will offer you a £10 voucher once you have completed both the online service and your phone appointment.

    -

    The benefits of lung cancer screening

    +

    The benefits of lung cancer screening

    -

    Your risk of lung cancer increases as you get older. Screening aims to find lung cancer early, sometimes before you have symptoms. Early diagnosis can make lung cancer more treatable and make treatment more successful.

    +

    Your risk of lung cancer increases as you get older. Screening aims to find lung cancer early, sometimes before you have symptoms. Early diagnosis can make lung cancer more treatable and make treatment more successful.

    -

    You are eligible for lung cancer screening if you are:

    +

    You are eligible for lung cancer screening if you are:

    -
      -
    • aged between 55 and 74
    • -
    • registered with a GP surgery
    • -
    • someone who smokes or used to smoke
    • -
    +
      +
    • aged between 55 and 74
    • +
    • registered with a GP surgery
    • +
    • someone who smokes or used to smoke
    • +
    -

    What to expect in the online service

    +

    What to expect in the online service

    -

    We will ask you questions about:

    +

    We will ask you questions about:

    -
      -
    • your height and weight
    • -
    • your ethnicity
    • -
    • your education
    • -
    • if you have ever had a cancer diagnosis
    • -
    • if your parents, siblings, or children have ever had a lung cancer diagnosis
    • -
    • your smoking habits
    • -
    +
      +
    • your height and weight
    • +
    • your ethnicity
    • +
    • your education
    • +
    • if you have ever had a cancer diagnosis
    • +
    • if your parents, siblings, or children have ever had a lung cancer diagnosis
    • +
    • your smoking habits
    • +
    -{{ button({ - text: "Continue", - href: "start-journey", - classes: "nhsuk-button--login" -}) }} + {{ button({ + text: "Continue", + href: "start-journey", + classes: "nhsuk-button--login" + }) }} -

    If you do not want to test the online service

    +

    If you do not want to test the online service

    -

    You should call us on 0207 555 444 to complete the questionnaire by phone.

    +

    You should call us on 0207 555 444 to complete the questionnaire by phone.

    -
    -
    -{% endblock %} \ No newline at end of file +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/task-list.html b/app/views/prototype_v3/task-list.html index d179e84..89dbb76 100644 --- a/app/views/prototype_v3/task-list.html +++ b/app/views/prototype_v3/task-list.html @@ -1,93 +1,93 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% set pageHeading = "NHS lung scan" %} {% block content %} -

    {{pageHeading}}

    -
    -
    -

    Eligibility

    - -

    About you

    - -

    Your health

    - -

    Family history

    - -

    Smoking habits

    - -
    -
    -{% endblock %} \ No newline at end of file +
    +{% endblock %} diff --git a/app/views/prototype_v3/terms-of-use.html b/app/views/prototype_v3/terms-of-use.html index 3af7f14..a501316 100644 --- a/app/views/prototype_v3/terms-of-use.html +++ b/app/views/prototype_v3/terms-of-use.html @@ -1,110 +1,110 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} - NHS check if you need a lung scan terms of use - NHS + NHS {{ serviceName | lower }} terms of use - NHS {% endblock %} {% block beforeContent %} {% endblock %} {% block content %} -
    -
    +
    +
    -

    NHS check if you need a lung scan terms of use

    +

    NHS {{ serviceName | lower }} terms of use

    -

    Version 4, 25 March 2026

    +

    Version 4, 25 March 2026

    -

    1. Introduction

    -

    1.1. We (NHS England) have developed a digital service called NHS check if you need a lung scan. This is a digital way to access NHS lung cancer screening. This service is currently in pilot so is only available in certain areas and if your GP surgery is participating in the pilot.

    -

    1.2. This service will not provide you with any results or information in relation to the lung cancer screening, you will need to complete your lung cancer screening by phone to receive a result.

    -

    1.3. To find out more about who we are and our role, visit the NHS England website.

    -

    1.4. Contacting us: if you have any questions about the service, contact us by email: england.digitallungcancerscreening@nhs.net

    +

    1. Introduction

    +

    1.1. We (NHS England) have developed a digital service called NHS {{ serviceName | lower }}. This is a digital way to access NHS lung cancer screening. This service is currently in pilot so is only available in certain areas and if your GP surgery is participating in the pilot.

    +

    1.2. This service will not provide you with any results or information in relation to the lung cancer screening, you will need to complete your lung cancer screening by phone to receive a result.

    +

    1.3. To find out more about who we are and our role, visit the NHS England website.

    +

    1.4. Contacting us: if you have any questions about the service, contact us by email: england.digitallungcancerscreening@nhs.net

    -

    2. When these terms apply

    -

    2.1. Please read these terms of use and our privacy policy, cookies policy and accessibility statement. By continuing to use the NHS check if you need a lung scan, you agree to be bound by these terms.

    +

    2. When these terms apply

    +

    2.1. Please read these terms of use and our privacy policy, cookies policy and accessibility statement. By continuing to use the NHS {{ serviceName | lower }}, you agree to be bound by these terms.

    -

    3. How to use the NHS check if you need a lung scan

    -

    3.1. To use NHS check if you need a lung scan, your GP must be participating in the pilot. Your GP will send you a letter and an SMS with a link to access the NHS check if you need a lung scan pilot service in a web browser.

    -

    3.2. To use the NHS check if you need a lung scan you need an NHS Login account with a medium level of identity verification. If you do not have an account or a medium level of identity verification, you will be able to set this up as part of your application. Find out more about NHS login.

    -

    3.3. You are responsible for making all arrangements necessary for you to access the NHS check if you need a lung scan, including but not limited to:

    -
      -
    • a secure internet connection (see Cyber Aware website)
    • -
    • an appropriate device, operating system and browser
    • -
    • using your own virus protection software (and regularly updating it) when accessing and using the NHS check if you need a lung scan
    • -
    +

    3. How to use the NHS check if you need 2 lung scan

    +

    3.1. To use NHS {{ serviceName | lower }}, your GP must be participating in the pilot. Your GP will send you a letter and an SMS with a link to access the NHS {{ serviceName | lower }} pilot service in a web browser.

    +

    3.2. To use the NHS {{ serviceName | lower }} you need an NHS Login account with a medium level of identity verification. If you do not have an account or a medium level of identity verification, you will be able to set this up as part of your application. Find out more about NHS login.

    +

    3.3. You are responsible for making all arrangements necessary for you to access the NHS {{ serviceName | lower }}, including but not limited to:

    +
      +
    • a secure internet connection (see Cyber Aware website)
    • +
    • an appropriate device, operating system and browser
    • +
    • using your own virus protection software (and regularly updating it) when accessing and using the NHS {{ serviceName | lower }}
    • +
    -

    4. Details about the NHS check if you need a lung scan

    -

    4.1. If you download, print or export any of your submitted information, you are responsible for ensuring that this is held securely, and we will not be liable for any associated disclosure of sensitive and personal data.

    -

    4.2. The NHS check if you need a lung scan:

    -
      -
    • is not a substitute for seeking medical advice - always follow any medical advice given by your healthcare professionals
    • -
    • does not provide medical or clinical diagnostic services
    • -
    • does not arrange or guarantee further healthcare treatment. You remain responsible for booking further healthcare treatment via the phone service as directed by your GP.
    • -
    +

    4. Details about the NHS check if you nee2 a lung scan

    +

    4.1. If you download, print or export any of your submitted information, you are responsible for ensuring that this is held securely, and we will not be liable for any associated disclosure of sensitive and personal data.

    +

    4.2. The NHS {{ serviceName | lower }}:

    +
      +
    • is not a substitute for seeking medical advice - always follow any medical advice given by your healthcare professionals
    • +
    • does not provide medical or clinical diagnostic services
    • +
    • does not arrange or guarantee further healthcare treatment. You remain responsible for booking further healthcare treatment via the phone service as directed by your GP.
    • +
    -

    5. Ending your use of the NHS check if you need a lung scan

    -

    5.1. You may stop using the NHS check if you need a lung scan at any time. If you fail to complete your NHS check if you need a lung scan within a set period of time your data will automatically be deleted. More information on how long your information is kept is in the privacy policy.

    +

    5. Ending your use of the NHS check if yo2 need a lung scan

    +

    5.1. You may stop using the NHS {{ serviceName | lower }} at any time. If you fail to complete your NHS {{ serviceName | lower }} within a set period of time your data will automatically be deleted. More information on how long your information is kept is in the privacy policy.

    -

    6. Your right to use the NHS check if you need a lung scan

    -

    6.1. We own or have the right to use all intellectual property rights used for the provision of the NHS check if you need a lung scan, including rights in copyright, patents, database rights, trademarks and other intellectual property rights, ("NHS IPR").

    -

    6.2. Unless permitted by law or under these terms, you will:

    -
      -
    • not copy the NHS check if you need a lung scan or any NHS IPR, except where such copying is incidental to normal use
    • -
    • not rent, lease, sub-license, loan, translate, merge, adapt or modify the NHS check if you need a lung scan or any NHS IPR
    • -
    • not combine or incorporate the NHS check if you need a lung scan in any other programmes or services
    • -
    • not disassemble, decompile, reverse-engineer or create derivative works based on the whole or any part of the NHS check if you need a lung scan or other NHS IPR
    • -
    • comply with all technology control or export laws that apply to the technology used by the NHS check if you need a lung scan or any other NHS IPR
    • -
    +

    6. Your right to use the NHS check if yo2 need a lung scan

    +

    6.1. We own or have the right to use all intellectual property rights used for the provision of the NHS {{ serviceName | lower }}, including rights in copyright, patents, database rights, trademarks and other intellectual property rights, ("NHS IPR").

    +

    6.2. Unless permitted by law or under these terms, you will:

    +
      +
    • not copy the NHS {{ serviceName | lower }} or any NHS IPR, except where such copying is incidental to normal use
    • +
    • not rent, lease, sub-license, loan, translate, merge, adapt or modify the NHS {{ serviceName | lower }} or any NHS IPR
    • +
    • not combine or incorporate the NHS {{ serviceName | lower }} in any other programmes or services
    • +
    • not disassemble, decompile, reverse-engineer or create derivative works based on the whole or any part of the NHS {{ serviceName | lower }} or other NHS IPR
    • +
    • comply with all technology control or export laws that apply to the technology used by the NHS {{ serviceName | lower }} or any other NHS IPR
    • +
    -

    7. Prohibited uses

    -

    7.1. You may not use the NHS check if you need a lung scan:

    -
      -
    • to collect any data or attempt to decipher any transmissions to or from our servers
    • -
    • in a way that could damage, disable, overburden, impair or compromise our systems or security
    • -
    • to transmit any material that is insulting or offensive
    • -
    • in a way that interferes with other users
    • -
    • in any unlawful manner or for any unlawful purpose
    • -
    • in a manner that is improper use or inconsistent with these terms
    • -
    • to act fraudulently or maliciously by seeking to access or add data to another patient's GP record
    • -
    • to transmit, send or upload any data that contains viruses, Trojan horses, worms, spyware or any other harmful programs designed to adversely affect the operation of computer software or hardware
    • -
    • in connection with any kind of denial of service attack
    • -
    • on any device or operating system that has been modified outside the mobile device or operating system vendor supported or warranted configurations. This includes devices that have been "jail-broken" or "rooted"
    • -
    • with someone else's NHS login account
    • -
    -

    7.2. If you do any of the above acts you may also be committing a criminal offence, and we will report any such activity to the relevant law enforcement authorities. We will co-operate with those authorities by disclosing your identity to them.

    +

    7. Prohibited uses

    +

    7.1. You may not use the NHS {{ serviceName | lower }}:

    +
      +
    • to collect any data or attempt to decipher any transmissions to or from our servers
    • +
    • in a way that could damage, disable, overburden, impair or compromise our systems or security
    • +
    • to transmit any material that is insulting or offensive
    • +
    • in a way that interferes with other users
    • +
    • in any unlawful manner or for any unlawful purpose
    • +
    • in a manner that is improper use or inconsistent with these terms
    • +
    • to act fraudulently or maliciously by seeking to access or add data to another patient's GP record
    • +
    • to transmit, send or upload any data that contains viruses, Trojan horses, worms, spyware or any other harmful programs designed to adversely affect the operation of computer software or hardware
    • +
    • in connection with any kind of denial of service attack
    • +
    • on any device or operating system that has been modified outside the mobile device or operating system vendor supported or warranted configurations. This includes devices that have been "jail-broken" or "rooted"
    • +
    • with someone else's NHS login account
    • +
    +

    7.2. If you do any of the above acts you may also be committing a criminal offence, and we will report any such activity to the relevant law enforcement authorities. We will co-operate with those authorities by disclosing your identity to them.

    -

    8. Our liability to you

    -

    8.1. Although we make reasonable efforts to provide, maintain and update the NHS check if you need a lung scan it is provided "as is" and, to the extent permitted by law, we make no representations, warranties or guarantees, whether express or implied (including but not limited to the implied warranties of satisfactory quality and fitness for a particular purpose), that the NHS check if you need a lung scan:

    -
      -
    • is accurate, complete or up-to-date
    • -
    • will meet your particular requirements or needs
    • -
    • will always be available, error free, uninterrupted or free of viruses
    • -
    -

    8.2. We are not responsible for external links to or from the NHS check if you need a lung scan and cannot guarantee these will always work.

    -

    8.3. Nothing in these terms excludes or limits our liability for:

    -
      -
    • death or personal injury arising from our negligence
    • -
    • fraud or fraudulent misrepresentation
    • -
    • any loss or damage to a device or digital content belonging to you, if you can show that a) this was caused by NHS check if you need a lung scan and b) we failed use to use reasonable skill and care to prevent this
    • -
    • any other liability that cannot be excluded or limited under English law
    • -
    -

    8.4. Subject to clause 8.3 of these terms, we will not be liable or responsible to you or any other person for:

    -
      -
    • any harm, loss or damage suffered where this is not caused by i) our negligence or ii) our breach of these terms
    • -
    • any loss or damage arising from an inability to access or use the NHS check if you need a lung scan in whole or in part
    • -
    • any business loss (including but not limited to loss of profits, revenue, contracts, anticipated savings, data, goodwill or wasted expenditure)
    • -
    • any indirect or consequential losses that were not foreseeable to both you and us when you commenced using the NHS check if you need a lung scan (loss or damage is "foreseeable" if it was an obvious consequence of our breach or if it was recognised by you and us at the time we entered into the contract created by your use of the NHS check if you need a lung scan)
    • -
    -

    8.5. This clause 8 does not affect any legal rights you may have as a consumer in relation to defective services or software. Advice about your legal rights is available from your local Citizen's Advice or Trading Standards Office.

    +

    8. Our liability to you

    +

    8.1. Although we make reasonable efforts to provide, maintain and update the NHS {{ serviceName | lower }} it is provided "as is" and, to the extent permitted by law, we make no representations, warranties or guarantees, whether express or implied (including but not limited to the implied warranties of satisfactory quality and fitness for a particular purpose), that the NHS {{ serviceName | lower }}:

    +
      +
    • is accurate, complete or up-to-date
    • +
    • will meet your particular requirements or needs
    • +
    • will always be available, error free, uninterrupted or free of viruses
    • +
    +

    8.2. We are not responsible for external links to or from the NHS {{ serviceName | lower }} and cannot guarantee these will always work.

    +

    8.3. Nothing in these terms excludes or limits our liability for:

    +
      +
    • death or personal injury arising from our negligence
    • +
    • fraud or fraudulent misrepresentation
    • +
    • any loss or damage to a device or digital content belonging to you, if you can show that a) this was caused by NHS {{ serviceName | lower }} and b) we failed use to use reasonable skill and care to prevent this
    • +
    • any other liability that cannot be excluded or limited under English law
    • +
    +

    8.4. Subject to clause 8.3 of these terms, we will not be liable or responsible to you or any other person for:

    +
      +
    • any harm, loss or damage suffered where this is not caused by i) our negligence or ii) our breach of these terms
    • +
    • any loss or damage arising from an inability to access or use the NHS {{ serviceName | lower }} in whole or in part
    • +
    • any business loss (including but not limited to loss of profits, revenue, contracts, anticipated savings, data, goodwill or wasted expenditure)
    • +
    • any indirect or consequential losses that were not foreseeable to both you and us when you commenced using the NHS {{ serviceName | lower }} (loss or damage is "foreseeable" if it was an obvious consequence of our breach or if it was recognised by you and us at the time we entered into the contract created by your use of the NHS {{ serviceName | lower }})
    • +
    +

    8.5. This clause 8 does not affect any legal rights you may have as a consumer in relation to defective services or software. Advice about your legal rights is available from your local Citizen's Advice or Trading Standards Office.

    -

    9. General

    -

    9.1. These terms, any instructions in the service, and any other terms or policies referenced, set out the entire agreement between you and us in respect of your use of the NHS check if you need a lung scan.

    -

    9.2. These terms do not give any rights to any third party to enforce any of these terms.

    -

    9.3. Each of the clauses and sub-clauses of these terms operates separately. If any part is determined to be invalid or unenforceable it will be superseded by a valid and enforceable provision that most closely matches the intent of the original and all other terms shall continue in effect.

    -

    9.4. Even if we delay in enforcing these terms, we can still enforce them later.

    -

    9.5. The laws of England shall apply exclusively to these terms and all matters relating to use of the NHS check if you need a lung scan, and any dispute shall be subject to the exclusive jurisdiction of the courts of England.

    +

    9. General

    +

    9.1. These terms, any instructions in the service, and any other terms or policies referenced, set out the entire agreement between you and us in respect of your use of the NHS {{ serviceName | lower }}.

    +

    9.2. These terms do not give any rights to any third party to enforce any of these terms.

    +

    9.3. Each of the clauses and sub-clauses of these terms operates separately. If any part is determined to be invalid or unenforceable it will be superseded by a valid and enforceable provision that most closely matches the intent of the original and all other terms shall continue in effect.

    +

    9.4. Even if we delay in enforcing these terms, we can still enforce them later.

    +

    9.5. The laws of England shall apply exclusively to these terms and all matters relating to use of the NHS {{ serviceName | lower }}, and any dispute shall be subject to the exclusive jurisdiction of the courts of England.

    +
    -
    {% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarettes/current/frequency.html b/app/views/prototype_v3/tobacco/cigarettes/current/frequency.html index e0b6763..0cb6319 100644 --- a/app/views/prototype_v3/tobacco/cigarettes/current/frequency.html +++ b/app/views/prototype_v3/tobacco/cigarettes/current/frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} How often do you smoke cigarettes? - NHS @@ -10,14 +10,14 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - +
    +
    + + {{ radios({ idPrefix: "cigarettesCurrentFrequency", name: "cigarettesCurrentFrequency", - value: data["cigarettesCurrentFrequency"], + value: data.cigarettesCurrentFrequency, fieldset: { legend: { text: "How often do you smoke cigarettes?", @@ -53,11 +53,11 @@ } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarettes/current/has-quantity-changed.html b/app/views/prototype_v3/tobacco/cigarettes/current/has-quantity-changed.html index e6a7fd0..ea24da0 100644 --- a/app/views/prototype_v3/tobacco/cigarettes/current/has-quantity-changed.html +++ b/app/views/prototype_v3/tobacco/cigarettes/current/has-quantity-changed.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'checkboxes/macro.njk' import checkboxes %} {% block pageTitle %} Has the number of cigarettes you normally smoke changed over time? - NHS @@ -10,17 +10,17 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - +
    +
    + + {% set frequencyText = "a day" %} {% if data.cigarettesCurrentFrequency == "Weekly" %} {% set frequencyText = "a week" %} {% elif data.cigarettesCurrentFrequency == "Monthly" %} {% set frequencyText = "a month" %} {% endif %} - + {{ checkboxes({ idPrefix: "cigarettesCurrentChanges", name: "cigarettesCurrentChanges", @@ -34,6 +34,7 @@ hint: { text: "Select all that apply" }, + values: data.cigarettesCurrentChanges, items: [ { value: "more", @@ -53,11 +54,11 @@ } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarettes/current/less-duration.html b/app/views/prototype_v3/tobacco/cigarettes/current/less-duration.html index 0000771..d6bb811 100644 --- a/app/views/prototype_v3/tobacco/cigarettes/current/less-duration.html +++ b/app/views/prototype_v3/tobacco/cigarettes/current/less-duration.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarette smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.cigarettesCurrentLessFrequency == "Weekly" %} @@ -38,11 +38,11 @@ }, value: data.cigarettesCurrentLessDuration }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarettes/current/less-frequency.html b/app/views/prototype_v3/tobacco/cigarettes/current/less-frequency.html index a9ae830..0d59915 100644 --- a/app/views/prototype_v3/tobacco/cigarettes/current/less-frequency.html +++ b/app/views/prototype_v3/tobacco/cigarettes/current/less-frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} Cigarette smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.cigarettesCurrentFrequency == "Weekly" %} @@ -28,7 +28,7 @@

    When you smoked fewer than {{ data.cigarettesCurrent {{ radios({ idPrefix: "cigarettesCurrentLessFrequency", name: "cigarettesCurrentLessFrequency", - value: data["cigarettesCurrentLessFrequency"], + value: data.cigarettesCurrentLessFrequency, items: [ { value: "Daily", @@ -57,11 +57,11 @@

    When you smoked fewer than {{ data.cigarettesCurrent } ] }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarettes/current/less-quantity.html b/app/views/prototype_v3/tobacco/cigarettes/current/less-quantity.html index 5de1a7c..6499a7a 100644 --- a/app/views/prototype_v3/tobacco/cigarettes/current/less-quantity.html +++ b/app/views/prototype_v3/tobacco/cigarettes/current/less-quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarette smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set baseFrequencyText = "a day" %} {% if data.cigarettesCurrentFrequency == "Weekly" %} @@ -45,11 +45,11 @@

    When you smoked fewer than {{ data.cigarettesCurrent }, value: data.cigarettesCurrentLessQuantity }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarettes/current/more-duration.html b/app/views/prototype_v3/tobacco/cigarettes/current/more-duration.html index df45539..d188602 100644 --- a/app/views/prototype_v3/tobacco/cigarettes/current/more-duration.html +++ b/app/views/prototype_v3/tobacco/cigarettes/current/more-duration.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarette smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.cigarettesCurrentMoreFrequency == "Weekly" %} @@ -38,11 +38,11 @@ }, value: data.cigarettesCurrentMoreDuration }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarettes/current/more-frequency.html b/app/views/prototype_v3/tobacco/cigarettes/current/more-frequency.html index 1662f1d..9c33c65 100644 --- a/app/views/prototype_v3/tobacco/cigarettes/current/more-frequency.html +++ b/app/views/prototype_v3/tobacco/cigarettes/current/more-frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} Cigarette smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.cigarettesCurrentFrequency == "Weekly" %} @@ -28,7 +28,7 @@

    When you smoked more than {{ data.cigarettesCurrentQ {{ radios({ idPrefix: "cigarettesCurrentMoreFrequency", name: "cigarettesCurrentMoreFrequency", - value: data["cigarettesCurrentMoreFrequency"], + value: data.cigarettesCurrentMoreFrequency, items: [ { value: "Daily", @@ -57,11 +57,11 @@

    When you smoked more than {{ data.cigarettesCurrentQ } ] }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarettes/current/more-quantity.html b/app/views/prototype_v3/tobacco/cigarettes/current/more-quantity.html index 65e9954..e6995bd 100644 --- a/app/views/prototype_v3/tobacco/cigarettes/current/more-quantity.html +++ b/app/views/prototype_v3/tobacco/cigarettes/current/more-quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarette smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set baseFrequencyText = "a day" %} {% if data.cigarettesCurrentFrequency == "Weekly" %} @@ -45,11 +45,11 @@

    When you smoked more than {{ data.cigarettesCurrentQ }, value: data.cigarettesCurrentMoreQuantity }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarettes/current/quantity.html b/app/views/prototype_v3/tobacco/cigarettes/current/quantity.html index f78ac30..6d5af5c 100644 --- a/app/views/prototype_v3/tobacco/cigarettes/current/quantity.html +++ b/app/views/prototype_v3/tobacco/cigarettes/current/quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarette smoking - NHS @@ -10,11 +10,11 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + -

    Cigarette smoking

    +

    Cigarette smoking

    {% set frequencyText = "a day" %} {% if data.cigarettesCurrentFrequency == "Weekly" %} @@ -35,7 +35,7 @@

    Cigarette smoking

    {% endif %} -

    The question on the next page will ask if the number of cigarettes you smoke has changed over time.

    +

    The question on the next page will ask if the number of cigarettes you smoke has changed over time.

    {{ input({ label: { @@ -56,11 +56,11 @@

    Cigarette smoking

    text: "The number of cigarettes smoked must be at least 1" } if data['cigarettesCurrentQuantity-error'] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarettes/current/years-smoked.html b/app/views/prototype_v3/tobacco/cigarettes/current/years-smoked.html index 1d82013..2447ecc 100644 --- a/app/views/prototype_v3/tobacco/cigarettes/current/years-smoked.html +++ b/app/views/prototype_v3/tobacco/cigarettes/current/years-smoked.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarette smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {{ input({ label: { @@ -35,7 +35,7 @@ {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarettes/do-you-currently-smoke.html b/app/views/prototype_v3/tobacco/cigarettes/do-you-currently-smoke.html index b6a32c5..b03451c 100644 --- a/app/views/prototype_v3/tobacco/cigarettes/do-you-currently-smoke.html +++ b/app/views/prototype_v3/tobacco/cigarettes/do-you-currently-smoke.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Do you currently smoke cigarettes - NHS @@ -12,37 +12,37 @@ {% endblock %} {% block content %} -
    -
    -
    - - {{ radios({ - idPrefix: "currentlySmokesCigarettes", - name: "currentlySmokesCigarettes", - value: data["currentlySmokesCigarettes"], - fieldset: { - legend: { - text: "Do you currently smoke cigarettes?", - classes: "nhsuk-fieldset__legend--l", - isPageHeading: true - } - }, - items: [ - { - value: "Yes", - text: "Yes" +
    +
    + + + {{ radios({ + idPrefix: "currentlySmokesCigarettes", + name: "currentlySmokesCigarettes", + value: data.currentlySmokesCigarettes, + fieldset: { + legend: { + text: "Do you currently smoke cigarettes?", + classes: "nhsuk-fieldset__legend--l", + isPageHeading: true + } }, - { - value: "No", - text: "No" - } - ] - }) }} + items: [ + { + value: "Yes", + text: "Yes" + }, + { + value: "No", + text: "No" + } + ] + }) }} - {{ button({ - text: "Continue" - }) }} - + {{ button({ + text: "Continue" + }) }} + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarettes/former/frequency.html b/app/views/prototype_v3/tobacco/cigarettes/former/frequency.html index 5186cdb..a421e4e 100644 --- a/app/views/prototype_v3/tobacco/cigarettes/former/frequency.html +++ b/app/views/prototype_v3/tobacco/cigarettes/former/frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} How often did you smoke cigarettes? - NHS @@ -10,14 +10,14 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - +
    +
    + + {{ radios({ idPrefix: "cigarettesFormerFrequency", name: "cigarettesFormerFrequency", - value: data["cigarettesFormerFrequency"], + value: data.cigarettesFormerFrequency, fieldset: { legend: { text: "How often did you smoke cigarettes?", @@ -53,11 +53,11 @@ } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarettes/former/has-quantity-changed.html b/app/views/prototype_v3/tobacco/cigarettes/former/has-quantity-changed.html index 443d77c..3dd96a6 100644 --- a/app/views/prototype_v3/tobacco/cigarettes/former/has-quantity-changed.html +++ b/app/views/prototype_v3/tobacco/cigarettes/former/has-quantity-changed.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'checkboxes/macro.njk' import checkboxes %} {% block pageTitle %} Did the number of cigarettes you normally smoke change over time? - NHS @@ -10,17 +10,17 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - +
    +
    + + {% set frequencyText = "a day" %} {% if data.cigarettesFormerFrequency == "Weekly" %} {% set frequencyText = "a week" %} {% elif data.cigarettesFormerFrequency == "Monthly" %} {% set frequencyText = "a month" %} {% endif %} - + {{ checkboxes({ idPrefix: "cigarettesFormerChanges", name: "cigarettesFormerChanges", @@ -34,6 +34,7 @@ hint: { text: "Select all that apply" }, + values: data.cigarettesFormerChanges, items: [ { value: "more", @@ -53,11 +54,11 @@ } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarettes/former/less-duration.html b/app/views/prototype_v3/tobacco/cigarettes/former/less-duration.html index 0c268d4..3ae22a2 100644 --- a/app/views/prototype_v3/tobacco/cigarettes/former/less-duration.html +++ b/app/views/prototype_v3/tobacco/cigarettes/former/less-duration.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} When you smoked fewer cigarettes - NHS @@ -10,10 +10,10 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - +
    +
    + + {{ input({ label: { text: "Roughly how many years did you smoke " + data.cigarettesFormerLessQuantity + " cigarettes a day?", @@ -31,11 +31,11 @@ }, value: data.cigarettesFormerLessDuration }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarettes/former/less-frequency.html b/app/views/prototype_v3/tobacco/cigarettes/former/less-frequency.html index 1db3e06..1a685b3 100644 --- a/app/views/prototype_v3/tobacco/cigarettes/former/less-frequency.html +++ b/app/views/prototype_v3/tobacco/cigarettes/former/less-frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} Cigarette smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.cigarettesFormerFrequency == "Weekly" %} @@ -28,7 +28,7 @@

    When you smoked fewer than {{ data.cigarettesFormerQ {{ radios({ idPrefix: "cigarettesFormerLessFrequency", name: "cigarettesFormerLessFrequency", - value: data["cigarettesFormerLessFrequency"], + value: data.cigarettesFormerLessFrequency, items: [ { value: "Daily", @@ -57,11 +57,11 @@

    When you smoked fewer than {{ data.cigarettesFormerQ } ] }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarettes/former/less-quantity.html b/app/views/prototype_v3/tobacco/cigarettes/former/less-quantity.html index 8f775a7..5ec5b28 100644 --- a/app/views/prototype_v3/tobacco/cigarettes/former/less-quantity.html +++ b/app/views/prototype_v3/tobacco/cigarettes/former/less-quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarette smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set baseFrequencyText = "a day" %} {% if data.cigarettesFormerFrequency == "Weekly" %} @@ -45,11 +45,11 @@

    When you smoked fewer than {{ data.cigarettesFormerQ }, value: data.cigarettesFormerLessQuantity }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarettes/former/more-duration.html b/app/views/prototype_v3/tobacco/cigarettes/former/more-duration.html index 3d6c6fb..5f10e5f 100644 --- a/app/views/prototype_v3/tobacco/cigarettes/former/more-duration.html +++ b/app/views/prototype_v3/tobacco/cigarettes/former/more-duration.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarette smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.cigarettesFormerMoreFrequency == "Weekly" %} @@ -38,11 +38,11 @@ }, value: data.cigarettesFormerMoreDuration }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarettes/former/more-frequency.html b/app/views/prototype_v3/tobacco/cigarettes/former/more-frequency.html index 968be82..d95fbf4 100644 --- a/app/views/prototype_v3/tobacco/cigarettes/former/more-frequency.html +++ b/app/views/prototype_v3/tobacco/cigarettes/former/more-frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} Cigarette smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.cigarettesFormerFrequency == "Weekly" %} @@ -28,7 +28,7 @@

    When you smoked more than {{ data.cigarettesFormerQu {{ radios({ idPrefix: "cigarettesFormerMoreFrequency", name: "cigarettesFormerMoreFrequency", - value: data["cigarettesFormerMoreFrequency"], + value: data.cigarettesFormerMoreFrequency, items: [ { value: "Daily", @@ -57,11 +57,11 @@

    When you smoked more than {{ data.cigarettesFormerQu } ] }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarettes/former/more-quantity.html b/app/views/prototype_v3/tobacco/cigarettes/former/more-quantity.html index 8b5e707..1bae261 100644 --- a/app/views/prototype_v3/tobacco/cigarettes/former/more-quantity.html +++ b/app/views/prototype_v3/tobacco/cigarettes/former/more-quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarette smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set baseFrequencyText = "a day" %} {% if data.cigarettesFormerFrequency == "Weekly" %} @@ -45,11 +45,11 @@

    When you smoked more than {{ data.cigarettesFormerQu }, value: data.cigarettesFormerMoreQuantity }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarettes/former/quantity.html b/app/views/prototype_v3/tobacco/cigarettes/former/quantity.html index bcb3c91..287e326 100644 --- a/app/views/prototype_v3/tobacco/cigarettes/former/quantity.html +++ b/app/views/prototype_v3/tobacco/cigarettes/former/quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarette smoking - NHS @@ -10,11 +10,11 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + -

    Cigarette smoking

    +

    Cigarette smoking

    {% set frequencyText = "a day" %} {% if data.cigarettesFormerFrequency == "Weekly" %} @@ -26,7 +26,7 @@

    Cigarette smoking

    {% endif %} -

    The question on the next page will ask if the number of cigarettes you smoked changed over time.

    +

    The question on the next page will ask if the number of cigarettes you smoked changed over time.

    {{ input({ label: { @@ -47,11 +47,11 @@

    Cigarette smoking

    text: "The number of cigarettes smoked must be at least 1" } if data['cigarettesFormerQuantity-error'] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarettes/former/years-smoked.html b/app/views/prototype_v3/tobacco/cigarettes/former/years-smoked.html index 8a9aece..fa48d13 100644 --- a/app/views/prototype_v3/tobacco/cigarettes/former/years-smoked.html +++ b/app/views/prototype_v3/tobacco/cigarettes/former/years-smoked.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarette smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {{ input({ label: { @@ -35,7 +35,7 @@ {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarillos/current/frequency.html b/app/views/prototype_v3/tobacco/cigarillos/current/frequency.html index 5c28b51..5b23896 100644 --- a/app/views/prototype_v3/tobacco/cigarillos/current/frequency.html +++ b/app/views/prototype_v3/tobacco/cigarillos/current/frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} How often do you smoke cigarillos? - NHS @@ -10,14 +10,14 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - +
    +
    + + {{ radios({ idPrefix: "cigarillosCurrentFrequency", name: "cigarillosCurrentFrequency", - value: data["cigarillosCurrentFrequency"], + value: data.cigarillosCurrentFrequency, fieldset: { legend: { text: "How often do you smoke cigarillos?", @@ -53,11 +53,11 @@ } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarillos/current/has-quantity-changed.html b/app/views/prototype_v3/tobacco/cigarillos/current/has-quantity-changed.html index 4aa0d71..a3598db 100644 --- a/app/views/prototype_v3/tobacco/cigarillos/current/has-quantity-changed.html +++ b/app/views/prototype_v3/tobacco/cigarillos/current/has-quantity-changed.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'checkboxes/macro.njk' import checkboxes %} {% block pageTitle %} Has the number of cigarillos you normally smoke changed over time? - NHS @@ -10,17 +10,17 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - +
    +
    + + {% set frequencyText = "a day" %} {% if data.cigarillosCurrentFrequency == "Weekly" %} {% set frequencyText = "a week" %} {% elif data.cigarillosCurrentFrequency == "Monthly" %} {% set frequencyText = "a month" %} {% endif %} - + {{ checkboxes({ idPrefix: "cigarillosCurrentChanges", name: "cigarillosCurrentChanges", @@ -34,6 +34,7 @@ hint: { text: "Select all that apply" }, + values: data.cigarillosCurrentChanges, items: [ { value: "more", @@ -53,11 +54,11 @@ } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarillos/current/less-duration.html b/app/views/prototype_v3/tobacco/cigarillos/current/less-duration.html index 3d94bfe..6219f51 100644 --- a/app/views/prototype_v3/tobacco/cigarillos/current/less-duration.html +++ b/app/views/prototype_v3/tobacco/cigarillos/current/less-duration.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarillo smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.cigarillosCurrentLessFrequency == "Weekly" %} @@ -38,11 +38,11 @@ }, value: data.cigarillosCurrentLessDuration }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarillos/current/less-frequency.html b/app/views/prototype_v3/tobacco/cigarillos/current/less-frequency.html index 31224b2..8f55274 100644 --- a/app/views/prototype_v3/tobacco/cigarillos/current/less-frequency.html +++ b/app/views/prototype_v3/tobacco/cigarillos/current/less-frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} Cigarillo smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.cigarillosCurrentFrequency == "Weekly" %} @@ -28,7 +28,7 @@

    When you smoked fewer than {{ data.cigarillosCurrent {{ radios({ idPrefix: "cigarillosCurrentLessFrequency", name: "cigarillosCurrentLessFrequency", - value: data["cigarillosCurrentLessFrequency"], + value: data.cigarillosCurrentLessFrequency, items: [ { value: "Daily", @@ -57,11 +57,11 @@

    When you smoked fewer than {{ data.cigarillosCurrent } ] }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarillos/current/less-quantity.html b/app/views/prototype_v3/tobacco/cigarillos/current/less-quantity.html index 552c869..a4d8e47 100644 --- a/app/views/prototype_v3/tobacco/cigarillos/current/less-quantity.html +++ b/app/views/prototype_v3/tobacco/cigarillos/current/less-quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarillo smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set baseFrequencyText = "a day" %} {% if data.cigarillosCurrentFrequency == "Weekly" %} @@ -45,11 +45,11 @@

    When you smoked fewer than {{ data.cigarillosCurrent }, value: data.cigarillosCurrentLessQuantity }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarillos/current/more-duration.html b/app/views/prototype_v3/tobacco/cigarillos/current/more-duration.html index 7de6cbf..9d6f7dd 100644 --- a/app/views/prototype_v3/tobacco/cigarillos/current/more-duration.html +++ b/app/views/prototype_v3/tobacco/cigarillos/current/more-duration.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarillo smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.cigarillosCurrentMoreFrequency == "Weekly" %} @@ -38,11 +38,11 @@ }, value: data.cigarillosCurrentMoreDuration }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarillos/current/more-frequency.html b/app/views/prototype_v3/tobacco/cigarillos/current/more-frequency.html index 11e8468..0786538 100644 --- a/app/views/prototype_v3/tobacco/cigarillos/current/more-frequency.html +++ b/app/views/prototype_v3/tobacco/cigarillos/current/more-frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} Cigarillo smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.cigarillosCurrentFrequency == "Weekly" %} @@ -28,7 +28,7 @@

    When you smoked more than {{ data.cigarillosCurrentQ {{ radios({ idPrefix: "cigarillosCurrentMoreFrequency", name: "cigarillosCurrentMoreFrequency", - value: data["cigarillosCurrentMoreFrequency"], + value: data.cigarillosCurrentMoreFrequency, items: [ { value: "Daily", @@ -57,11 +57,11 @@

    When you smoked more than {{ data.cigarillosCurrentQ } ] }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarillos/current/more-quantity.html b/app/views/prototype_v3/tobacco/cigarillos/current/more-quantity.html index 6683f81..2c4cc22 100644 --- a/app/views/prototype_v3/tobacco/cigarillos/current/more-quantity.html +++ b/app/views/prototype_v3/tobacco/cigarillos/current/more-quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarillo smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set baseFrequencyText = "a day" %} {% if data.cigarillosCurrentFrequency == "Weekly" %} @@ -45,11 +45,11 @@

    When you smoked more than {{ data.cigarillosCurrentQ }, value: data.cigarillosCurrentMoreQuantity }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarillos/current/quantity.html b/app/views/prototype_v3/tobacco/cigarillos/current/quantity.html index 81b228e..297d3d5 100644 --- a/app/views/prototype_v3/tobacco/cigarillos/current/quantity.html +++ b/app/views/prototype_v3/tobacco/cigarillos/current/quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarillo smoking - NHS @@ -10,11 +10,11 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + -

    Cigarillo smoking

    +

    Cigarillo smoking

    {% set frequencyText = "a day" %} {% if data.cigarillosCurrentFrequency == "Weekly" %} @@ -35,7 +35,7 @@

    Cigarillo smoking

    {% endif %} -

    The question on the next page will ask if the number of cigarillos you smoke has changed over time.

    +

    The question on the next page will ask if the number of cigarillos you smoke has changed over time.

    {{ input({ label: { @@ -56,11 +56,11 @@

    Cigarillo smoking

    text: "The number of cigarillos smoked must be at least 1" } if data['cigarillosCurrentQuantity-error'] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarillos/current/years-smoked.html b/app/views/prototype_v3/tobacco/cigarillos/current/years-smoked.html index c8334cd..923c5c5 100644 --- a/app/views/prototype_v3/tobacco/cigarillos/current/years-smoked.html +++ b/app/views/prototype_v3/tobacco/cigarillos/current/years-smoked.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarillo smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {{ input({ label: { @@ -35,7 +35,7 @@ {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarillos/do-you-currently-smoke.html b/app/views/prototype_v3/tobacco/cigarillos/do-you-currently-smoke.html index 9517d38..8e45640 100644 --- a/app/views/prototype_v3/tobacco/cigarillos/do-you-currently-smoke.html +++ b/app/views/prototype_v3/tobacco/cigarillos/do-you-currently-smoke.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Do you currently smoke cigarillos - NHS @@ -12,37 +12,37 @@ {% endblock %} {% block content %} -
    -
    -
    - - {{ radios({ - idPrefix: "currentlySmokesCigarillos", - name: "currentlySmokesCigarillos", - value: data["currentlySmokesCigarillos"], - fieldset: { - legend: { - text: "Do you currently smoke cigarillos?", - classes: "nhsuk-fieldset__legend--l", - isPageHeading: true - } - }, - items: [ - { - value: "Yes", - text: "Yes" +
    +
    + + + {{ radios({ + idPrefix: "currentlySmokesCigarillos", + name: "currentlySmokesCigarillos", + value: data.currentlySmokesCigarillos, + fieldset: { + legend: { + text: "Do you currently smoke cigarillos?", + classes: "nhsuk-fieldset__legend--l", + isPageHeading: true + } }, - { - value: "No", - text: "No" - } - ] - }) }} + items: [ + { + value: "Yes", + text: "Yes" + }, + { + value: "No", + text: "No" + } + ] + }) }} - {{ button({ - text: "Continue" - }) }} - + {{ button({ + text: "Continue" + }) }} + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarillos/former/frequency.html b/app/views/prototype_v3/tobacco/cigarillos/former/frequency.html index 88f0148..f093a88 100644 --- a/app/views/prototype_v3/tobacco/cigarillos/former/frequency.html +++ b/app/views/prototype_v3/tobacco/cigarillos/former/frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} How often did you smoke cigarillos? - NHS @@ -10,14 +10,14 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - +
    +
    + + {{ radios({ idPrefix: "cigarillosFormerFrequency", name: "cigarillosFormerFrequency", - value: data["cigarillosFormerFrequency"], + value: data.cigarillosFormerFrequency, fieldset: { legend: { text: "How often did you smoke cigarillos?", @@ -53,11 +53,11 @@ } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarillos/former/has-quantity-changed.html b/app/views/prototype_v3/tobacco/cigarillos/former/has-quantity-changed.html index cd2c2c5..e652cf4 100644 --- a/app/views/prototype_v3/tobacco/cigarillos/former/has-quantity-changed.html +++ b/app/views/prototype_v3/tobacco/cigarillos/former/has-quantity-changed.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'checkboxes/macro.njk' import checkboxes %} {% block pageTitle %} Did the number of cigarillos you normally smoke change over time? - NHS @@ -10,17 +10,17 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - +
    +
    + + {% set frequencyText = "a day" %} {% if data.cigarillosFormerFrequency == "Weekly" %} {% set frequencyText = "a week" %} {% elif data.cigarillosFormerFrequency == "Monthly" %} {% set frequencyText = "a month" %} {% endif %} - + {{ checkboxes({ idPrefix: "cigarillosFormerChanges", name: "cigarillosFormerChanges", @@ -34,6 +34,7 @@ hint: { text: "Select all that apply" }, + values: data.cigarillosFormerChanges, items: [ { value: "more", @@ -53,11 +54,11 @@ } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarillos/former/less-duration.html b/app/views/prototype_v3/tobacco/cigarillos/former/less-duration.html index cd01405..bf58ed8 100644 --- a/app/views/prototype_v3/tobacco/cigarillos/former/less-duration.html +++ b/app/views/prototype_v3/tobacco/cigarillos/former/less-duration.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarillo smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.cigarillosFormerLessFrequency == "Weekly" %} @@ -38,11 +38,11 @@ }, value: data.cigarillosFormerLessDuration }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarillos/former/less-frequency.html b/app/views/prototype_v3/tobacco/cigarillos/former/less-frequency.html index 3873e06..abc7efe 100644 --- a/app/views/prototype_v3/tobacco/cigarillos/former/less-frequency.html +++ b/app/views/prototype_v3/tobacco/cigarillos/former/less-frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} Cigarillo smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.cigarillosFormerFrequency == "Weekly" %} @@ -28,7 +28,7 @@

    When you smoked fewer than {{ data.cigarillosFormerQ {{ radios({ idPrefix: "cigarillosFormerLessFrequency", name: "cigarillosFormerLessFrequency", - value: data["cigarillosFormerLessFrequency"], + value: data.cigarillosFormerLessFrequency, items: [ { value: "Daily", @@ -57,11 +57,11 @@

    When you smoked fewer than {{ data.cigarillosFormerQ } ] }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarillos/former/less-quantity.html b/app/views/prototype_v3/tobacco/cigarillos/former/less-quantity.html index afb8571..bef122f 100644 --- a/app/views/prototype_v3/tobacco/cigarillos/former/less-quantity.html +++ b/app/views/prototype_v3/tobacco/cigarillos/former/less-quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarillo smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set baseFrequencyText = "a day" %} {% if data.cigarillosFormerFrequency == "Weekly" %} @@ -45,11 +45,11 @@

    When you smoked fewer than {{ data.cigarillosFormerQ }, value: data.cigarillosFormerLessQuantity }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarillos/former/more-duration.html b/app/views/prototype_v3/tobacco/cigarillos/former/more-duration.html index 7e959b6..ee8fede 100644 --- a/app/views/prototype_v3/tobacco/cigarillos/former/more-duration.html +++ b/app/views/prototype_v3/tobacco/cigarillos/former/more-duration.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarillo smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.cigarillosFormerMoreFrequency == "Weekly" %} @@ -38,11 +38,11 @@ }, value: data.cigarillosFormerMoreDuration }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarillos/former/more-frequency.html b/app/views/prototype_v3/tobacco/cigarillos/former/more-frequency.html index 807907b..e8c786d 100644 --- a/app/views/prototype_v3/tobacco/cigarillos/former/more-frequency.html +++ b/app/views/prototype_v3/tobacco/cigarillos/former/more-frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} Cigarillo smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.cigarillosFormerFrequency == "Weekly" %} @@ -28,7 +28,7 @@

    When you smoked more than {{ data.cigarillosFormerQu {{ radios({ idPrefix: "cigarillosFormerMoreFrequency", name: "cigarillosFormerMoreFrequency", - value: data["cigarillosFormerMoreFrequency"], + value: data.cigarillosFormerMoreFrequency, items: [ { value: "Daily", @@ -57,11 +57,11 @@

    When you smoked more than {{ data.cigarillosFormerQu } ] }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarillos/former/more-quantity.html b/app/views/prototype_v3/tobacco/cigarillos/former/more-quantity.html index 75a9439..fe3d0b3 100644 --- a/app/views/prototype_v3/tobacco/cigarillos/former/more-quantity.html +++ b/app/views/prototype_v3/tobacco/cigarillos/former/more-quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarillo smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set baseFrequencyText = "a day" %} {% if data.cigarillosFormerFrequency == "Weekly" %} @@ -45,11 +45,11 @@

    When you smoked more than {{ data.cigarillosFormerQu }, value: data.cigarillosFormerMoreQuantity }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarillos/former/quantity.html b/app/views/prototype_v3/tobacco/cigarillos/former/quantity.html index 9bad2d4..4ea7cbf 100644 --- a/app/views/prototype_v3/tobacco/cigarillos/former/quantity.html +++ b/app/views/prototype_v3/tobacco/cigarillos/former/quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarillo smoking - NHS @@ -10,11 +10,11 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + -

    Cigarillo smoking

    +

    Cigarillo smoking

    {% set frequencyText = "a day" %} {% if data.cigarillosFormerFrequency == "Weekly" %} @@ -26,7 +26,7 @@

    Cigarillo smoking

    {% endif %} -

    The question on the next page will ask if the number of cigarillos you smoked changed over time.

    +

    The question on the next page will ask if the number of cigarillos you smoked changed over time.

    {{ input({ label: { @@ -47,11 +47,11 @@

    Cigarillo smoking

    text: "The number of cigarillos smoked must be at least 1" } if data['cigarillosFormerQuantity-error'] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigarillos/former/years-smoked.html b/app/views/prototype_v3/tobacco/cigarillos/former/years-smoked.html index a01c88c..1bf7fd1 100644 --- a/app/views/prototype_v3/tobacco/cigarillos/former/years-smoked.html +++ b/app/views/prototype_v3/tobacco/cigarillos/former/years-smoked.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Cigarillo smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {{ input({ label: { @@ -35,7 +35,7 @@ {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/current/cigar-size.html b/app/views/prototype_v3/tobacco/cigars/current/cigar-size.html index f801dcc..11725d4 100644 --- a/app/views/prototype_v3/tobacco/cigars/current/cigar-size.html +++ b/app/views/prototype_v3/tobacco/cigars/current/cigar-size.html @@ -1,66 +1,67 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} -{% if data["smokedRegularly"] == "Yes-currently" %} +{% if data.smokedRegularly == "Yes-currently" %} {% set questionText = "What size cigar do you normally smoke?" %} {% else %} {% set questionText = "What size cigar did you normally smoke?" %} {% endif %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + - {{ checkboxes({ - "idPrefix": "cigarSize", - "name": "cigarSize", - "fieldset": { - "legend": { - "text": questionText, - "classes": "nhsuk-fieldset__legend--l", - "isPageHeading": true - } - }, - "hint": { - "text": "Select all that apply" - }, - "items": [ - { - "value": "Small", - "text": "Small", - "hint": { - "text": "Petit Corona or Short Panetela, usually 4 to 5 inches long" + {{ checkboxes({ + idPrefix: "cigarSize", + name: "cigarSize", + fieldset: { + legend: { + text: questionText, + classes: "nhsuk-fieldset__legend--l", + isPageHeading: true } }, - { - "value": "Medium", - "text": "Medium", - "hint": { - "text": "Robusto or Corona, usually 5 to 6 inches long" - } + hint: { + text: "Select all that apply" }, - { - "value": "Large", - "text": "Large", - "hint": { - "text": "Churchill or Double Corona, usually 7 to 8 inches long" + values: data.cigarSize, + items: [ + { + value: "Small", + text: "Small", + hint: { + text: "Petit Corona or Short Panetela, usually 4 to 5 inches long" + } + }, + { + value: "Medium", + text: "Medium", + hint: { + text: "Robusto or Corona, usually 5 to 6 inches long" + } + }, + { + value: "Large", + text: "Large", + hint: { + text: "Churchill or Double Corona, usually 7 to 8 inches long" + } } - } - ] - }) }} + ] + }) }} - {{ button({ - "text": "Continue" - }) }} + {{ button({ + text: "Continue" + }) }} - + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/current/frequency.html b/app/views/prototype_v3/tobacco/cigars/current/frequency.html index 24dac09..2039123 100644 --- a/app/views/prototype_v3/tobacco/cigars/current/frequency.html +++ b/app/views/prototype_v3/tobacco/cigars/current/frequency.html @@ -1,7 +1,7 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} -{% set sizeName = (data['currentCigarSize'] | lower + " ") if data['currentCigarSize'] else "" %} +{% set sizeName = (data.currentCigarSize | lower + " ") if data.currentCigarSize else "" %} {% block pageTitle %} How often do you smoke {{ sizeName }}cigars? - NHS @@ -13,14 +13,14 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {{ radios({ idPrefix: "cigarsCurrentFrequency", name: "cigarsCurrentFrequency", - value: data["cigarsCurrentFrequency"], + value: data.cigarsCurrentFrequency, fieldset: { legend: { text: "How often do you smoke " + sizeName + "cigars?", @@ -56,11 +56,11 @@ } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/current/has-quantity-changed.html b/app/views/prototype_v3/tobacco/cigars/current/has-quantity-changed.html index be66917..7df2aac 100644 --- a/app/views/prototype_v3/tobacco/cigars/current/has-quantity-changed.html +++ b/app/views/prototype_v3/tobacco/cigars/current/has-quantity-changed.html @@ -1,13 +1,13 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {# Get current size being processed #} -{% set currentSize = data["currentCigarSize"] or "Small" %} +{% set currentSize = data.currentCigarSize or "Small" %} {# Get baseline quantity for THIS size #} {% set baselineQuantity = data["cigar" + currentSize + "Quantity"] %} {# Get frequency (shared across all sizes) #} -{% set frequency = data["cigarsCurrentFrequency"] or data["cigarsFormerFrequency"] %} +{% set frequency = data.cigarsCurrentFrequency or data.cigarsFormerFrequency %} {# Set frequency-based time period #} {% if frequency == "Daily" %} @@ -41,7 +41,7 @@ {% set baselineText = baselineQuantity + " " + sizePlural + " " + timePeriod %} {% endif %} -{% if data["smokedRegularly"] == "Yes-currently" %} +{% if data.smokedRegularly == "Yes-currently" %} {% set questionText = "Has the number of " + sizePlural + " you normally smoke changed over time?" %} {% set fieldName = "cigar" + currentSize + "Changes" %} {% else %} @@ -50,55 +50,56 @@ {% endif %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + - {{ checkboxes({ - "idPrefix": fieldName, - "name": fieldName, - "fieldset": { - "legend": { - "text": questionText, - "classes": "nhsuk-fieldset__legend--l", - "isPageHeading": true - } - }, - "hint": { - "text": "Select all that apply" - }, - "items": [ - { - "value": "more", - "text": "Yes, I used to smoke more than " + baselineText + {{ checkboxes({ + idPrefix: fieldName, + name: fieldName, + fieldset: { + legend: { + text: questionText, + classes: "nhsuk-fieldset__legend--l", + isPageHeading: true + } }, - { - "value": "less", - "text": "Yes, I used to smoke fewer than " + baselineText + hint: { + text: "Select all that apply" }, - { - "divider": "or" - }, - { - "value": "No", - "text": "No, it has not changed", - "behaviour": "exclusive" - } - ] - }) }} + values: data[fieldName], + items: [ + { + value: "more", + text: "Yes, I used to smoke more than " + baselineText + }, + { + value: "less", + text: "Yes, I used to smoke fewer than " + baselineText + }, + { + divider: "or" + }, + { + value: "No", + text: "No, it has not changed", + behaviour: "exclusive" + } + ] + }) }} - {{ button({ - "text": "Continue" - }) }} + {{ button({ + text: "Continue" + }) }} - + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/current/less-duration.html b/app/views/prototype_v3/tobacco/cigars/current/less-duration.html index b2fee17..3936265 100644 --- a/app/views/prototype_v3/tobacco/cigars/current/less-duration.html +++ b/app/views/prototype_v3/tobacco/cigars/current/less-duration.html @@ -1,7 +1,7 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {# Get the current size being processed #} -{% set currentSize = data["currentCigarSize"] or "small" %} +{% set currentSize = data.currentCigarSize or "small" %} {% set sizeLower = currentSize | lower %} {# Set size-specific text #} @@ -33,47 +33,47 @@ {# Create the fewer text #} {% set fewerText = fewerQuantity + " " + (sizePlural if fewerQuantity != "1" else sizePlural | replace("cigars", "cigar")) + " " + timePeriod %} -{% if data["smokedRegularly"] == "Yes-currently" %} +{% if data.smokedRegularly == "Yes-currently" %} {% set questionText = "Roughly how many years did you smoke " + fewerText + "?" %} {% else %} {% set questionText = "Roughly how many years did you smoke " + fewerText + "?" %} {% endif %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + - {{ input({ - "label": { - "text": questionText, - "classes": "nhsuk-label--l", - "isPageHeading": true - }, - "hint": { - "text": "Give an estimate if you are not sure" - }, - "id": "cigar" + currentSize + "FewerDuration", - "name": "cigar" + currentSize + "FewerDuration", - "classes": "nhsuk-input--width-3", - "suffix": { - "text": "years" - }, - "value": data["cigar" + currentSize + "FewerDuration"] - }) }} + {{ input({ + label: { + text: questionText, + classes: "nhsuk-label--l", + isPageHeading: true + }, + hint: { + text: "Give an estimate if you are not sure" + }, + id: "cigar" + currentSize + "FewerDuration", + name: "cigar" + currentSize + "FewerDuration", + classes: "nhsuk-input--width-3", + suffix: { + text: "years" + }, + value: data["cigar" + currentSize + "FewerDuration"] + }) }} - {{ button({ - "text": "Continue" - }) }} + {{ button({ + text: "Continue" + }) }} - + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/current/less-frequency.html b/app/views/prototype_v3/tobacco/cigars/current/less-frequency.html index 2f44f67..86b587b 100644 --- a/app/views/prototype_v3/tobacco/cigars/current/less-frequency.html +++ b/app/views/prototype_v3/tobacco/cigars/current/less-frequency.html @@ -1,7 +1,7 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {# Get the current size being processed #} -{% set currentSize = data["currentCigarSize"] or "small" %} +{% set currentSize = data.currentCigarSize or "small" %} {% set sizeLower = currentSize | lower %} {# Set size-specific text #} @@ -33,68 +33,69 @@ {# Create the baseline text #} {% set baselineText = baselineQuantity + " " + (sizePlural if baselineQuantity != "1" else sizePlural | replace("cigars", "cigar")) + " " + timePeriod %} -{% if data["smokedRegularly"] == "Yes-currently" %} +{% if data.smokedRegularly == "Yes-currently" %} {% set questionText = "When you smoked fewer than " + baselineText + ", how often did you smoke " + sizePlural + "?" %} {% else %} {% set questionText = "When you smoked fewer than " + baselineText + ", how often did you smoke " + sizePlural + "?" %} {% endif %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + - {{ radios({ - "idPrefix": "cigar" + currentSize + "FewerFrequency", - "name": "cigar" + currentSize + "FewerFrequency", - "fieldset": { - "legend": { - "text": questionText, - "classes": "nhsuk-fieldset__legend--l", - "isPageHeading": true - } - }, - "items": [ - { - "value": "Daily", - "text": "Daily" - }, - { - "value": "Weekly", - "text": "Weekly", - "hint": { - "text": "For example, on the weekend" - } - }, - { - "value": "Monthly", - "text": "Monthly", - "hint": { - "text": "Select this option if you smoked at least once a month" + {{ radios({ + idPrefix: "cigar" + currentSize + "FewerFrequency", + name: "cigar" + currentSize + "FewerFrequency", + value: data["cigar" + currentSize + "FewerFrequency"], + fieldset: { + legend: { + text: questionText, + classes: "nhsuk-fieldset__legend--l", + isPageHeading: true } }, - { - "value": "Yearly", - "text": "Yearly", - "hint": { - "text": "For example, 2 to 3 times a year or fewer" + items: [ + { + value: "Daily", + text: "Daily" + }, + { + value: "Weekly", + text: "Weekly", + hint: { + text: "For example, on the weekend" + } + }, + { + value: "Monthly", + text: "Monthly", + hint: { + text: "Select this option if you smoked at least once a month" + } + }, + { + value: "Yearly", + text: "Yearly", + hint: { + text: "For example, 2 to 3 times a year or fewer" + } } - } - ] - }) }} + ] + }) }} - {{ button({ - "text": "Continue" - }) }} + {{ button({ + text: "Continue" + }) }} - + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/current/less-quantity.html b/app/views/prototype_v3/tobacco/cigars/current/less-quantity.html index 457036c..1668305 100644 --- a/app/views/prototype_v3/tobacco/cigars/current/less-quantity.html +++ b/app/views/prototype_v3/tobacco/cigars/current/less-quantity.html @@ -1,7 +1,7 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {# Get the current size being processed #} -{% set currentSize = data["currentCigarSize"] or "small" %} +{% set currentSize = data.currentCigarSize or "small" %} {% set sizeLower = currentSize | lower %} {# Set size-specific text #} @@ -47,47 +47,47 @@ {% set timePeriod = "day" %} {% endif %} -{% if data["smokedRegularly"] == "Yes-currently" %} +{% if data.smokedRegularly == "Yes-currently" %} {% set questionText = "When you smoked fewer than " + baselineText + ", roughly how many " + sizePlural + " did you normally smoke a " + timePeriod + "?" %} {% else %} {% set questionText = "When you smoked fewer than " + baselineText + ", roughly how many " + sizePlural + " did you normally smoke a " + timePeriod + "?" %} {% endif %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + - {{ input({ - "label": { - "text": questionText, - "classes": "nhsuk-label--l", - "isPageHeading": true - }, - "hint": { - "text": "Give an estimate if you are not sure" - }, - "id": "cigar" + currentSize + "FewerQuantity", - "name": "cigar" + currentSize + "FewerQuantity", - "classes": "nhsuk-input--width-3", - "suffix": { - "text": sizePlural - }, - "value": data["cigar" + currentSize + "FewerQuantity"] - }) }} + {{ input({ + label: { + text: questionText, + classes: "nhsuk-label--l", + isPageHeading: true + }, + hint: { + text: "Give an estimate if you are not sure" + }, + id: "cigar" + currentSize + "FewerQuantity", + name: "cigar" + currentSize + "FewerQuantity", + classes: "nhsuk-input--width-3", + suffix: { + text: sizePlural + }, + value: data["cigar" + currentSize + "FewerQuantity"] + }) }} - {{ button({ - "text": "Continue" - }) }} + {{ button({ + text: "Continue" + }) }} - + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/current/more-duration.html b/app/views/prototype_v3/tobacco/cigars/current/more-duration.html index a1154d9..5b309aa 100644 --- a/app/views/prototype_v3/tobacco/cigars/current/more-duration.html +++ b/app/views/prototype_v3/tobacco/cigars/current/more-duration.html @@ -1,7 +1,7 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {# Get the current size being processed #} -{% set currentSize = data["currentCigarSize"] or "small" %} +{% set currentSize = data.currentCigarSize or "small" %} {% set sizeLower = currentSize | lower %} {# Set size-specific text #} @@ -33,47 +33,47 @@ {# Create the more text #} {% set moreText = moreQuantity + " " + (sizePlural if moreQuantity != "1" else sizePlural | replace("cigars", "cigar")) + " " + timePeriod %} -{% if data["smokedRegularly"] == "Yes-currently" %} +{% if data.smokedRegularly == "Yes-currently" %} {% set questionText = "Roughly how many years did you smoke " + moreText + "?" %} {% else %} {% set questionText = "Roughly how many years did you smoke " + moreText + "?" %} {% endif %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + - {{ input({ - "label": { - "text": questionText, - "classes": "nhsuk-label--l", - "isPageHeading": true - }, - "hint": { - "text": "Give an estimate if you are not sure" - }, - "id": "cigar" + currentSize + "MoreDuration", - "name": "cigar" + currentSize + "MoreDuration", - "classes": "nhsuk-input--width-3", - "suffix": { - "text": "years" - }, - "value": data["cigar" + currentSize + "MoreDuration"] - }) }} + {{ input({ + label: { + text: questionText, + classes: "nhsuk-label--l", + isPageHeading: true + }, + hint: { + text: "Give an estimate if you are not sure" + }, + id: "cigar" + currentSize + "MoreDuration", + name: "cigar" + currentSize + "MoreDuration", + classes: "nhsuk-input--width-3", + suffix: { + text: "years" + }, + value: data["cigar" + currentSize + "MoreDuration"] + }) }} - {{ button({ - "text": "Continue" - }) }} + {{ button({ + text: "Continue" + }) }} - + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/current/more-frequency.html b/app/views/prototype_v3/tobacco/cigars/current/more-frequency.html index a200571..410e623 100644 --- a/app/views/prototype_v3/tobacco/cigars/current/more-frequency.html +++ b/app/views/prototype_v3/tobacco/cigars/current/more-frequency.html @@ -1,7 +1,7 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {# Get the current size being processed #} -{% set currentSize = data["currentCigarSize"] or "small" %} +{% set currentSize = data.currentCigarSize or "small" %} {% set sizeLower = currentSize | lower %} {# Set size-specific text #} @@ -33,68 +33,69 @@ {# Create the baseline text #} {% set baselineText = baselineQuantity + " " + (sizePlural if baselineQuantity != "1" else sizePlural | replace("cigars", "cigar")) + " " + timePeriod %} -{% if data["smokedRegularly"] == "Yes-currently" %} +{% if data.smokedRegularly == "Yes-currently" %} {% set questionText = "When you smoked more than " + baselineText + ", how often did you smoke " + sizePlural + "?" %} {% else %} {% set questionText = "When you smoked more than " + baselineText + ", how often did you smoke " + sizePlural + "?" %} {% endif %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + - {{ radios({ - "idPrefix": "cigar" + currentSize + "MoreFrequency", - "name": "cigar" + currentSize + "MoreFrequency", - "fieldset": { - "legend": { - "text": questionText, - "classes": "nhsuk-fieldset__legend--l", - "isPageHeading": true - } - }, - "items": [ - { - "value": "Daily", - "text": "Daily" - }, - { - "value": "Weekly", - "text": "Weekly", - "hint": { - "text": "For example, on the weekend" - } - }, - { - "value": "Monthly", - "text": "Monthly", - "hint": { - "text": "Select this option if you smoked at least once a month" + {{ radios({ + idPrefix: "cigar" + currentSize + "MoreFrequency", + name: "cigar" + currentSize + "MoreFrequency", + value: data["cigar" + currentSize + "MoreFrequency"], + fieldset: { + legend: { + text: questionText, + classes: "nhsuk-fieldset__legend--l", + isPageHeading: true } }, - { - "value": "Yearly", - "text": "Yearly", - "hint": { - "text": "For example, 2 to 3 times a year or fewer" + items: [ + { + value: "Daily", + text: "Daily" + }, + { + value: "Weekly", + text: "Weekly", + hint: { + text: "For example, on the weekend" + } + }, + { + value: "Monthly", + text: "Monthly", + hint: { + text: "Select this option if you smoked at least once a month" + } + }, + { + value: "Yearly", + text: "Yearly", + hint: { + text: "For example, 2 to 3 times a year or fewer" + } } - } - ] - }) }} + ] + }) }} - {{ button({ - "text": "Continue" - }) }} + {{ button({ + text: "Continue" + }) }} - + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/current/more-quantity.html b/app/views/prototype_v3/tobacco/cigars/current/more-quantity.html index baee47b..ecaf15a 100644 --- a/app/views/prototype_v3/tobacco/cigars/current/more-quantity.html +++ b/app/views/prototype_v3/tobacco/cigars/current/more-quantity.html @@ -1,7 +1,7 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {# Get the current size being processed #} -{% set currentSize = data["currentCigarSize"] or "small" %} +{% set currentSize = data.currentCigarSize or "small" %} {% set sizeLower = currentSize | lower %} {# Set size-specific text #} @@ -47,47 +47,47 @@ {% set timePeriod = "day" %} {% endif %} -{% if data["smokedRegularly"] == "Yes-currently" %} +{% if data.smokedRegularly == "Yes-currently" %} {% set questionText = "When you smoked more than " + baselineText + ", roughly how many " + sizePlural + " did you normally smoke a " + timePeriod + "?" %} {% else %} {% set questionText = "When you smoked more than " + baselineText + ", roughly how many " + sizePlural + " did you normally smoke a " + timePeriod + "?" %} {% endif %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + - {{ input({ - "label": { - "text": questionText, - "classes": "nhsuk-label--l", - "isPageHeading": true - }, - "hint": { - "text": "Give an estimate if you are not sure" - }, - "id": "cigar" + currentSize + "MoreQuantity", - "name": "cigar" + currentSize + "MoreQuantity", - "classes": "nhsuk-input--width-3", - "suffix": { - "text": sizePlural - }, - "value": data["cigar" + currentSize + "MoreQuantity"] - }) }} + {{ input({ + label: { + text: questionText, + classes: "nhsuk-label--l", + isPageHeading: true + }, + hint: { + text: "Give an estimate if you are not sure" + }, + id: "cigar" + currentSize + "MoreQuantity", + name: "cigar" + currentSize + "MoreQuantity", + classes: "nhsuk-input--width-3", + suffix: { + text: sizePlural + }, + value: data["cigar" + currentSize + "MoreQuantity"] + }) }} - {{ button({ - "text": "Continue" - }) }} + {{ button({ + text: "Continue" + }) }} - + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/current/quantity.html b/app/views/prototype_v3/tobacco/cigars/current/quantity.html index c386d6e..335db24 100644 --- a/app/views/prototype_v3/tobacco/cigars/current/quantity.html +++ b/app/views/prototype_v3/tobacco/cigars/current/quantity.html @@ -1,7 +1,7 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {# Get the current size being processed #} -{% set currentSize = data["currentCigarSize"] or "small" %} +{% set currentSize = data.currentCigarSize or "small" %} {% set sizeLower = currentSize | lower %} {# Set size-specific text #} @@ -30,7 +30,7 @@ {% set timePeriod = "day" %} {% endif %} -{% if data["smokedRegularly"] == "Yes-currently" %} +{% if data.smokedRegularly == "Yes-currently" %} {% set pageHeading = (currentSize | capitalize) + " cigar smoking" %} {% set questionText = "Roughly how many " + sizePlural + " do you currently smoke in a normal " + timePeriod + "?" %} {% else %} @@ -39,46 +39,46 @@ {% endif %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} -
    -
    -
    - -

    {{ pageHeading }}

    - -

    The question on the next page will ask if the number of {{ sizePlural }} you smoke has changed over time.

    +
    +
    + - {{ input({ - "label": { - "text": questionText, - "classes": "nhsuk-label--m" - }, - "hint": { - "text": "Give an estimate if you are not sure" - }, - "id": "cigar" + currentSize + "Quantity", - "name": "cigar" + currentSize + "Quantity", - "classes": "nhsuk-input--width-3", - "suffix": { - "text": sizePlural - }, - "value": data["cigar" + currentSize + "Quantity"], - "errorMessage": { - "text": "The number of " + sizePlural + " smoked must be at least 1" - } if data["cigar" + currentSize + "Quantity-error"] - }) }} +

    {{ pageHeading }}

    - {{ button({ - "text": "Continue" - }) }} +

    The question on the next page will ask if the number of {{ sizePlural }} you smoke has changed over time.

    - + {{ input({ + label: { + text: questionText, + classes: "nhsuk-label--m" + }, + hint: { + text: "Give an estimate if you are not sure" + }, + id: "cigar" + currentSize + "Quantity", + name: "cigar" + currentSize + "Quantity", + classes: "nhsuk-input--width-3", + suffix: { + text: sizePlural + }, + value: data["cigar" + currentSize + "Quantity"], + errorMessage: { + text: "The number of " + sizePlural + " smoked must be at least 1" + } if data["cigar" + currentSize + "Quantity-error"] + }) }} + + {{ button({ + text: "Continue" + }) }} + + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/current/years-smoked.html b/app/views/prototype_v3/tobacco/cigars/current/years-smoked.html index cd83fec..1a4ff56 100644 --- a/app/views/prototype_v3/tobacco/cigars/current/years-smoked.html +++ b/app/views/prototype_v3/tobacco/cigars/current/years-smoked.html @@ -1,7 +1,7 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} -{% set sizeName = (data['currentCigarSize'] | lower + " ") if data['currentCigarSize'] else "" %} +{% set sizeName = (data.currentCigarSize | lower + " ") if data.currentCigarSize else "" %} {% block pageTitle %} Cigar smoking - NHS @@ -13,9 +13,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {{ input({ label: { @@ -38,7 +38,7 @@ {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/do-you-currently-smoke.html b/app/views/prototype_v3/tobacco/cigars/do-you-currently-smoke.html index adef3ae..34d4f78 100644 --- a/app/views/prototype_v3/tobacco/cigars/do-you-currently-smoke.html +++ b/app/views/prototype_v3/tobacco/cigars/do-you-currently-smoke.html @@ -1,6 +1,6 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} -{% set sizeName = (data['currentCigarSize'] | lower + " ") if data['currentCigarSize'] else "" %} +{% set sizeName = (data.currentCigarSize | lower + " ") if data.currentCigarSize else "" %} {% block pageTitle %} Do you currently smoke {{ sizeName }}cigars - NHS @@ -14,37 +14,37 @@ {% endblock %} {% block content %} -
    -
    -
    +
    +
    + - {{ radios({ - idPrefix: "currentlySmokesCigars", - name: "currentlySmokesCigars", - value: data["currentlySmokesCigars"], - fieldset: { - legend: { - text: "Do you currently smoke " + sizeName + "cigars?", - classes: "nhsuk-fieldset__legend--l", - isPageHeading: true - } - }, - items: [ - { - value: "Yes", - text: "Yes" + {{ radios({ + idPrefix: "currentlySmokesCigars", + name: "currentlySmokesCigars", + value: data.currentlySmokesCigars, + fieldset: { + legend: { + text: "Do you currently smoke " + sizeName + "cigars?", + classes: "nhsuk-fieldset__legend--l", + isPageHeading: true + } }, - { - value: "No", - text: "No" - } - ] - }) }} + items: [ + { + value: "Yes", + text: "Yes" + }, + { + value: "No", + text: "No" + } + ] + }) }} - {{ button({ - text: "Continue" - }) }} - + {{ button({ + text: "Continue" + }) }} + +
    -
    {% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/former/cigar-size.html b/app/views/prototype_v3/tobacco/cigars/former/cigar-size.html index 0695f84..11725d4 100644 --- a/app/views/prototype_v3/tobacco/cigars/former/cigar-size.html +++ b/app/views/prototype_v3/tobacco/cigars/former/cigar-size.html @@ -1,66 +1,67 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} -{% if data["smokedRegularly"] == "Yes-currently" %} +{% if data.smokedRegularly == "Yes-currently" %} {% set questionText = "What size cigar do you normally smoke?" %} {% else %} {% set questionText = "What size cigar did you normally smoke?" %} {% endif %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + - {{ checkboxes({ - "idPrefix": "cigarSize", - "name": "cigarSize", - "fieldset": { - "legend": { - "text": questionText, - "classes": "nhsuk-fieldset__legend--l", - "isPageHeading": true - } - }, - "hint": { - "text": "Select all that apply" - }, - "items": [ - { - "value": "Small", - "text": "Small", - "hint": { - "text": "Petit Corona or Short Panetela, usually 4 to 5 inches long" + {{ checkboxes({ + idPrefix: "cigarSize", + name: "cigarSize", + fieldset: { + legend: { + text: questionText, + classes: "nhsuk-fieldset__legend--l", + isPageHeading: true } }, - { - "value": "Medium", - "text": "Medium", - "hint": { - "text": "Robusto or Corona, usually 5 to 6 inches long" - } + hint: { + text: "Select all that apply" }, - { - "value": "Large", - "text": "Large", - "hint": { - "text": "Churchill or Double Corona, usually 7 to 8 inches long" + values: data.cigarSize, + items: [ + { + value: "Small", + text: "Small", + hint: { + text: "Petit Corona or Short Panetela, usually 4 to 5 inches long" + } + }, + { + value: "Medium", + text: "Medium", + hint: { + text: "Robusto or Corona, usually 5 to 6 inches long" + } + }, + { + value: "Large", + text: "Large", + hint: { + text: "Churchill or Double Corona, usually 7 to 8 inches long" + } } - } - ] - }) }} + ] + }) }} - {{ button({ - "text": "Continue" - }) }} + {{ button({ + text: "Continue" + }) }} - + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/former/frequency.html b/app/views/prototype_v3/tobacco/cigars/former/frequency.html index 354871c..3dc3ebc 100644 --- a/app/views/prototype_v3/tobacco/cigars/former/frequency.html +++ b/app/views/prototype_v3/tobacco/cigars/former/frequency.html @@ -1,7 +1,7 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} -{% set sizeName = (data['currentCigarSize'] | lower + " ") if data['currentCigarSize'] else "" %} +{% set sizeName = (data.currentCigarSize | lower + " ") if data.currentCigarSize else "" %} {% block pageTitle %} How often did you smoke {{ sizeName }}cigars? - NHS @@ -13,14 +13,14 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {{ radios({ idPrefix: "cigarsFormerFrequency", name: "cigarsFormerFrequency", - value: data["cigarsFormerFrequency"], + value: data.cigarsFormerFrequency, fieldset: { legend: { text: "How often did you smoke " + sizeName + "cigars?", @@ -56,11 +56,11 @@ } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/former/has-quantity-changed.html b/app/views/prototype_v3/tobacco/cigars/former/has-quantity-changed.html index 3aca7a0..9ea98a4 100644 --- a/app/views/prototype_v3/tobacco/cigars/former/has-quantity-changed.html +++ b/app/views/prototype_v3/tobacco/cigars/former/has-quantity-changed.html @@ -1,13 +1,13 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {# Get current size being processed #} -{% set currentSize = data["currentCigarSize"] or "Small" %} +{% set currentSize = data.currentCigarSize or "Small" %} {# Get baseline quantity for THIS size #} {% set baselineQuantity = data["cigar" + currentSize + "Quantity"] %} {# Get frequency (shared across all sizes) #} -{% set frequency = data["cigarsCurrentFrequency"] or data["cigarsFormerFrequency"] %} +{% set frequency = data.cigarsCurrentFrequency or data.cigarsFormerFrequency %} {# Set frequency-based time period #} {% if frequency == "Daily" %} @@ -41,7 +41,7 @@ {% set baselineText = baselineQuantity + " " + sizePlural + " " + timePeriod %} {% endif %} -{% if data["smokedRegularly"] == "Yes-currently" %} +{% if data.smokedRegularly == "Yes-currently" %} {% set questionText = "Has the number of " + sizePlural + " you normally smoke changed over time?" %} {% set fieldName = "cigarsCurrentChanges" %} {% else %} @@ -50,55 +50,56 @@ {% endif %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + - {{ checkboxes({ - "idPrefix": fieldName, - "name": fieldName, - "fieldset": { - "legend": { - "text": questionText, - "classes": "nhsuk-fieldset__legend--l", - "isPageHeading": true - } - }, - "hint": { - "text": "Select all that apply" - }, - "items": [ - { - "value": "more", - "text": "Yes, I smoked more than " + baselineText + {{ checkboxes({ + idPrefix: fieldName, + name: fieldName, + fieldset: { + legend: { + text: questionText, + classes: "nhsuk-fieldset__legend--l", + isPageHeading: true + } }, - { - "value": "less", - "text": "Yes, I smoked fewer than " + baselineText + hint: { + text: "Select all that apply" }, - { - "divider": "or" - }, - { - "value": "No", - "text": "No, it did not change", - "behaviour": "exclusive" - } - ] - }) }} + values: data[fieldName], + items: [ + { + value: "more", + text: "Yes, I smoked more than " + baselineText + }, + { + value: "less", + text: "Yes, I smoked fewer than " + baselineText + }, + { + divider: "or" + }, + { + value: "No", + text: "No, it did not change", + behaviour: "exclusive" + } + ] + }) }} - {{ button({ - "text": "Continue" - }) }} + {{ button({ + text: "Continue" + }) }} - + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/former/less-duration.html b/app/views/prototype_v3/tobacco/cigars/former/less-duration.html index b2fee17..3936265 100644 --- a/app/views/prototype_v3/tobacco/cigars/former/less-duration.html +++ b/app/views/prototype_v3/tobacco/cigars/former/less-duration.html @@ -1,7 +1,7 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {# Get the current size being processed #} -{% set currentSize = data["currentCigarSize"] or "small" %} +{% set currentSize = data.currentCigarSize or "small" %} {% set sizeLower = currentSize | lower %} {# Set size-specific text #} @@ -33,47 +33,47 @@ {# Create the fewer text #} {% set fewerText = fewerQuantity + " " + (sizePlural if fewerQuantity != "1" else sizePlural | replace("cigars", "cigar")) + " " + timePeriod %} -{% if data["smokedRegularly"] == "Yes-currently" %} +{% if data.smokedRegularly == "Yes-currently" %} {% set questionText = "Roughly how many years did you smoke " + fewerText + "?" %} {% else %} {% set questionText = "Roughly how many years did you smoke " + fewerText + "?" %} {% endif %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + - {{ input({ - "label": { - "text": questionText, - "classes": "nhsuk-label--l", - "isPageHeading": true - }, - "hint": { - "text": "Give an estimate if you are not sure" - }, - "id": "cigar" + currentSize + "FewerDuration", - "name": "cigar" + currentSize + "FewerDuration", - "classes": "nhsuk-input--width-3", - "suffix": { - "text": "years" - }, - "value": data["cigar" + currentSize + "FewerDuration"] - }) }} + {{ input({ + label: { + text: questionText, + classes: "nhsuk-label--l", + isPageHeading: true + }, + hint: { + text: "Give an estimate if you are not sure" + }, + id: "cigar" + currentSize + "FewerDuration", + name: "cigar" + currentSize + "FewerDuration", + classes: "nhsuk-input--width-3", + suffix: { + text: "years" + }, + value: data["cigar" + currentSize + "FewerDuration"] + }) }} - {{ button({ - "text": "Continue" - }) }} + {{ button({ + text: "Continue" + }) }} - + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/former/less-frequency.html b/app/views/prototype_v3/tobacco/cigars/former/less-frequency.html index 2f44f67..86b587b 100644 --- a/app/views/prototype_v3/tobacco/cigars/former/less-frequency.html +++ b/app/views/prototype_v3/tobacco/cigars/former/less-frequency.html @@ -1,7 +1,7 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {# Get the current size being processed #} -{% set currentSize = data["currentCigarSize"] or "small" %} +{% set currentSize = data.currentCigarSize or "small" %} {% set sizeLower = currentSize | lower %} {# Set size-specific text #} @@ -33,68 +33,69 @@ {# Create the baseline text #} {% set baselineText = baselineQuantity + " " + (sizePlural if baselineQuantity != "1" else sizePlural | replace("cigars", "cigar")) + " " + timePeriod %} -{% if data["smokedRegularly"] == "Yes-currently" %} +{% if data.smokedRegularly == "Yes-currently" %} {% set questionText = "When you smoked fewer than " + baselineText + ", how often did you smoke " + sizePlural + "?" %} {% else %} {% set questionText = "When you smoked fewer than " + baselineText + ", how often did you smoke " + sizePlural + "?" %} {% endif %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + - {{ radios({ - "idPrefix": "cigar" + currentSize + "FewerFrequency", - "name": "cigar" + currentSize + "FewerFrequency", - "fieldset": { - "legend": { - "text": questionText, - "classes": "nhsuk-fieldset__legend--l", - "isPageHeading": true - } - }, - "items": [ - { - "value": "Daily", - "text": "Daily" - }, - { - "value": "Weekly", - "text": "Weekly", - "hint": { - "text": "For example, on the weekend" - } - }, - { - "value": "Monthly", - "text": "Monthly", - "hint": { - "text": "Select this option if you smoked at least once a month" + {{ radios({ + idPrefix: "cigar" + currentSize + "FewerFrequency", + name: "cigar" + currentSize + "FewerFrequency", + value: data["cigar" + currentSize + "FewerFrequency"], + fieldset: { + legend: { + text: questionText, + classes: "nhsuk-fieldset__legend--l", + isPageHeading: true } }, - { - "value": "Yearly", - "text": "Yearly", - "hint": { - "text": "For example, 2 to 3 times a year or fewer" + items: [ + { + value: "Daily", + text: "Daily" + }, + { + value: "Weekly", + text: "Weekly", + hint: { + text: "For example, on the weekend" + } + }, + { + value: "Monthly", + text: "Monthly", + hint: { + text: "Select this option if you smoked at least once a month" + } + }, + { + value: "Yearly", + text: "Yearly", + hint: { + text: "For example, 2 to 3 times a year or fewer" + } } - } - ] - }) }} + ] + }) }} - {{ button({ - "text": "Continue" - }) }} + {{ button({ + text: "Continue" + }) }} - + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/former/less-quantity.html b/app/views/prototype_v3/tobacco/cigars/former/less-quantity.html index 457036c..1668305 100644 --- a/app/views/prototype_v3/tobacco/cigars/former/less-quantity.html +++ b/app/views/prototype_v3/tobacco/cigars/former/less-quantity.html @@ -1,7 +1,7 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {# Get the current size being processed #} -{% set currentSize = data["currentCigarSize"] or "small" %} +{% set currentSize = data.currentCigarSize or "small" %} {% set sizeLower = currentSize | lower %} {# Set size-specific text #} @@ -47,47 +47,47 @@ {% set timePeriod = "day" %} {% endif %} -{% if data["smokedRegularly"] == "Yes-currently" %} +{% if data.smokedRegularly == "Yes-currently" %} {% set questionText = "When you smoked fewer than " + baselineText + ", roughly how many " + sizePlural + " did you normally smoke a " + timePeriod + "?" %} {% else %} {% set questionText = "When you smoked fewer than " + baselineText + ", roughly how many " + sizePlural + " did you normally smoke a " + timePeriod + "?" %} {% endif %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + - {{ input({ - "label": { - "text": questionText, - "classes": "nhsuk-label--l", - "isPageHeading": true - }, - "hint": { - "text": "Give an estimate if you are not sure" - }, - "id": "cigar" + currentSize + "FewerQuantity", - "name": "cigar" + currentSize + "FewerQuantity", - "classes": "nhsuk-input--width-3", - "suffix": { - "text": sizePlural - }, - "value": data["cigar" + currentSize + "FewerQuantity"] - }) }} + {{ input({ + label: { + text: questionText, + classes: "nhsuk-label--l", + isPageHeading: true + }, + hint: { + text: "Give an estimate if you are not sure" + }, + id: "cigar" + currentSize + "FewerQuantity", + name: "cigar" + currentSize + "FewerQuantity", + classes: "nhsuk-input--width-3", + suffix: { + text: sizePlural + }, + value: data["cigar" + currentSize + "FewerQuantity"] + }) }} - {{ button({ - "text": "Continue" - }) }} + {{ button({ + text: "Continue" + }) }} - + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/former/more-duration.html b/app/views/prototype_v3/tobacco/cigars/former/more-duration.html index a1154d9..5b309aa 100644 --- a/app/views/prototype_v3/tobacco/cigars/former/more-duration.html +++ b/app/views/prototype_v3/tobacco/cigars/former/more-duration.html @@ -1,7 +1,7 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {# Get the current size being processed #} -{% set currentSize = data["currentCigarSize"] or "small" %} +{% set currentSize = data.currentCigarSize or "small" %} {% set sizeLower = currentSize | lower %} {# Set size-specific text #} @@ -33,47 +33,47 @@ {# Create the more text #} {% set moreText = moreQuantity + " " + (sizePlural if moreQuantity != "1" else sizePlural | replace("cigars", "cigar")) + " " + timePeriod %} -{% if data["smokedRegularly"] == "Yes-currently" %} +{% if data.smokedRegularly == "Yes-currently" %} {% set questionText = "Roughly how many years did you smoke " + moreText + "?" %} {% else %} {% set questionText = "Roughly how many years did you smoke " + moreText + "?" %} {% endif %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + - {{ input({ - "label": { - "text": questionText, - "classes": "nhsuk-label--l", - "isPageHeading": true - }, - "hint": { - "text": "Give an estimate if you are not sure" - }, - "id": "cigar" + currentSize + "MoreDuration", - "name": "cigar" + currentSize + "MoreDuration", - "classes": "nhsuk-input--width-3", - "suffix": { - "text": "years" - }, - "value": data["cigar" + currentSize + "MoreDuration"] - }) }} + {{ input({ + label: { + text: questionText, + classes: "nhsuk-label--l", + isPageHeading: true + }, + hint: { + text: "Give an estimate if you are not sure" + }, + id: "cigar" + currentSize + "MoreDuration", + name: "cigar" + currentSize + "MoreDuration", + classes: "nhsuk-input--width-3", + suffix: { + text: "years" + }, + value: data["cigar" + currentSize + "MoreDuration"] + }) }} - {{ button({ - "text": "Continue" - }) }} + {{ button({ + text: "Continue" + }) }} - + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/former/more-frequency.html b/app/views/prototype_v3/tobacco/cigars/former/more-frequency.html index a200571..410e623 100644 --- a/app/views/prototype_v3/tobacco/cigars/former/more-frequency.html +++ b/app/views/prototype_v3/tobacco/cigars/former/more-frequency.html @@ -1,7 +1,7 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {# Get the current size being processed #} -{% set currentSize = data["currentCigarSize"] or "small" %} +{% set currentSize = data.currentCigarSize or "small" %} {% set sizeLower = currentSize | lower %} {# Set size-specific text #} @@ -33,68 +33,69 @@ {# Create the baseline text #} {% set baselineText = baselineQuantity + " " + (sizePlural if baselineQuantity != "1" else sizePlural | replace("cigars", "cigar")) + " " + timePeriod %} -{% if data["smokedRegularly"] == "Yes-currently" %} +{% if data.smokedRegularly == "Yes-currently" %} {% set questionText = "When you smoked more than " + baselineText + ", how often did you smoke " + sizePlural + "?" %} {% else %} {% set questionText = "When you smoked more than " + baselineText + ", how often did you smoke " + sizePlural + "?" %} {% endif %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + - {{ radios({ - "idPrefix": "cigar" + currentSize + "MoreFrequency", - "name": "cigar" + currentSize + "MoreFrequency", - "fieldset": { - "legend": { - "text": questionText, - "classes": "nhsuk-fieldset__legend--l", - "isPageHeading": true - } - }, - "items": [ - { - "value": "Daily", - "text": "Daily" - }, - { - "value": "Weekly", - "text": "Weekly", - "hint": { - "text": "For example, on the weekend" - } - }, - { - "value": "Monthly", - "text": "Monthly", - "hint": { - "text": "Select this option if you smoked at least once a month" + {{ radios({ + idPrefix: "cigar" + currentSize + "MoreFrequency", + name: "cigar" + currentSize + "MoreFrequency", + value: data["cigar" + currentSize + "MoreFrequency"], + fieldset: { + legend: { + text: questionText, + classes: "nhsuk-fieldset__legend--l", + isPageHeading: true } }, - { - "value": "Yearly", - "text": "Yearly", - "hint": { - "text": "For example, 2 to 3 times a year or fewer" + items: [ + { + value: "Daily", + text: "Daily" + }, + { + value: "Weekly", + text: "Weekly", + hint: { + text: "For example, on the weekend" + } + }, + { + value: "Monthly", + text: "Monthly", + hint: { + text: "Select this option if you smoked at least once a month" + } + }, + { + value: "Yearly", + text: "Yearly", + hint: { + text: "For example, 2 to 3 times a year or fewer" + } } - } - ] - }) }} + ] + }) }} - {{ button({ - "text": "Continue" - }) }} + {{ button({ + text: "Continue" + }) }} - + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/former/more-quantity.html b/app/views/prototype_v3/tobacco/cigars/former/more-quantity.html index baee47b..ecaf15a 100644 --- a/app/views/prototype_v3/tobacco/cigars/former/more-quantity.html +++ b/app/views/prototype_v3/tobacco/cigars/former/more-quantity.html @@ -1,7 +1,7 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {# Get the current size being processed #} -{% set currentSize = data["currentCigarSize"] or "small" %} +{% set currentSize = data.currentCigarSize or "small" %} {% set sizeLower = currentSize | lower %} {# Set size-specific text #} @@ -47,47 +47,47 @@ {% set timePeriod = "day" %} {% endif %} -{% if data["smokedRegularly"] == "Yes-currently" %} +{% if data.smokedRegularly == "Yes-currently" %} {% set questionText = "When you smoked more than " + baselineText + ", roughly how many " + sizePlural + " did you normally smoke a " + timePeriod + "?" %} {% else %} {% set questionText = "When you smoked more than " + baselineText + ", roughly how many " + sizePlural + " did you normally smoke a " + timePeriod + "?" %} {% endif %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + - {{ input({ - "label": { - "text": questionText, - "classes": "nhsuk-label--l", - "isPageHeading": true - }, - "hint": { - "text": "Give an estimate if you are not sure" - }, - "id": "cigar" + currentSize + "MoreQuantity", - "name": "cigar" + currentSize + "MoreQuantity", - "classes": "nhsuk-input--width-3", - "suffix": { - "text": sizePlural - }, - "value": data["cigar" + currentSize + "MoreQuantity"] - }) }} + {{ input({ + label: { + text: questionText, + classes: "nhsuk-label--l", + isPageHeading: true + }, + hint: { + text: "Give an estimate if you are not sure" + }, + id: "cigar" + currentSize + "MoreQuantity", + name: "cigar" + currentSize + "MoreQuantity", + classes: "nhsuk-input--width-3", + suffix: { + text: sizePlural + }, + value: data["cigar" + currentSize + "MoreQuantity"] + }) }} - {{ button({ - "text": "Continue" - }) }} + {{ button({ + text: "Continue" + }) }} - + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/former/quantity.html b/app/views/prototype_v3/tobacco/cigars/former/quantity.html index d38e51d..60e2c43 100644 --- a/app/views/prototype_v3/tobacco/cigars/former/quantity.html +++ b/app/views/prototype_v3/tobacco/cigars/former/quantity.html @@ -1,7 +1,7 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {# Get the current size being processed #} -{% set currentSize = data["currentCigarSize"] or "small" %} +{% set currentSize = data.currentCigarSize or "small" %} {% set sizeLower = currentSize | lower %} {# Set size-specific text #} @@ -35,46 +35,46 @@ {% set nextPageText = "The question on the next page will ask if the number of " + sizePlural + " you smoked changed over time." %} {% block beforeContent %} -{{ backLink({ - href: "javascript:history.back();", - text: "Back" -}) }} + {{ backLink({ + href: "javascript:history.back();", + text: "Back" + }) }} {% endblock %} {% block content %} -
    -
    -
    - -

    {{ pageHeading }}

    - -

    {{ nextPageText }}

    +
    +
    + - {{ input({ - "label": { - "text": questionText, - "classes": "nhsuk-label--m" - }, - "hint": { - "text": "Give an estimate if you are not sure" - }, - "id": "cigar" + currentSize + "Quantity", - "name": "cigar" + currentSize + "Quantity", - "classes": "nhsuk-input--width-3", - "suffix": { - "text": sizePlural - }, - "value": data["cigar" + currentSize + "Quantity"], - "errorMessage": { - "text": "The number of " + sizePlural + " smoked must be at least 1" - } if data["cigar" + currentSize + "Quantity-error"] - }) }} +

    {{ pageHeading }}

    - {{ button({ - "text": "Continue" - }) }} +

    {{ nextPageText }}

    - + {{ input({ + label: { + text: questionText, + classes: "nhsuk-label--m" + }, + hint: { + text: "Give an estimate if you are not sure" + }, + id: "cigar" + currentSize + "Quantity", + name: "cigar" + currentSize + "Quantity", + classes: "nhsuk-input--width-3", + suffix: { + text: sizePlural + }, + value: data["cigar" + currentSize + "Quantity"], + errorMessage: { + text: "The number of " + sizePlural + " smoked must be at least 1" + } if data["cigar" + currentSize + "Quantity-error"] + }) }} + + {{ button({ + text: "Continue" + }) }} + + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/cigars/former/years-smoked.html b/app/views/prototype_v3/tobacco/cigars/former/years-smoked.html index eed8451..2d4ad59 100644 --- a/app/views/prototype_v3/tobacco/cigars/former/years-smoked.html +++ b/app/views/prototype_v3/tobacco/cigars/former/years-smoked.html @@ -1,7 +1,7 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} -{% set sizeName = (data['currentCigarSize'] | lower + " ") if data['currentCigarSize'] else "" %} +{% set sizeName = (data.currentCigarSize | lower + " ") if data.currentCigarSize else "" %} {% block pageTitle %} Cigar smoking - NHS @@ -13,9 +13,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {{ input({ label: { @@ -38,7 +38,7 @@ {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/pipe/current/frequency.html b/app/views/prototype_v3/tobacco/pipe/current/frequency.html index f9dae44..4bf87b3 100644 --- a/app/views/prototype_v3/tobacco/pipe/current/frequency.html +++ b/app/views/prototype_v3/tobacco/pipe/current/frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} How often do you smoke a pipe? - NHS @@ -10,14 +10,14 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - +
    +
    + + {{ radios({ idPrefix: "pipeCurrentFrequency", name: "pipeCurrentFrequency", - value: data["pipeCurrentFrequency"], + value: data.pipeCurrentFrequency, fieldset: { legend: { text: "How often do you smoke a pipe?", @@ -53,11 +53,11 @@ } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/pipe/current/has-quantity-changed.html b/app/views/prototype_v3/tobacco/pipe/current/has-quantity-changed.html index 965a86f..e84440d 100644 --- a/app/views/prototype_v3/tobacco/pipe/current/has-quantity-changed.html +++ b/app/views/prototype_v3/tobacco/pipe/current/has-quantity-changed.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'checkboxes/macro.njk' import checkboxes %} {% block pageTitle %} Has the number of full pipe loads you normally smoke changed over time? - NHS @@ -10,17 +10,17 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - +
    +
    + + {% set frequencyText = "a day" %} {% if data.pipeCurrentFrequency == "Weekly" %} {% set frequencyText = "a week" %} {% elif data.pipeCurrentFrequency == "Monthly" %} {% set frequencyText = "a month" %} {% endif %} - + {{ checkboxes({ idPrefix: "pipeCurrentChanges", name: "pipeCurrentChanges", @@ -34,6 +34,7 @@ hint: { text: "Select all that apply" }, + values: data.pipeCurrentChanges, items: [ { value: "more", @@ -53,11 +54,11 @@ } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/pipe/current/less-duration.html b/app/views/prototype_v3/tobacco/pipe/current/less-duration.html index 9c7bc9e..1e26e0e 100644 --- a/app/views/prototype_v3/tobacco/pipe/current/less-duration.html +++ b/app/views/prototype_v3/tobacco/pipe/current/less-duration.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Pipe smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.pipeCurrentLessFrequency == "Weekly" %} @@ -38,11 +38,11 @@ }, value: data.pipeCurrentLessDuration }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/pipe/current/less-frequency.html b/app/views/prototype_v3/tobacco/pipe/current/less-frequency.html index 8a42771..1faccd3 100644 --- a/app/views/prototype_v3/tobacco/pipe/current/less-frequency.html +++ b/app/views/prototype_v3/tobacco/pipe/current/less-frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} Pipe smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.pipeCurrentFrequency == "Weekly" %} @@ -28,7 +28,7 @@

    When you smoked fewer than {{ data.pipeCurrentQuanti {{ radios({ idPrefix: "pipeCurrentLessFrequency", name: "pipeCurrentLessFrequency", - value: data["pipeCurrentLessFrequency"], + value: data.pipeCurrentLessFrequency, items: [ { value: "Daily", @@ -57,11 +57,11 @@

    When you smoked fewer than {{ data.pipeCurrentQuanti } ] }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/pipe/current/less-quantity.html b/app/views/prototype_v3/tobacco/pipe/current/less-quantity.html index 33ea49d..2f32b2a 100644 --- a/app/views/prototype_v3/tobacco/pipe/current/less-quantity.html +++ b/app/views/prototype_v3/tobacco/pipe/current/less-quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Pipe smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set baseFrequencyText = "a day" %} {% if data.pipeCurrentFrequency == "Weekly" %} @@ -45,11 +45,11 @@

    When you smoked fewer than {{ data.pipeCurrentQuanti }, value: data.pipeCurrentLessQuantity }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/pipe/current/more-duration.html b/app/views/prototype_v3/tobacco/pipe/current/more-duration.html index 042b412..97379ee 100644 --- a/app/views/prototype_v3/tobacco/pipe/current/more-duration.html +++ b/app/views/prototype_v3/tobacco/pipe/current/more-duration.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Pipe smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.pipeCurrentMoreFrequency == "Weekly" %} @@ -38,11 +38,11 @@ }, value: data.pipeCurrentMoreDuration }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/pipe/current/more-frequency.html b/app/views/prototype_v3/tobacco/pipe/current/more-frequency.html index 4e3b62a..528287f 100644 --- a/app/views/prototype_v3/tobacco/pipe/current/more-frequency.html +++ b/app/views/prototype_v3/tobacco/pipe/current/more-frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} Pipe smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.pipeCurrentFrequency == "Weekly" %} @@ -28,7 +28,7 @@

    When you smoked more than {{ data.pipeCurrentQuantit {{ radios({ idPrefix: "pipeCurrentMoreFrequency", name: "pipeCurrentMoreFrequency", - value: data["pipeCurrentMoreFrequency"], + value: data.pipeCurrentMoreFrequency, items: [ { value: "Daily", @@ -57,11 +57,11 @@

    When you smoked more than {{ data.pipeCurrentQuantit } ] }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/pipe/current/more-quantity.html b/app/views/prototype_v3/tobacco/pipe/current/more-quantity.html index 9286522..217810f 100644 --- a/app/views/prototype_v3/tobacco/pipe/current/more-quantity.html +++ b/app/views/prototype_v3/tobacco/pipe/current/more-quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Pipe smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set baseFrequencyText = "a day" %} {% if data.pipeCurrentFrequency == "Weekly" %} @@ -45,11 +45,11 @@

    When you smoked more than {{ data.pipeCurrentQuantit }, value: data.pipeCurrentMoreQuantity }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/pipe/current/quantity.html b/app/views/prototype_v3/tobacco/pipe/current/quantity.html index bb9f59e..cc5e9fc 100644 --- a/app/views/prototype_v3/tobacco/pipe/current/quantity.html +++ b/app/views/prototype_v3/tobacco/pipe/current/quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Pipe smoking - NHS @@ -10,11 +10,11 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + -

    Pipe smoking

    +

    Pipe smoking

    {% set frequencyText = "a day" %} {% if data.pipeCurrentFrequency == "Weekly" %} @@ -35,7 +35,7 @@

    Pipe smoking

    {% endif %} -

    The question on the next page will ask if the number of full pipe loads you smoke has changed over time.

    +

    The question on the next page will ask if the number of full pipe loads you smoke has changed over time.

    {{ input({ label: { @@ -56,11 +56,11 @@

    Pipe smoking

    text: "The number of full pipe loads smoked must be at least 1" } if data['pipeCurrentQuantity-error'] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/pipe/current/years-smoked.html b/app/views/prototype_v3/tobacco/pipe/current/years-smoked.html index 731ad2e..314c5de 100644 --- a/app/views/prototype_v3/tobacco/pipe/current/years-smoked.html +++ b/app/views/prototype_v3/tobacco/pipe/current/years-smoked.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Pipe smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {{ input({ label: { @@ -35,7 +35,7 @@ {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/pipe/do-you-currently-smoke.html b/app/views/prototype_v3/tobacco/pipe/do-you-currently-smoke.html index 564dca7..735b0d2 100644 --- a/app/views/prototype_v3/tobacco/pipe/do-you-currently-smoke.html +++ b/app/views/prototype_v3/tobacco/pipe/do-you-currently-smoke.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Do you currently smoke a pipe - NHS @@ -12,37 +12,37 @@ {% endblock %} {% block content %} -
    -
    -
    - - {{ radios({ - idPrefix: "currentlySmokesPipe", - name: "currentlySmokesPipe", - value: data["currentlySmokesPipe"], - fieldset: { - legend: { - text: "Do you currently smoke a pipe?", - classes: "nhsuk-fieldset__legend--l", - isPageHeading: true - } - }, - items: [ - { - value: "Yes", - text: "Yes" +
    +
    + + + {{ radios({ + idPrefix: "currentlySmokesPipe", + name: "currentlySmokesPipe", + value: data.currentlySmokesPipe, + fieldset: { + legend: { + text: "Do you currently smoke a pipe?", + classes: "nhsuk-fieldset__legend--l", + isPageHeading: true + } }, - { - value: "No", - text: "No" - } - ] - }) }} + items: [ + { + value: "Yes", + text: "Yes" + }, + { + value: "No", + text: "No" + } + ] + }) }} - {{ button({ - text: "Continue" - }) }} - + {{ button({ + text: "Continue" + }) }} + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/pipe/former/frequency.html b/app/views/prototype_v3/tobacco/pipe/former/frequency.html index 0f34733..5959d63 100644 --- a/app/views/prototype_v3/tobacco/pipe/former/frequency.html +++ b/app/views/prototype_v3/tobacco/pipe/former/frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} How often did you smoke a pipe? - NHS @@ -10,14 +10,14 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - +
    +
    + + {{ radios({ idPrefix: "pipeFormerFrequency", name: "pipeFormerFrequency", - value: data["pipeFormerFrequency"], + value: data.pipeFormerFrequency, fieldset: { legend: { text: "How often did you smoke a pipe?", @@ -53,11 +53,11 @@ } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/pipe/former/has-quantity-changed.html b/app/views/prototype_v3/tobacco/pipe/former/has-quantity-changed.html index 5bcd460..f3c6cde 100644 --- a/app/views/prototype_v3/tobacco/pipe/former/has-quantity-changed.html +++ b/app/views/prototype_v3/tobacco/pipe/former/has-quantity-changed.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'checkboxes/macro.njk' import checkboxes %} {% block pageTitle %} Did the number of full pipe loads you normally smoke change over time? - NHS @@ -10,17 +10,17 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - +
    +
    + + {% set frequencyText = "a day" %} {% if data.pipeFormerFrequency == "Weekly" %} {% set frequencyText = "a week" %} {% elif data.pipeFormerFrequency == "Monthly" %} {% set frequencyText = "a month" %} {% endif %} - + {{ checkboxes({ idPrefix: "pipeFormerChanges", name: "pipeFormerChanges", @@ -34,6 +34,7 @@ hint: { text: "Select all that apply" }, + values: data.pipeFormerChanges, items: [ { value: "more", @@ -53,11 +54,11 @@ } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/pipe/former/less-duration.html b/app/views/prototype_v3/tobacco/pipe/former/less-duration.html index 3a16155..b2abcbe 100644 --- a/app/views/prototype_v3/tobacco/pipe/former/less-duration.html +++ b/app/views/prototype_v3/tobacco/pipe/former/less-duration.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Pipe smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.pipeFormerLessFrequency == "Weekly" %} @@ -38,11 +38,11 @@ }, value: data.pipeFormerLessDuration }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/pipe/former/less-frequency.html b/app/views/prototype_v3/tobacco/pipe/former/less-frequency.html index 2f2e594..dbc8991 100644 --- a/app/views/prototype_v3/tobacco/pipe/former/less-frequency.html +++ b/app/views/prototype_v3/tobacco/pipe/former/less-frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} Pipe smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.pipeFormerFrequency == "Weekly" %} @@ -28,7 +28,7 @@

    When you smoked fewer than {{ data.pipeFormerQuantit {{ radios({ idPrefix: "pipeFormerLessFrequency", name: "pipeFormerLessFrequency", - value: data["pipeFormerLessFrequency"], + value: data.pipeFormerLessFrequency, items: [ { value: "Daily", @@ -57,11 +57,11 @@

    When you smoked fewer than {{ data.pipeFormerQuantit } ] }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/pipe/former/less-quantity.html b/app/views/prototype_v3/tobacco/pipe/former/less-quantity.html index 0429d44..2bd17a8 100644 --- a/app/views/prototype_v3/tobacco/pipe/former/less-quantity.html +++ b/app/views/prototype_v3/tobacco/pipe/former/less-quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Pipe smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set baseFrequencyText = "a day" %} {% if data.pipeFormerFrequency == "Weekly" %} @@ -45,11 +45,11 @@

    When you smoked fewer than {{ data.pipeFormerQuantit }, value: data.pipeFormerLessQuantity }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/pipe/former/more-duration.html b/app/views/prototype_v3/tobacco/pipe/former/more-duration.html index 74865c7..384e227 100644 --- a/app/views/prototype_v3/tobacco/pipe/former/more-duration.html +++ b/app/views/prototype_v3/tobacco/pipe/former/more-duration.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Pipe smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.pipeFormerMoreFrequency == "Weekly" %} @@ -38,11 +38,11 @@ }, value: data.pipeFormerMoreDuration }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/pipe/former/more-frequency.html b/app/views/prototype_v3/tobacco/pipe/former/more-frequency.html index 5a2ddc7..7277849 100644 --- a/app/views/prototype_v3/tobacco/pipe/former/more-frequency.html +++ b/app/views/prototype_v3/tobacco/pipe/former/more-frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} Pipe smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.pipeFormerFrequency == "Weekly" %} @@ -28,7 +28,7 @@

    When you smoked more than {{ data.pipeFormerQuantity {{ radios({ idPrefix: "pipeFormerMoreFrequency", name: "pipeFormerMoreFrequency", - value: data["pipeFormerMoreFrequency"], + value: data.pipeFormerMoreFrequency, items: [ { value: "Daily", @@ -57,11 +57,11 @@

    When you smoked more than {{ data.pipeFormerQuantity } ] }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/pipe/former/more-quantity.html b/app/views/prototype_v3/tobacco/pipe/former/more-quantity.html index fbef4d4..67e6225 100644 --- a/app/views/prototype_v3/tobacco/pipe/former/more-quantity.html +++ b/app/views/prototype_v3/tobacco/pipe/former/more-quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Pipe smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set baseFrequencyText = "a day" %} {% if data.pipeFormerFrequency == "Weekly" %} @@ -45,11 +45,11 @@

    When you smoked more than {{ data.pipeFormerQuantity }, value: data.pipeFormerMoreQuantity }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/pipe/former/quantity.html b/app/views/prototype_v3/tobacco/pipe/former/quantity.html index 9533557..d928c60 100644 --- a/app/views/prototype_v3/tobacco/pipe/former/quantity.html +++ b/app/views/prototype_v3/tobacco/pipe/former/quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Pipe smoking - NHS @@ -10,11 +10,11 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + -

    Pipe smoking

    +

    Pipe smoking

    {% set frequencyText = "a day" %} {% if data.pipeFormerFrequency == "Weekly" %} @@ -26,7 +26,7 @@

    Pipe smoking

    {% endif %} -

    The question on the next page will ask if the number of full pipe loads you smoked changed over time.

    +

    The question on the next page will ask if the number of full pipe loads you smoked changed over time.

    {{ input({ label: { @@ -47,11 +47,11 @@

    Pipe smoking

    text: "The number of full pipe loads smoked must be at least 1" } if data['pipeFormerQuantity-error'] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/pipe/former/years-smoked.html b/app/views/prototype_v3/tobacco/pipe/former/years-smoked.html index 1801481..6ea3152 100644 --- a/app/views/prototype_v3/tobacco/pipe/former/years-smoked.html +++ b/app/views/prototype_v3/tobacco/pipe/former/years-smoked.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Pipe smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {{ input({ label: { @@ -35,7 +35,7 @@ {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/rolling-tobacco/current/frequency.html b/app/views/prototype_v3/tobacco/rolling-tobacco/current/frequency.html index 7013bda..75c9822 100644 --- a/app/views/prototype_v3/tobacco/rolling-tobacco/current/frequency.html +++ b/app/views/prototype_v3/tobacco/rolling-tobacco/current/frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} How often do you smoke rolling tobacco? - NHS @@ -10,14 +10,14 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - +
    +
    + + {{ radios({ idPrefix: "rollingTobaccoCurrentFrequency", name: "rollingTobaccoCurrentFrequency", - value: data["rollingTobaccoCurrentFrequency"], + value: data.rollingTobaccoCurrentFrequency, fieldset: { legend: { text: "How often do you smoke rolling tobacco?", @@ -53,11 +53,11 @@ } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/rolling-tobacco/current/has-quantity-changed.html b/app/views/prototype_v3/tobacco/rolling-tobacco/current/has-quantity-changed.html index 251a7d6..c736e3e 100644 --- a/app/views/prototype_v3/tobacco/rolling-tobacco/current/has-quantity-changed.html +++ b/app/views/prototype_v3/tobacco/rolling-tobacco/current/has-quantity-changed.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'checkboxes/macro.njk' import checkboxes %} {% block pageTitle %} Did the number of grams of tobacco you normally smoke change over time? - NHS @@ -10,17 +10,17 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - +
    +
    + + {% set frequencyText = "a day" %} {% if data.rollingTobaccoCurrentFrequency == "Weekly" %} {% set frequencyText = "a week" %} {% elif data.rollingTobaccoCurrentFrequency == "Monthly" %} {% set frequencyText = "a month" %} {% endif %} - + {{ checkboxes({ idPrefix: "rollingTobaccoCurrentChanges", name: "rollingTobaccoCurrentChanges", @@ -34,6 +34,7 @@ hint: { text: "Select all that apply" }, + values: data.rollingTobaccoCurrentChanges, items: [ { value: "more", @@ -53,11 +54,11 @@ } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/rolling-tobacco/current/less-duration.html b/app/views/prototype_v3/tobacco/rolling-tobacco/current/less-duration.html index 7974abb..5158972 100644 --- a/app/views/prototype_v3/tobacco/rolling-tobacco/current/less-duration.html +++ b/app/views/prototype_v3/tobacco/rolling-tobacco/current/less-duration.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Rolling tobacco smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.rollingTobaccoCurrentLessFrequency == "Weekly" %} @@ -38,11 +38,11 @@ }, value: data.rollingTobaccoCurrentLessDuration }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/rolling-tobacco/current/less-frequency.html b/app/views/prototype_v3/tobacco/rolling-tobacco/current/less-frequency.html index 7039581..e0cec4b 100644 --- a/app/views/prototype_v3/tobacco/rolling-tobacco/current/less-frequency.html +++ b/app/views/prototype_v3/tobacco/rolling-tobacco/current/less-frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} Rolling tobacco smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.rollingTobaccoCurrentFrequency == "Weekly" %} @@ -28,7 +28,7 @@

    When you smoked less than {{ data.rollingTobaccoCurr {{ radios({ idPrefix: "rollingTobaccoCurrentLessFrequency", name: "rollingTobaccoCurrentLessFrequency", - value: data["rollingTobaccoCurrentLessFrequency"], + value: data.rollingTobaccoCurrentLessFrequency, items: [ { value: "Daily", @@ -57,11 +57,11 @@

    When you smoked less than {{ data.rollingTobaccoCurr } ] }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/rolling-tobacco/current/less-quantity.html b/app/views/prototype_v3/tobacco/rolling-tobacco/current/less-quantity.html index 4ccf9f5..92ff806 100644 --- a/app/views/prototype_v3/tobacco/rolling-tobacco/current/less-quantity.html +++ b/app/views/prototype_v3/tobacco/rolling-tobacco/current/less-quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Rolling tobacco smoking - NHS {% endblock %} @@ -9,9 +9,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set baseFrequencyText = "a week" %} {% if data.rollingTobaccoCurrentFrequency == "Monthly" %} @@ -56,11 +56,11 @@ } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/rolling-tobacco/current/more-duration.html b/app/views/prototype_v3/tobacco/rolling-tobacco/current/more-duration.html index 030bf44..b69fd3d 100644 --- a/app/views/prototype_v3/tobacco/rolling-tobacco/current/more-duration.html +++ b/app/views/prototype_v3/tobacco/rolling-tobacco/current/more-duration.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Rolling tobacco smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.rollingTobaccoCurrentMoreFrequency == "Weekly" %} @@ -38,11 +38,11 @@ }, value: data.rollingTobaccoCurrentMoreDuration }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/rolling-tobacco/current/more-frequency.html b/app/views/prototype_v3/tobacco/rolling-tobacco/current/more-frequency.html index f283d93..ff60b6e 100644 --- a/app/views/prototype_v3/tobacco/rolling-tobacco/current/more-frequency.html +++ b/app/views/prototype_v3/tobacco/rolling-tobacco/current/more-frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} Rolling tobacco smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.rollingTobaccoCurrentFrequency == "Weekly" %} @@ -28,7 +28,7 @@

    When you smoked more than {{ data.rollingTobaccoCurr {{ radios({ idPrefix: "rollingTobaccoCurrentMoreFrequency", name: "rollingTobaccoCurrentMoreFrequency", - value: data["rollingTobaccoCurrentMoreFrequency"], + value: data.rollingTobaccoCurrentMoreFrequency, items: [ { value: "Daily", @@ -57,11 +57,11 @@

    When you smoked more than {{ data.rollingTobaccoCurr } ] }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/rolling-tobacco/current/more-quantity.html b/app/views/prototype_v3/tobacco/rolling-tobacco/current/more-quantity.html index 30c874a..72fe72c 100644 --- a/app/views/prototype_v3/tobacco/rolling-tobacco/current/more-quantity.html +++ b/app/views/prototype_v3/tobacco/rolling-tobacco/current/more-quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Rolling tobacco smoking - NHS {% endblock %} @@ -9,9 +9,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set baseFrequencyText = "a week" %} {% if data.rollingTobaccoCurrentFrequency == "Monthly" %} @@ -56,11 +56,11 @@ } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/rolling-tobacco/current/quantity.html b/app/views/prototype_v3/tobacco/rolling-tobacco/current/quantity.html index 66ebb45..7627b5c 100644 --- a/app/views/prototype_v3/tobacco/rolling-tobacco/current/quantity.html +++ b/app/views/prototype_v3/tobacco/rolling-tobacco/current/quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Rolling tobacco smoking - NHS {% endblock %} @@ -9,11 +9,11 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + -

    Rolling tobacco

    +

    Rolling tobacco

    {% set frequencyText = "a week" %} {% if data.rollingTobaccoCurrentFrequency == "Monthly" %} @@ -30,7 +30,7 @@

    Rolling tobacco

    {% endif %} -

    The question on the next page will ask if the amount of tobacco you smoke has changed over time.

    +

    The question on the next page will ask if the amount of tobacco you smoke has changed over time.

    {{ radios({ fieldset: { @@ -64,11 +64,11 @@

    Rolling tobacco

    } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/rolling-tobacco/current/years-smoked.html b/app/views/prototype_v3/tobacco/rolling-tobacco/current/years-smoked.html index 3a3021c..8f99240 100644 --- a/app/views/prototype_v3/tobacco/rolling-tobacco/current/years-smoked.html +++ b/app/views/prototype_v3/tobacco/rolling-tobacco/current/years-smoked.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Rolling tobacco smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {{ input({ label: { @@ -35,7 +35,7 @@ {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/rolling-tobacco/do-you-currently-smoke.html b/app/views/prototype_v3/tobacco/rolling-tobacco/do-you-currently-smoke.html index cd48296..df6edda 100644 --- a/app/views/prototype_v3/tobacco/rolling-tobacco/do-you-currently-smoke.html +++ b/app/views/prototype_v3/tobacco/rolling-tobacco/do-you-currently-smoke.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Do you currently smoke rolling tobacco - NHS @@ -12,37 +12,37 @@ {% endblock %} {% block content %} -
    -
    -
    - - {{ radios({ - idPrefix: "currentlySmokesRollingTobacco", - name: "currentlySmokesRollingTobacco", - value: data["currentlySmokesRollingTobacco"], - fieldset: { - legend: { - text: "Do you currently smoke rolling tobacco?", - classes: "nhsuk-fieldset__legend--l", - isPageHeading: true - } - }, - items: [ - { - value: "Yes", - text: "Yes" +
    +
    + + + {{ radios({ + idPrefix: "currentlySmokesRollingTobacco", + name: "currentlySmokesRollingTobacco", + value: data.currentlySmokesRollingTobacco, + fieldset: { + legend: { + text: "Do you currently smoke rolling tobacco?", + classes: "nhsuk-fieldset__legend--l", + isPageHeading: true + } }, - { - value: "No", - text: "No" - } - ] - }) }} + items: [ + { + value: "Yes", + text: "Yes" + }, + { + value: "No", + text: "No" + } + ] + }) }} - {{ button({ - text: "Continue" - }) }} - + {{ button({ + text: "Continue" + }) }} + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/rolling-tobacco/former/frequency.html b/app/views/prototype_v3/tobacco/rolling-tobacco/former/frequency.html index 15aa3ef..5088de6 100644 --- a/app/views/prototype_v3/tobacco/rolling-tobacco/former/frequency.html +++ b/app/views/prototype_v3/tobacco/rolling-tobacco/former/frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} How often did you smoke rolling tobacco? - NHS @@ -10,14 +10,14 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - +
    +
    + + {{ radios({ idPrefix: "rollingTobaccoFormerFrequency", name: "rollingTobaccoFormerFrequency", - value: data["rollingTobaccoFormerFrequency"], + value: data.rollingTobaccoFormerFrequency, fieldset: { legend: { text: "How often did you smoke rolling tobacco?", @@ -53,11 +53,11 @@ } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/rolling-tobacco/former/has-quantity-changed.html b/app/views/prototype_v3/tobacco/rolling-tobacco/former/has-quantity-changed.html index 5464684..f65523e 100644 --- a/app/views/prototype_v3/tobacco/rolling-tobacco/former/has-quantity-changed.html +++ b/app/views/prototype_v3/tobacco/rolling-tobacco/former/has-quantity-changed.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'checkboxes/macro.njk' import checkboxes %} {% block pageTitle %} Did the number of grams of tobacco you normally smoke change over time? - NHS @@ -10,17 +10,17 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - +
    +
    + + {% set frequencyText = "a day" %} {% if data.rollingTobaccoFormerFrequency == "Weekly" %} {% set frequencyText = "a week" %} {% elif data.rollingTobaccoFormerFrequency == "Monthly" %} {% set frequencyText = "a month" %} {% endif %} - + {{ checkboxes({ idPrefix: "rollingTobaccoFormerChanges", name: "rollingTobaccoFormerChanges", @@ -34,6 +34,7 @@ hint: { text: "Select all that apply" }, + values: data.rollingTobaccoFormerChanges, items: [ { value: "more", @@ -53,11 +54,11 @@ } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/rolling-tobacco/former/less-duration.html b/app/views/prototype_v3/tobacco/rolling-tobacco/former/less-duration.html index 1a2845b..6794224 100644 --- a/app/views/prototype_v3/tobacco/rolling-tobacco/former/less-duration.html +++ b/app/views/prototype_v3/tobacco/rolling-tobacco/former/less-duration.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Rolling tobacco smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.rollingTobaccoFormerLessFrequency == "Weekly" %} @@ -38,11 +38,11 @@ }, value: data.rollingTobaccoFormerLessDuration }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/rolling-tobacco/former/less-frequency.html b/app/views/prototype_v3/tobacco/rolling-tobacco/former/less-frequency.html index ee33d9a..dde726b 100644 --- a/app/views/prototype_v3/tobacco/rolling-tobacco/former/less-frequency.html +++ b/app/views/prototype_v3/tobacco/rolling-tobacco/former/less-frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} Rolling tobacco smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.rollingTobaccoFormerFrequency == "Weekly" %} @@ -28,7 +28,7 @@

    When you smoked less than {{ data.rollingTobaccoForm {{ radios({ idPrefix: "rollingTobaccoFormerLessFrequency", name: "rollingTobaccoFormerLessFrequency", - value: data["rollingTobaccoFormerLessFrequency"], + value: data.rollingTobaccoFormerLessFrequency, items: [ { value: "Daily", @@ -57,11 +57,11 @@

    When you smoked less than {{ data.rollingTobaccoForm } ] }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/rolling-tobacco/former/less-quantity.html b/app/views/prototype_v3/tobacco/rolling-tobacco/former/less-quantity.html index f6e8b3f..9178a6d 100644 --- a/app/views/prototype_v3/tobacco/rolling-tobacco/former/less-quantity.html +++ b/app/views/prototype_v3/tobacco/rolling-tobacco/former/less-quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Rolling tobacco smoking - NHS {% endblock %} @@ -9,9 +9,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set baseFrequencyText = "a week" %} {% if data.rollingTobaccoFormerFrequency == "Monthly" %} @@ -56,11 +56,11 @@ } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/rolling-tobacco/former/more-duration.html b/app/views/prototype_v3/tobacco/rolling-tobacco/former/more-duration.html index afe8e60..e1be9c0 100644 --- a/app/views/prototype_v3/tobacco/rolling-tobacco/former/more-duration.html +++ b/app/views/prototype_v3/tobacco/rolling-tobacco/former/more-duration.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Rolling tobacco smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.rollingTobaccoFormerMoreFrequency == "Weekly" %} @@ -38,11 +38,11 @@ }, value: data.rollingTobaccoFormerMoreDuration }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/rolling-tobacco/former/more-frequency.html b/app/views/prototype_v3/tobacco/rolling-tobacco/former/more-frequency.html index 0abbdd8..6455498 100644 --- a/app/views/prototype_v3/tobacco/rolling-tobacco/former/more-frequency.html +++ b/app/views/prototype_v3/tobacco/rolling-tobacco/former/more-frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} Rolling tobacco smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set frequencyText = "a day" %} {% if data.rollingTobaccoFormerFrequency == "Weekly" %} @@ -28,7 +28,7 @@

    When you smoked more than {{ data.rollingTobaccoForm {{ radios({ idPrefix: "rollingTobaccoFormerMoreFrequency", name: "rollingTobaccoFormerMoreFrequency", - value: data["rollingTobaccoFormerMoreFrequency"], + value: data.rollingTobaccoFormerMoreFrequency, items: [ { value: "Daily", @@ -57,11 +57,11 @@

    When you smoked more than {{ data.rollingTobaccoForm } ] }) }} - + {{ button({ text: "Continue" }) }} - -

    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/rolling-tobacco/former/more-quantity.html b/app/views/prototype_v3/tobacco/rolling-tobacco/former/more-quantity.html index 9b2a44c..5732f07 100644 --- a/app/views/prototype_v3/tobacco/rolling-tobacco/former/more-quantity.html +++ b/app/views/prototype_v3/tobacco/rolling-tobacco/former/more-quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Rolling tobacco smoking - NHS {% endblock %} @@ -9,9 +9,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {% set baseFrequencyText = "a week" %} {% if data.rollingTobaccoFormerFrequency == "Monthly" %} @@ -56,11 +56,11 @@ } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/rolling-tobacco/former/quantity.html b/app/views/prototype_v3/tobacco/rolling-tobacco/former/quantity.html index acd21c3..58ff40a 100644 --- a/app/views/prototype_v3/tobacco/rolling-tobacco/former/quantity.html +++ b/app/views/prototype_v3/tobacco/rolling-tobacco/former/quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Rolling tobacco smoking - NHS {% endblock %} @@ -9,11 +9,11 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + -

    Rolling tobacco

    +

    Rolling tobacco

    {% set frequencyText = "a week" %} {% if data.rollingTobaccoFormerFrequency == "Monthly" %} @@ -23,7 +23,7 @@

    Rolling tobacco

    {% endif %} -

    The question on the next page will ask if the amount of tobacco you smoked changed over time.

    +

    The question on the next page will ask if the amount of tobacco you smoked changed over time.

    {{ radios({ fieldset: { @@ -57,11 +57,11 @@

    Rolling tobacco

    } ] }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/rolling-tobacco/former/years-smoked.html b/app/views/prototype_v3/tobacco/rolling-tobacco/former/years-smoked.html index f3b8836..05591b5 100644 --- a/app/views/prototype_v3/tobacco/rolling-tobacco/former/years-smoked.html +++ b/app/views/prototype_v3/tobacco/rolling-tobacco/former/years-smoked.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Rolling tobacco smoking - NHS @@ -10,9 +10,9 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    +
    +
    + {{ input({ label: { @@ -35,7 +35,7 @@ {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/shisha/current/alone-frequency.html b/app/views/prototype_v3/tobacco/shisha/current/alone-frequency.html index 0804fac..d9ce3a4 100644 --- a/app/views/prototype_v3/tobacco/shisha/current/alone-frequency.html +++ b/app/views/prototype_v3/tobacco/shisha/current/alone-frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} Shisha smoking alone - NHS @@ -10,52 +10,53 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - {{ radios({ - idPrefix: "shishaCurrentAloneFrequency", - name: "shishaCurrentAloneFrequency", - fieldset: { - legend: { - text: "How often do you smoke shisha by yourself?", - classes: "nhsuk-fieldset__legend--l", - isPageHeading: true - } - }, - items: [ - { - value: "Daily", - text: "Daily" - }, - { - value: "Weekly", - text: "Weekly", - hint: { - text: "For example, on the weekend" - } - }, - { - value: "Monthly", - text: "Monthly", - hint: { - text: "Select this option if you smoke once a month or once every few months" +
    +
    + + {{ radios({ + idPrefix: "shishaCurrentAloneFrequency", + name: "shishaCurrentAloneFrequency", + fieldset: { + legend: { + text: "How often do you smoke shisha by yourself?", + classes: "nhsuk-fieldset__legend--l", + isPageHeading: true } }, - { - value: "Yearly", - text: "Yearly", - hint: { - text: "For example, 2 to 3 times a year or fewer" + value: data.shishaCurrentAloneFrequency, + items: [ + { + value: "Daily", + text: "Daily" + }, + { + value: "Weekly", + text: "Weekly", + hint: { + text: "For example, on the weekend" + } + }, + { + value: "Monthly", + text: "Monthly", + hint: { + text: "Select this option if you smoke once a month or once every few months" + } + }, + { + value: "Yearly", + text: "Yearly", + hint: { + text: "For example, 2 to 3 times a year or fewer" + } } - } - ] - }) }} + ] + }) }} - {{ button({ - text: "Continue" - }) }} - + {{ button({ + text: "Continue" + }) }} + +
    -
    {% endblock %} diff --git a/app/views/prototype_v3/tobacco/shisha/current/alone-quantity.html b/app/views/prototype_v3/tobacco/shisha/current/alone-quantity.html index 801d298..1d3e6fa 100644 --- a/app/views/prototype_v3/tobacco/shisha/current/alone-quantity.html +++ b/app/views/prototype_v3/tobacco/shisha/current/alone-quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% if data.shishaCurrentAloneFrequency == "Daily" %} @@ -21,10 +21,10 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - +
    +
    + + {{ input({ label: { text: "Roughly, how many hours a " + frequencyText + " do you normally smoke shisha for by yourself?", @@ -42,11 +42,11 @@ }, value: data.shishaCurrentAloneQuantity }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/shisha/current/group-frequency.html b/app/views/prototype_v3/tobacco/shisha/current/group-frequency.html index b5ce8b4..0cc1cf9 100644 --- a/app/views/prototype_v3/tobacco/shisha/current/group-frequency.html +++ b/app/views/prototype_v3/tobacco/shisha/current/group-frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} Shisha smoking in a group - NHS @@ -10,52 +10,53 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - {{ radios({ - idPrefix: "shishaCurrentGroupFrequency", - name: "shishaCurrentGroupFrequency", - fieldset: { - legend: { - text: "How often do you smoke shisha in a group?", - classes: "nhsuk-fieldset__legend--l", - isPageHeading: true - } - }, - items: [ - { - value: "Daily", - text: "Daily" - }, - { - value: "Weekly", - text: "Weekly", - hint: { - text: "For example, on the weekend" - } - }, - { - value: "Monthly", - text: "Monthly", - hint: { - text: "Select this option if you smoke once a month or once every few months" +
    +
    + + {{ radios({ + idPrefix: "shishaCurrentGroupFrequency", + name: "shishaCurrentGroupFrequency", + fieldset: { + legend: { + text: "How often do you smoke shisha in a group?", + classes: "nhsuk-fieldset__legend--l", + isPageHeading: true } }, - { - value: "Yearly", - text: "Yearly", - hint: { - text: "For example, 2 to 3 times a year or fewer" + value: data.shishaCurrentGroupFrequency, + items: [ + { + value: "Daily", + text: "Daily" + }, + { + value: "Weekly", + text: "Weekly", + hint: { + text: "For example, on the weekend" + } + }, + { + value: "Monthly", + text: "Monthly", + hint: { + text: "Select this option if you smoke once a month or once every few months" + } + }, + { + value: "Yearly", + text: "Yearly", + hint: { + text: "For example, 2 to 3 times a year or fewer" + } } - } - ] - }) }} + ] + }) }} - {{ button({ - text: "Continue" - }) }} - + {{ button({ + text: "Continue" + }) }} + +
    -
    {% endblock %} diff --git a/app/views/prototype_v3/tobacco/shisha/current/group-or-alone.html b/app/views/prototype_v3/tobacco/shisha/current/group-or-alone.html index 704c004..c0db95d 100644 --- a/app/views/prototype_v3/tobacco/shisha/current/group-or-alone.html +++ b/app/views/prototype_v3/tobacco/shisha/current/group-or-alone.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'checkboxes/macro.njk' import checkboxes %} {% block pageTitle %} Shisha smoking - NHS @@ -10,15 +10,15 @@ }) }} {% endblock %} {% block content %} -
    -
    +
    +
    -

    Smoking shisha in a group or by yourself

    +

    Smoking shisha in a group or by yourself

    -

    If you smoked by yourself you are likely to have smoked more tobacco than if you shared a pipe in a group session.

    +

    If you smoked by yourself you are likely to have smoked more tobacco than if you shared a pipe in a group session.

    -
    + {{ checkboxes({ idPrefix: "shishaCurrentGroupOrAlone", @@ -32,6 +32,7 @@

    Smoking shisha in a group or by yourself

    hint: { text: "Select all that apply" }, + values: data.shishaCurrentGroupOrAlone, items: [ { value: "Group", @@ -47,7 +48,7 @@

    Smoking shisha in a group or by yourself

    {{ button({ text: "Continue" }) }} -
    -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/shisha/current/group-quantity.html b/app/views/prototype_v3/tobacco/shisha/current/group-quantity.html index 31e81e1..5dcfe02 100644 --- a/app/views/prototype_v3/tobacco/shisha/current/group-quantity.html +++ b/app/views/prototype_v3/tobacco/shisha/current/group-quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% if data.shishaCurrentGroupFrequency == "Daily" %} @@ -21,10 +21,10 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - +
    +
    + + {{ input({ label: { text: "Roughly, how many hours a " + frequencyText + " do you normally smoke shisha for in a group?", @@ -42,11 +42,11 @@ }, value: data.shishaCurrentGroupQuantity }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/shisha/current/years-smoked.html b/app/views/prototype_v3/tobacco/shisha/current/years-smoked.html index b03f071..faa7a69 100644 --- a/app/views/prototype_v3/tobacco/shisha/current/years-smoked.html +++ b/app/views/prototype_v3/tobacco/shisha/current/years-smoked.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Shisha smoking - NHS @@ -10,14 +10,14 @@ }) }} {% endblock %} {% block content %} -
    -
    +
    +
    -

    Shisha smoking

    +

    Shisha smoking

    -

    We only need to know if you smoke shisha regularly. For example, if you have smoked on a monthly basis for a year or longer.

    +

    We only need to know if you smoke shisha regularly. For example, if you have smoked on a monthly basis for a year or longer.

    -
    + {{ input({ label: { @@ -39,7 +39,7 @@

    Shisha smoking

    {{ button({ text: "Continue" }) }} -
    -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/shisha/do-you-currently-smoke.html b/app/views/prototype_v3/tobacco/shisha/do-you-currently-smoke.html index 255fb0f..4f0d578 100644 --- a/app/views/prototype_v3/tobacco/shisha/do-you-currently-smoke.html +++ b/app/views/prototype_v3/tobacco/shisha/do-you-currently-smoke.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Do you currently smoke shisha - NHS @@ -12,37 +12,37 @@ {% endblock %} {% block content %} -
    -
    -
    - - {{ radios({ - idPrefix: "currentlySmokesShisha", - name: "currentlySmokesShisha", - value: data["currentlySmokesShisha"], - fieldset: { - legend: { - text: "Do you currently smoke shisha?", - classes: "nhsuk-fieldset__legend--l", - isPageHeading: true - } - }, - items: [ - { - value: "Yes", - text: "Yes" +
    +
    + + + {{ radios({ + idPrefix: "currentlySmokesShisha", + name: "currentlySmokesShisha", + fieldset: { + legend: { + text: "Do you currently smoke shisha?", + classes: "nhsuk-fieldset__legend--l", + isPageHeading: true + } }, - { - value: "No", - text: "No" - } - ] - }) }} + value: data.currentlySmokesShisha, + items: [ + { + value: "Yes", + text: "Yes" + }, + { + value: "No", + text: "No" + } + ] + }) }} - {{ button({ - text: "Continue" - }) }} - + {{ button({ + text: "Continue" + }) }} + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/shisha/former/alone-frequency.html b/app/views/prototype_v3/tobacco/shisha/former/alone-frequency.html index be45406..7a18709 100644 --- a/app/views/prototype_v3/tobacco/shisha/former/alone-frequency.html +++ b/app/views/prototype_v3/tobacco/shisha/former/alone-frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} Shisha smoking alone - NHS @@ -10,52 +10,53 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - {{ radios({ - idPrefix: "shishaFormerAloneFrequency", - name: "shishaFormerAloneFrequency", - fieldset: { - legend: { - text: "How often did you smoke shisha by yourself?", - classes: "nhsuk-fieldset__legend--l", - isPageHeading: true - } - }, - items: [ - { - value: "Daily", - text: "Daily" - }, - { - value: "Weekly", - text: "Weekly", - hint: { - text: "For example, on the weekend" - } - }, - { - value: "Monthly", - text: "Monthly", - hint: { - text: "Select this option if you smoke once a month or once every few months" +
    +
    + + {{ radios({ + idPrefix: "shishaFormerAloneFrequency", + name: "shishaFormerAloneFrequency", + fieldset: { + legend: { + text: "How often did you smoke shisha by yourself?", + classes: "nhsuk-fieldset__legend--l", + isPageHeading: true } }, - { - value: "Yearly", - text: "Yearly", - hint: { - text: "For example, 2 to 3 times a year or fewer" + value: data.shishaFormerAloneFrequency, + items: [ + { + value: "Daily", + text: "Daily" + }, + { + value: "Weekly", + text: "Weekly", + hint: { + text: "For example, on the weekend" + } + }, + { + value: "Monthly", + text: "Monthly", + hint: { + text: "Select this option if you smoke once a month or once every few months" + } + }, + { + value: "Yearly", + text: "Yearly", + hint: { + text: "For example, 2 to 3 times a year or fewer" + } } - } - ] - }) }} + ] + }) }} - {{ button({ - text: "Continue" - }) }} - + {{ button({ + text: "Continue" + }) }} + +
    -
    {% endblock %} diff --git a/app/views/prototype_v3/tobacco/shisha/former/alone-quantity.html b/app/views/prototype_v3/tobacco/shisha/former/alone-quantity.html index a1f1c72..a7690b5 100644 --- a/app/views/prototype_v3/tobacco/shisha/former/alone-quantity.html +++ b/app/views/prototype_v3/tobacco/shisha/former/alone-quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% if data.shishaFormerAloneFrequency == "Daily" %} @@ -21,10 +21,10 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - +
    +
    + + {{ input({ label: { text: "Roughly, how many hours a " + frequencyText + " did you normally smoke shisha for by yourself?", @@ -42,11 +42,11 @@ }, value: data.shishaFormerAloneQuantity }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/shisha/former/group-frequency.html b/app/views/prototype_v3/tobacco/shisha/former/group-frequency.html index df4f44b..d822287 100644 --- a/app/views/prototype_v3/tobacco/shisha/former/group-frequency.html +++ b/app/views/prototype_v3/tobacco/shisha/former/group-frequency.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'radios/macro.njk' import radios %} {% block pageTitle %} Shisha smoking in a group - NHS @@ -10,52 +10,53 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - {{ radios({ - idPrefix: "shishaFormerGroupFrequency", - name: "shishaFormerGroupFrequency", - fieldset: { - legend: { - text: "How often did you smoke shisha in a group?", - classes: "nhsuk-fieldset__legend--l", - isPageHeading: true - } - }, - items: [ - { - value: "Daily", - text: "Daily" - }, - { - value: "Weekly", - text: "Weekly", - hint: { - text: "For example, on the weekend" - } - }, - { - value: "Monthly", - text: "Monthly", - hint: { - text: "Select this option if you smoke once a month or once every few months" +
    +
    + + {{ radios({ + idPrefix: "shishaFormerGroupFrequency", + name: "shishaFormerGroupFrequency", + fieldset: { + legend: { + text: "How often did you smoke shisha in a group?", + classes: "nhsuk-fieldset__legend--l", + isPageHeading: true } }, - { - value: "Yearly", - text: "Yearly", - hint: { - text: "For example, 2 to 3 times a year or fewer" + value: data.shishaFormerGroupFrequency, + items: [ + { + value: "Daily", + text: "Daily" + }, + { + value: "Weekly", + text: "Weekly", + hint: { + text: "For example, on the weekend" + } + }, + { + value: "Monthly", + text: "Monthly", + hint: { + text: "Select this option if you smoke once a month or once every few months" + } + }, + { + value: "Yearly", + text: "Yearly", + hint: { + text: "For example, 2 to 3 times a year or fewer" + } } - } - ] - }) }} + ] + }) }} - {{ button({ - text: "Continue" - }) }} - + {{ button({ + text: "Continue" + }) }} + +
    -
    {% endblock %} diff --git a/app/views/prototype_v3/tobacco/shisha/former/group-or-alone.html b/app/views/prototype_v3/tobacco/shisha/former/group-or-alone.html index b753a85..58f42d5 100644 --- a/app/views/prototype_v3/tobacco/shisha/former/group-or-alone.html +++ b/app/views/prototype_v3/tobacco/shisha/former/group-or-alone.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'checkboxes/macro.njk' import checkboxes %} {% block pageTitle %} Shisha smoking - NHS @@ -10,15 +10,15 @@ }) }} {% endblock %} {% block content %} -
    -
    +
    +
    -

    Smoking shisha in a group or by yourself

    +

    Smoking shisha in a group or by yourself

    -

    If you smoked by yourself you are likely to have smoked more tobacco than if you shared a pipe in a group session.

    +

    If you smoked by yourself you are likely to have smoked more tobacco than if you shared a pipe in a group session.

    -
    + {{ checkboxes({ idPrefix: "shishaFormerGroupOrAlone", @@ -32,6 +32,7 @@

    Smoking shisha in a group or by yourself

    hint: { text: "Select all that apply" }, + values: data.shishaFormerGroupOrAlone, items: [ { value: "Group", @@ -47,7 +48,7 @@

    Smoking shisha in a group or by yourself

    {{ button({ text: "Continue" }) }} -
    -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/shisha/former/group-quantity.html b/app/views/prototype_v3/tobacco/shisha/former/group-quantity.html index e1f9332..1cf0935 100644 --- a/app/views/prototype_v3/tobacco/shisha/former/group-quantity.html +++ b/app/views/prototype_v3/tobacco/shisha/former/group-quantity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% if data.shishaFormerGroupFrequency == "Daily" %} @@ -21,10 +21,10 @@ }) }} {% endblock %} {% block content %} -
    -
    -
    - +
    +
    + + {{ input({ label: { text: "Roughly, how many hours a " + frequencyText + " did you normally smoke shisha for in a group?", @@ -42,11 +42,11 @@ }, value: data.shishaFormerGroupQuantity }) }} - + {{ button({ text: "Continue" }) }} - -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/tobacco/shisha/former/years-smoked.html b/app/views/prototype_v3/tobacco/shisha/former/years-smoked.html index 1067cb9..8ad76a6 100644 --- a/app/views/prototype_v3/tobacco/shisha/former/years-smoked.html +++ b/app/views/prototype_v3/tobacco/shisha/former/years-smoked.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% from 'input/macro.njk' import input %} {% block pageTitle %} Shisha smoking - NHS @@ -10,14 +10,14 @@ }) }} {% endblock %} {% block content %} -
    -
    +
    +
    -

    Shisha smoking

    +

    Shisha smoking

    -

    We only need to know if you smoked shisha regularly. For example, if you smoked on a monthly basis for a year or longer.

    +

    We only need to know if you smoked shisha regularly. For example, if you smoked on a monthly basis for a year or longer.

    -
    + {{ input({ label: { @@ -39,7 +39,7 @@

    Shisha smoking

    {{ button({ text: "Continue" }) }} -
    -
    -
    -{% endblock %} \ No newline at end of file + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/what-do-or-did-smoke.html b/app/views/prototype_v3/what-do-or-did-smoke.html index 2210730..0983fd1 100644 --- a/app/views/prototype_v3/what-do-or-did-smoke.html +++ b/app/views/prototype_v3/what-do-or-did-smoke.html @@ -1,12 +1,12 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} - {% if data["smokedRegularly"] == "Yes-currently" %} - The type of tobacco you smoke or used to smoke - NHS - {% elif data["smokedRegularly"] == "Yes-usedToRegularly" %} - The type of tobacco you smoked - NHS + {% if data.smokedRegularly == "Yes-currently" %} + The type of tobacco you smoke or used to smoke - NHS + {% elif data.smokedRegularly == "Yes-usedToRegularly" %} + The type of tobacco you smoked - NHS {% else %} - The type of tobacco you smoke or used to smoke - NHS + The type of tobacco you smoke or used to smoke - NHS {% endif %} {% endblock %} @@ -18,111 +18,111 @@ {% endblock %} {% block content %} -
    -
    +
    +
    - {% if data["smokedRegularly"] == "Yes-currently" %} -

    The type of tobacco you smoke or used to smoke

    + {% if data.smokedRegularly == "Yes-currently" %} +

    The type of tobacco you smoke or used to smoke

    -

    Smoking affects your health in different ways depending on what you smoke.

    +

    Smoking affects your health in different ways depending on what you smoke.

    -

    We need to know what you smoke, or used to smoke, frequently. For example, if you have smoked a pipe on a weekly basis for a year or longer.

    +

    We need to know what you smoke, or used to smoke, frequently. For example, if you have smoked a pipe on a weekly basis for a year or longer.

    -

    You do not need to tell us about less frequent forms of smoking. For example, a cigar on special occasions.

    - {% elif data["smokedRegularly"] == "Yes-usedToRegularly" %} -

    The type of tobacco you smoked

    +

    You do not need to tell us about less frequent forms of smoking. For example, a cigar on special occasions.

    + {% elif data.smokedRegularly == "Yes-usedToRegularly" %} +

    The type of tobacco you smoked

    -

    Smoking affects your health in different ways depending on what you smoked.

    +

    Smoking affects your health in different ways depending on what you smoked.

    -

    We need to know what you smoked frequently. For example, if you smoked a pipe on a weekly basis for a year or longer.

    +

    We need to know what you smoked frequently. For example, if you smoked a pipe on a weekly basis for a year or longer.

    -

    You do not need to tell us about less frequent forms of smoking. For example, a cigar on special occasions.

    - {% else %} -

    The type of tobacco you smoke or used to smoke

    - -

    Smoking affects your health in different ways depending on what you smoke.

    - -

    We need to know what you smoke, or used to smoke, frequently. For example, if you have smoked a pipe on a weekly basis for a year or longer.

    +

    You do not need to tell us about less frequent forms of smoking. For example, a cigar on special occasions.

    + {% else %} +

    The type of tobacco you smoke or used to smoke

    -

    You do not need to tell us about less frequent forms of smoking. For example, a cigar on special occasions.

    - {% endif %} +

    Smoking affects your health in different ways depending on what you smoke.

    -
    +

    We need to know what you smoke, or used to smoke, frequently. For example, if you have smoked a pipe on a weekly basis for a year or longer.

    - {% if data["smokedRegularly"] == "Yes-currently" %} - {% set legendText = "What do you or have you smoked?" %} - {% elif data["smokedRegularly"] == "Yes-usedToRegularly" %} - {% set legendText = "What did you smoke?" %} - {% else %} - {% set legendText = "What do you or have you smoked?" %} +

    You do not need to tell us about less frequent forms of smoking. For example, a cigar on special occasions.

    {% endif %} - {{ checkboxes({ - idPrefix: "tobaccoTypes", - name: "tobaccoTypes", - values: data["tobaccoTypes"], - fieldset: { - legend: { - text: legendText, - classes: "nhsuk-fieldset__legend--m" - } - }, - hint: { - text: "Select all that apply" - }, - items: [ - { - value: "Cigarettes", - text: "Cigarettes" - }, - { - value: "Rolling tobacco", - text: "Rolling tobacco, or roll-ups" - }, - { - value: "Pipe", - text: "Pipe" - }, - { - value: "Small cigars", - text: "Small cigars", - hint: { - text: "Petit Corona or Short Panetela, usually 4 to 5 inches long" + + + {% if data.smokedRegularly == "Yes-currently" %} + {% set legendText = "What do you or have you smoked?" %} + {% elif data.smokedRegularly == "Yes-usedToRegularly" %} + {% set legendText = "What did you smoke?" %} + {% else %} + {% set legendText = "What do you or have you smoked?" %} + {% endif %} + + {{ checkboxes({ + idPrefix: "tobaccoTypes", + name: "tobaccoTypes", + fieldset: { + legend: { + text: legendText, + classes: "nhsuk-fieldset__legend--m" } }, - { - value: "Medium cigars", - text: "Medium cigars", - hint: { - text: "Robusto or Corona, usually 5 to 6 inches long" - } - }, - { - value: "Large cigars", - text: "Large cigars", - hint: { - text: "Churchill or Double Corona, usually 7 to 8 inches long" - } + hint: { + text: "Select all that apply" }, - { - value: "Cigarillos", - text: "Cigarillos", - hint: { - text: "Cafe Creme or Signature cigars, roughly the size of a cigarette" + values: data.tobaccoTypes, + items: [ + { + value: "Cigarettes", + text: "Cigarettes" + }, + { + value: "Rolling tobacco", + text: "Rolling tobacco, or roll-ups" + }, + { + value: "Pipe", + text: "Pipe" + }, + { + value: "Small cigars", + text: "Small cigars", + hint: { + text: "Petit Corona or Short Panetela, usually 4 to 5 inches long" + } + }, + { + value: "Medium cigars", + text: "Medium cigars", + hint: { + text: "Robusto or Corona, usually 5 to 6 inches long" + } + }, + { + value: "Large cigars", + text: "Large cigars", + hint: { + text: "Churchill or Double Corona, usually 7 to 8 inches long" + } + }, + { + value: "Cigarillos", + text: "Cigarillos", + hint: { + text: "Cafe Creme or Signature cigars, roughly the size of a cigarette" + } + }, + { + value: "Shisha", + text: "Shisha" } - }, - { - value: "Shisha", - text: "Shisha" - } - ] - }) }} - - {{ button({ - text: "Continue" - }) }} -
    + ] + }) }} + + {{ button({ + text: "Continue" + }) }} + +
    -
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/views/prototype_v3/your-education.html b/app/views/prototype_v3/your-education.html index 407ef1d..a27d148 100644 --- a/app/views/prototype_v3/your-education.html +++ b/app/views/prototype_v3/your-education.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Your education - NHS {% endblock %} @@ -9,83 +9,85 @@ }) }} {% endblock %} {% block content %} -
    -
    +
    +
    -

    Your education

    +

    Your education

    -

    We ask this question because education is linked to other factors that may impact your chances of developing lung cancer.

    +

    We ask this question because education is linked to other factors that may impact your chances of developing lung cancer.

    -

    If your qualification is not shown choose the closest level.

    +

    If your qualification is not shown choose the closest level.

    -
    - {{ checkboxes({ - idPrefix: "educationCompleted", - name: "educationCompleted", - fieldset: { - legend: { - text: "What level of education have you completed?", - classes: "nhsuk-fieldset__legend--m" - } - }, - hint: { - text: "Select all that apply" - }, - items: [ - { - value: "I finished school before the age of 15", - text: "I finished school before the age of 15" - }, - { - value: "GCSEs", - text: "GCSEs", - hint: { - text: "Previously O-levels" - } - }, - { - value: "A-levels", - text: "A-levels", - hint: { - text: "Previously Higher School Certificate (HSC)" - } - }, - { - value: "Further education", - text: "Further education", - hint: { - text: "For example, apprenticeships or Higher National Certificates (HNC)" - } - }, - { - value: "Bachelor's degree", - text: "Bachelor's degree", - hint: { - text: "A university degree, also known as an undergraduate degree" - } - }, - { - value: "Postgraduate degree", - text: "Postgraduate degree", - hint: { - text: "For example, a Masters or PhD" - } - }, - { - divider: "or" - }, - { - value: "Prefer not to say", - text: "Prefer not to say" - } - ] - }) }} - - {{ button({ - text: "Continue" - }) }} -
    +
    + {{ checkboxes({ + idPrefix: "educationCompleted", + name: "educationCompleted", + fieldset: { + legend: { + text: "What level of education have you completed?", + classes: "nhsuk-fieldset__legend--m", + isPageHeading: false + } + }, + hint: { + text: "Select all that apply" + }, + values: data.educationCompleted, + items: [ + { + value: "I finished school before the age of 15", + text: "I finished school before the age of 15" + }, + { + value: "GCSEs", + text: "GCSEs", + hint: { + text: "Previously O-levels" + } + }, + { + value: "A-levels", + text: "A-levels", + hint: { + text: "Previously Higher School Certificate (HSC)" + } + }, + { + value: "Further education", + text: "Further education", + hint: { + text: "For example, apprenticeships or Higher National Certificates (HNC)" + } + }, + { + value: "Bachelor's degree", + text: "Bachelor's degree", + hint: { + text: "A university degree, also known as an undergraduate degree" + } + }, + { + value: "Postgraduate degree", + text: "Postgraduate degree", + hint: { + text: "For example, a Masters or PhD" + } + }, + { + divider: "or" + }, + { + value: "Prefer not to say", + text: "Prefer not to say" + } + ] + }) }} -
    -
    -{% endblock %} \ No newline at end of file + {{ button({ + text: "Continue" + }) }} + + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/your-ethnic-background.html b/app/views/prototype_v3/your-ethnic-background.html index 1ee4df8..7f76f4e 100644 --- a/app/views/prototype_v3/your-ethnic-background.html +++ b/app/views/prototype_v3/your-ethnic-background.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Your ethnic background - NHS {% endblock %} @@ -9,60 +9,61 @@ }) }} {% endblock %} {% block content %} -
    -
    +
    +
    -

    Your ethnic background

    +

    Your ethnic background

    -

    We ask this question because your ethnicity may impact your chances of developing lung cancer.

    +

    We ask this question because your ethnicity may impact your chances of developing lung cancer.

    -
    - {{ radios({ - idPrefix: "ethnicBackground", - name: "ethnicBackground", - fieldset: { - legend: { - text: "What is your ethnic background?", - classes: "nhsuk-fieldset__legend--m" - } - }, - value: data.ethnicBackground, - items: [ - { - value: "Asian or Asian British", - text: "Asian or Asian British" - }, - { - value: "Black, African, Caribbean or Black British", - text: "Black, African, Caribbean or Black British" - }, - { - value: "Mixed or multiple ethnic groups", - text: "Mixed or multiple ethnic groups" - }, - { - value: "White", - text: "White" - }, - { - value: "Other ethnic group", - text: "Other ethnic group" - }, - { - divider: "or" - }, - { - value: "Prefer not to say", - text: "Prefer not to say" - } - ] - }) }} - - {{ button({ - text: "Continue" - }) }} -
    +
    + {{ radios({ + idPrefix: "ethnicBackground", + name: "ethnicBackground", + fieldset: { + legend: { + text: "What is your ethnic background?", + classes: "nhsuk-fieldset__legend--m", + isPageHeading: false + } + }, + value: data.ethnicBackground, + items: [ + { + value: "Asian or Asian British", + text: "Asian or Asian British" + }, + { + value: "Black, African, Caribbean or Black British", + text: "Black, African, Caribbean or Black British" + }, + { + value: "Mixed or multiple ethnic groups", + text: "Mixed or multiple ethnic groups" + }, + { + value: "White", + text: "White" + }, + { + value: "Other ethnic group", + text: "Other ethnic group" + }, + { + divider: "or" + }, + { + value: "Prefer not to say", + text: "Prefer not to say" + } + ] + }) }} -
    -
    -{% endblock %} \ No newline at end of file + {{ button({ + text: "Continue" + }) }} + + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/your-gender-identity.html b/app/views/prototype_v3/your-gender-identity.html index 2cca196..2241b7c 100644 --- a/app/views/prototype_v3/your-gender-identity.html +++ b/app/views/prototype_v3/your-gender-identity.html @@ -1,4 +1,4 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} {% block pageTitle %} Your gender identity - NHS {% endblock %} @@ -9,54 +9,55 @@ }) }} {% endblock %} {% block content %} -
    -
    +
    +
    -

    Your gender identity

    +

    Your gender identity

    -

    The answers you submit will not be shared with your patient care advisor during your phone appointment, or with your GP.

    +

    The answers you submit will not be shared with your patient care advisor during your phone appointment, or with your GP.

    -

    In the future we plan to use information about someone's gender identity to help us plan their care in the NHS lung cancer screening programme.

    +

    In the future we plan to use information about someone's gender identity to help us plan their care in the NHS lung cancer screening programme.

    -
    - {{ radios({ - idPrefix: "bestDescribe", - name: "bestDescribe", - fieldset: { - legend: { - text: "Which of these best describes you?", - classes: "nhsuk-fieldset__legend--m" - } - }, - value: data.bestDescribe, - items: [ - { - value: "Female", - text: "Female" - }, - { - value: "Male", - text: "Male" - }, - { - value: "Non-binary", - text: "Non-binary" - }, - { - divider: "or" - }, - { - value: "Prefer not to say", - text: "Prefer not to say" - } - ] - }) }} - - {{ button({ - text: "Continue" - }) }} -
    +
    + {{ radios({ + idPrefix: "bestDescribe", + name: "bestDescribe", + fieldset: { + legend: { + text: "Which of these best describes you?", + classes: "nhsuk-fieldset__legend--m", + isPageHeading: false + } + }, + value: data.bestDescribe, + items: [ + { + value: "Female", + text: "Female" + }, + { + value: "Male", + text: "Male" + }, + { + value: "Non-binary", + text: "Non-binary" + }, + { + divider: "or" + }, + { + value: "Prefer not to say", + text: "Prefer not to say" + } + ] + }) }} -
    -
    -{% endblock %} \ No newline at end of file + {{ button({ + text: "Continue" + }) }} + + +
    +
    +{% endblock %} diff --git a/app/views/prototype_v3/your-sex-at-birth.html b/app/views/prototype_v3/your-sex-at-birth.html index da67e33..8bca44b 100644 --- a/app/views/prototype_v3/your-sex-at-birth.html +++ b/app/views/prototype_v3/your-sex-at-birth.html @@ -1,49 +1,53 @@ -{% extends 'layout.html' %} +{% extends "layout.html" %} + {% block pageTitle %} Your sex at birth - NHS {% endblock %} + {% block beforeContent %} {{ backLink({ text: "Back", href: "javascript:history.back();" }) }} {% endblock %} + {% block content %} -
    -
    - -

    Your sex at birth

    - -

    Your sex may impact your chances of developing lung cancer.

    - -
    - {{ radios({ - idPrefix: "whatIsYourSex", - name: "whatIsYourSex", - fieldset: { - legend: { - text: "What was your sex at birth?", - classes: "nhsuk-fieldset__legend--m" - } - }, - value: data.whatIsYourSex, - items: [ - { - value: "Female", - text: "Female" - }, - { - value: "Male", - text: "Male" - } - ] - }) }} +
    +
    - {{ button({ - text: "Continue" - }) }} - +

    Your sex at birth

    + +

    Your sex may impact your chances of developing lung cancer.

    + +
    + {{ radios({ + idPrefix: "whatIsYourSex", + name: "whatIsYourSex", + fieldset: { + legend: { + text: "What was your sex at birth?", + classes: "nhsuk-fieldset__legend--m", + isPageHeading: false + } + }, + value: data.whatIsYourSex, + items: [ + { + value: "Female", + text: "Female" + }, + { + value: "Male", + text: "Male" + } + ] + }) }} + + {{ button({ + text: "Continue" + }) }} +
    -
    -
    +
    +
    {% endblock %}