Skip to content

Commit d87c226

Browse files
Adding screens for address testing
1 parent 7700625 commit d87c226

File tree

5 files changed

+504
-0
lines changed

5 files changed

+504
-0
lines changed
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{% set serviceHome = '/live/start' %}
2+
{% set servicePhase = 'beta' %}
3+
{% set feedbackType = 'step' %}
4+
{% set section = '2' %}
5+
6+
{% extends 'layout.html' %}
7+
8+
{% if (data['who-is-being-registered'] === "dependant") %}
9+
{% set heading = 'What is ' + data['name-first-name'] + ' address' %}
10+
{% else %}
11+
{% set heading = 'Your address' %}
12+
{% endif %}
13+
14+
{% block pageTitle %}
15+
{{ heading }} - {{ ServiceName }} - NHS
16+
{% endblock %}
17+
18+
{% block outerContent %}
19+
{{ backLink({
20+
"href": "check-answers-1",
21+
"text": "Go back",
22+
"classes": "nhsuk-u-margin-top-4 nhsuk-u-margin-bottom-0"
23+
}) }}
24+
{% endblock %}
25+
26+
{% block content %}
27+
<div class="nhsuk-grid-row">
28+
<div class="nhsuk-grid-column-two-thirds">
29+
30+
<form action="" method="post" autocomplete="off">
31+
32+
{% include 'live/includes/step.html' %}
33+
34+
{% call fieldset({
35+
legend: {
36+
text: heading,
37+
classes: "nhsuk-fieldset__legend--l",
38+
isPageHeading: true
39+
}
40+
}) %}
41+
42+
<p class="govuk-body">
43+
Tell us where you are living. This could be your permanent address or a temporary address such as a shelter, hostel or friend's house.
44+
</p>
45+
<p class="govuk-body">Your GP surgery can use your address to:</p>
46+
<ul class="govuk-list govuk-list--bullet">
47+
<li>contact you about appointments, prescriptions and other things relating to your health</li>
48+
<li>check if you are living within the area it covers</li>
49+
</ul>
50+
<legend class="govuk-fieldset__legend govuk-fieldset__legend--l">
51+
<h3 class="govuk-fieldset__heading">
52+
Do you have an address in the UK?
53+
</h3>
54+
</legend>
55+
56+
{{ hint({
57+
"text": hintText,
58+
"classes": "nhsuk-u-margin-bottom-4"
59+
}) }}
60+
61+
{{ radios({
62+
"idPrefix": "have-current-uk-address",
63+
"name": "have-current-uk-address",
64+
"items": [
65+
{
66+
"value": "Yes~/test/what-is-your-current-address",
67+
"text": "Yes",
68+
checked: checked("have-current-uk-address", "Yes")
69+
},
70+
{
71+
"value": "No~/test/thank-you",
72+
"text": "No",
73+
checked: checked("have-current-uk-address", "No")
74+
}
75+
]
76+
}) }}
77+
78+
{% endcall %}
79+
80+
{{ button({
81+
"text": "Continue"
82+
}) }}
83+
84+
</form>
85+
</div>
86+
</div>
87+
88+
89+
{% endblock %}
90+
91+
{% block footer %}
92+
{% include 'live/includes/footer.html' %}
93+
{% endblock %}

