Skip to content

Commit 7a99f12

Browse files
Create how-can-we-contact-inputs.html
1 parent 0446bc0 commit 7a99f12

File tree

1 file changed

+136
-0
lines changed

1 file changed

+136
-0
lines changed
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
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 are the contact details of the person caring for ' + data['name-first-name'] + '?' %}
10+
{% set hintText = 'The NHS and GP surgery can use these details to call, text or email about health care services for the person you are registering.' %}
11+
{% else %}
12+
{% set heading = 'What are your contact details?' %}
13+
{% set hintText = 'The NHS and your GP surgery can use these details to call, text or email you about health care services.' %}
14+
{% endif %}
15+
16+
{% block pageTitle %}
17+
{{ heading }} - {{ data.presets[0].servicename }} - NHS
18+
{% endblock %}
19+
20+
{% if (data['user-auth'] === 'p9') %}
21+
{% set link = 'confirm-contact-details' %}
22+
{% elif (data['have-current-uk-address'] === "No") %}
23+
{% set link = 'do-you-current-address' %}
24+
{% else %}
25+
{% if (data['select-current-address']) %}
26+
{% set link = 'what-is-your-current-address-selection' %}
27+
{% else %}
28+
{% set link = 'what-is-your-current-address-manual' %}
29+
{% endif %}
30+
{% endif %}
31+
32+
{% if (data['under-18-years'] === "true") %}
33+
{% set action = 'what-schooling-do-you-have' %}
34+
{% else %}
35+
{% set action = 'what-is-your-sex' %}
36+
{% endif %}
37+
38+
{% block outerContent %}
39+
{{ backLink({
40+
"href": link,
41+
"text": "Go back",
42+
"classes": "nhsuk-u-margin-top-4 nhsuk-u-margin-bottom-0"
43+
}) }}
44+
{% endblock %}
45+
46+
{% block content %}
47+
48+
<div class="nhsuk-grid-row">
49+
<div class="nhsuk-grid-column-two-thirds">
50+
51+
<form action="{{ action }}" method="post">
52+
53+
{% include 'live/includes/step.html' %}
54+
55+
{% call fieldset({
56+
legend: {
57+
text: heading,
58+
classes: "nhsuk-fieldset__legend--l",
59+
isPageHeading: true
60+
}
61+
}) %}
62+
63+
{{ hint({
64+
"text": hintText,
65+
"classes": "nhsuk-u-margin-bottom-2"
66+
}) }}
67+
68+
{{ input({
69+
label: {
70+
"text": "Home telephone number (optional)"
71+
},
72+
"classes": "nhsuk-input nhsuk-input--width-20",
73+
"id": "contact-home-phone",
74+
"name": "contact-home-phone",
75+
"spellcheck": false,
76+
"value": data['contact-home-phone']
77+
}) }}
78+
79+
{{ input({
80+
label: {
81+
"text": "Mobile telephone number (optional)"
82+
},
83+
"classes": "nhsuk-input nhsuk-input--width-20",
84+
"id": "contact-mobile",
85+
"name": "contact-mobile",
86+
"spellcheck": false,
87+
"value": data['contact-mobile']
88+
}) }}
89+
90+
{{ input({
91+
label: {
92+
"text": "Email address (optional)"
93+
},
94+
"id": "contact-email",
95+
"name": "contact-email",
96+
"spellcheck": false,
97+
"value": data['contact-email']
98+
}) }}
99+
100+
{% endcall %}
101+
102+
{{ button({
103+
"text": "Continue"
104+
}) }}
105+
106+
</form>
107+
108+
</div>
109+
</div>
110+
111+
{# DEVMODE SCENARIOS #}
112+
{% if data['devMode'] === 'true' %}
113+
<details class="nhsuk-details dev-mode dev-mode--routing" role="group">
114+
<summary class="nhsuk-details__summary" role="button" aria-controls="details-content-0" aria-expanded="true">
115+
<span class="nhsuk-details__summary-text">
116+
Routing choices
117+
</span>
118+
</summary>
119+
<div class="nhsuk-details__text">
120+
<h4>Routes</h4>
121+
<ul class="govuk-list govuk-list--bullet">
122+
<li>
123+
<a href="how-can-we-contact-inputs-prompt">Email and mobile are left blank</a>
124+
</li>
125+
</ul>
126+
</div>
127+
</details>
128+
{% endif %}
129+
130+
{% include 'live/includes/devmode.html' %}
131+
132+
{% endblock %}
133+
134+
{% block footer %}
135+
{% include 'live/includes/footer.html' %}
136+
{% endblock %}

0 commit comments

Comments
 (0)