Skip to content

Commit ee73d18

Browse files
Create would-you-donate-organs.html
1 parent 711bbce commit ee73d18

File tree

1 file changed

+89
-0
lines changed

1 file changed

+89
-0
lines changed
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{% set serviceHome = '/live/start' %}
2+
{% set servicePhase = 'beta' %}
3+
{% set feedbackType = 'step' %}
4+
{% set section = '3' %}
5+
6+
{% extends 'layout.html' %}
7+
8+
{% set heading = 'Would you like to donate your organs and tissue?' %}
9+
10+
{% if (data['alcohol-consumption'] !== "Never" and data['alcohol-consumption'] !== "Prefer not to say" and data['units']) %}
11+
{% set link = 'how-often-six-or-more-units' %}
12+
{% else %}
13+
{% set link = 'how-often-do-you-drink-alcohol' %}
14+
{% endif %}
15+
16+
{% block pageTitle %}
17+
{{ heading }} - {{ data.presets[0].servicename }} - NHS
18+
{% endblock %}
19+
20+
{% block outerContent %}
21+
{{ backLink({
22+
"href": link,
23+
"text": "Go back",
24+
"classes": "nhsuk-u-margin-top-4 nhsuk-u-margin-bottom-0"
25+
}) }}
26+
{% endblock %}
27+
28+
{% block content %}
29+
30+
<div class="nhsuk-grid-row">
31+
<div class="nhsuk-grid-column-two-thirds">
32+
33+
<form action="" method="post" autocomplete="off">
34+
35+
{% include 'live/includes/step.html' %}
36+
37+
{{ radios({
38+
"idPrefix": "organDonor",
39+
"name": "organDonor",
40+
"fieldset": {
41+
"legend": {
42+
"text": heading,
43+
"classes": "nhsuk-fieldset__legend--l",
44+
"isPageHeading": "true"
45+
}
46+
},
47+
"hint": {
48+
"text": "Select one option"
49+
},
50+
"items": [
51+
{
52+
"value": "Yes~/live/organ-faith",
53+
"text": "Yes, all of my organs and tissue",
54+
hint: {
55+
text: "Help up to 9 people through organ donation and even more through tissue donation"
56+
},
57+
checked: checked("organDonor", "Yes")
58+
},
59+
{
60+
"value": "Some~/live/organ-select",
61+
"text": "Yes, some organs and tissue",
62+
hint: {
63+
text: "Select which of your organs and tissue to donate"
64+
},
65+
checked: checked("organDonor", "Some")
66+
},
67+
{
68+
"value": "No~/live/scr",
69+
"text": "No, none of my organs and tissue",
70+
checked: checked("organDonor", "No")
71+
}
72+
]
73+
}) }}
74+
75+
{{ button({
76+
"text": "Continue"
77+
}) }}
78+
79+
</form>
80+
</div>
81+
</div>
82+
83+
{% include 'live/includes/devmode.html' %}
84+
85+
{% endblock %}
86+
87+
{% block footer %}
88+
{% include 'live/includes/footer.html' %}
89+
{% endblock %}

0 commit comments

Comments
 (0)