app/views/test/thank-you.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{% set serviceHome = '/live/start' %}
2+
{% set feedbackType = 'final' %}
3+
4+
{% extends 'layout.html' %}
5+
6+
{% block pageTitle %}
7+
Thank you for your feedback - {{ ServiceName }} - NHS
8+
{% endblock %}
9+
10+
{% block content %}
11+
12+
<div class="nhsuk-grid-row">
13+
<div class="nhsuk-grid-column-two-thirds">
14+
15+
<div aria-live="polite" class="nhsuk-u-reading-width">
16+
<div class="nhsuk-card">
17+
<div class="nhsuk-card__content">
18+
<h1 class="nhsuk-card__heading nhsuk-heading-l">Thank you for your feedback</h1>
19+
<p class="nhsuk-card__description">We appreciate your help and will use your feedback to improve our service.</p>
20+
</div>
21+
</div>
22+
</div>
23+
</div>
24+
</div>
25+
26+
{% endblock %}
27+
28+
{% block footer %}
29+
{% include 'live/includes/footer.html' %}
30+
{% endblock %}
Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
{% set serviceHome = '/live/start' %}
2+
{% set servicePhase = 'beta' %}
3+
{% set feedbackType = 'step' %}
4+
{% set section = '2' %}
5+
6+
{% extends 'layout.html' %}
7+
8+
{% if (data['who-is-being-registered'] === "dependant") %}
9+
{% set heading = "What is " + data['name-first-name'] + "'s current UK address?" %}
10+
{% else %}
11+
{% set heading = 'What is your current UK address?' %}
12+
{% endif %}
13+
14+
{% block pageTitle %}
15+
{{ heading }} - {{ ServiceName }} - NHS
16+
{% endblock %}
17+
18+
{% if (data['out-of-area'] === "out-of-area") %}
19+
{% set action = 'current-address-out-of-area' %}
20+
{% elif (data['user-auth'] === "p9") %}
21+
{% set action = 'confirm-contact-details' %}
22+
{% else %}
23+
{% set action = 'how-can-we-contact-inputs' %}
24+
{% endif %}
25+
26+
{% block outerContent %}
27+
{{ backLink({
28+
"href": "what-is-your-current-address",
29+
"text": "Go back",
30+
"classes": "nhsuk-u-margin-top-4 nhsuk-u-margin-bottom-0"
31+
}) }}
32+
{% endblock %}
33+
34+
{% block content %}
35+
36+
<div class="nhsuk-grid-row">
37+
<div class="nhsuk-grid-column-two-thirds">
38+
39+
<form action="thank-you" method="post" autocomplete="off">
40+
41+
{% include 'live/includes/step.html' %}
42+
43+
{% call fieldset({
44+
legend: {
45+
"text": heading,
46+
"classes": "nhsuk-fieldset__legend--l"
47+
}
48+
}) %}
49+
50+
{{ input({
51+
label: {
52+
"text": "Address line 1"
53+
},
54+
"id": "current-address-line-1",
55+
"name": "current-address-line-1",
56+
value: data['current-address-line-1']
57+
}) }}
58+
59+
{{ input({
60+
label: {
61+
"text": "Address line 2"
62+
},
63+
"id": "current-address-line-2",
64+
"name": "current-address-line-2",
65+
value: data['current-address-line-2']
66+
}) }}
67+
68+
{{ input({
69+
label: {
70+
"text": "Town or city"
71+
},
72+
"classes": "nhsuk-u-width-two-thirds",
73+
"id": "current-address-town",
74+
"name": "current-address-town",
75+
value: data['current-address-town']
76+
}) }}
77+
78+
{{ input({
79+
label: {
80+
"text": "Postcode"
81+
},
82+
"classes": "nhsuk-input--width-10",
83+
"id": "current-address-postcode",
84+
"name": "current-address-postcode",
85+
value: data['current-address-postcode']
86+
}) }}
87+
88+
{{ select({
89+
"id": "current-address-country",
90+
"name": "current-address-country",
91+
"label": {
92+
"text": "Country"
93+
},
94+
"items": [
95+
{
96+
"value": Choose,
97+
"text": "Choose country"
98+
},
99+
{
100+
"value": "England",
101+
"text": "England"
102+
},
103+
{
104+
"value": "Isle of Man",
105+
"text": "Isle of Man"
106+
},
107+
{
108+
"value": "Northern Ireland",
109+
"text": "Northern Ireland"
110+
},
111+
{
112+
"value": "Scotland",
113+
"text": "Scotland"
114+
},
115+
{
116+
"value": "Wales",
117+
"text": "Wales"
118+
}
119+
]
120+
}) }}
121+
122+
123+
{{ button({
124+
"text": "Continue"
125+
}) }}
126+
127+
{% endcall %}
128+
129+
</form>
130+
</div>
131+
</div>
132+
133+
{# DEVMODE SCENARIOS #}
134+
{% if data['devMode'] === 'true' %}
135+
<details class="nhsuk-details dev-mode dev-mode--routing" role="group">
136+
<summary class="nhsuk-details__summary" role="button" aria-controls="details-content-0" aria-expanded="true">
137+
<span class="nhsuk-details__summary-text">
138+
Routing choices
139+
</span>
140+
</summary>
141+
<div class="nhsuk-details__text">
142+
<h4>Routes catchment area</h4>
143+
<ul class="govuk-list govuk-list--bullet">
144+
<li>
145+
<a href="current-address-out-of-area">Outside catchment area</a>
146+
</li>
147+
<li>
148+
<a href="not-accepting-registrations">Outside catchment area and GP surgery not accepting out-of-catchment registrations</a>
149+
</li>
150+
</ul>
151+
</div>
152+
</details>
153+
{% endif %}
154+
155+
{% include 'live/includes/devmode.html' %}
156+
157+
{% endblock %}
158+
159+
{% block footer %}
160+
{% include 'live/includes/footer.html' %}
161+
{% endblock %}

0 commit comments

Comments
 (0)