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