Skip to content

Commit 37734aa

Browse files
authored
Add other medical information section and page (#165)
* Add other medical information section and page * Get data saving working
1 parent e277a3a commit 37734aa

File tree

2 files changed

+42
-4
lines changed

2 files changed

+42
-4
lines changed

app/views/_includes/summary-lists/medical-information/other-relevant-information.njk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,17 @@
119119
},
120120
{
121121
key: {
122-
text: "Mammographer notes"
122+
text: "Other medical information"
123123
},
124124
value: {
125-
html: ""
125+
html: data.event.medicalInformation.otherMedicalInformation
126126
},
127127
actions: {
128128
items: [
129129
{
130-
href: "#",
130+
href: "./medical-information/other-medical-information" | urlWithReferrer(currentUrl, scrollTo),
131131
text: "Change",
132-
visuallyHiddenText: "mammographer notes"
132+
visuallyHiddenText: "other medical information"
133133
}
134134
]
135135
} if allowEdits
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{# app/views/events/medical-information/other-medical-information.html #}
2+
3+
{% extends 'layout-app.html' %}
4+
5+
{% set pageHeading = "Other medical information" %}
6+
7+
{% set gridColumn = "nhsuk-grid-column-two-thirds" %}
8+
9+
{% set formAction = './../record-medical-information' | getReturnUrl(referrerChain, query.scrollTo) %}
10+
11+
12+
{% block pageContent %}
13+
14+
15+
<h1 class="nhsuk-heading-l">
16+
<span class="nhsuk-caption-l">
17+
{{ participant | getFullName }}
18+
</span>
19+
{{ pageHeading }}
20+
</h1>
21+
22+
{{ textarea({
23+
name: "event[medicalInformation][otherMedicalInformation]",
24+
value: data.event.medicalInformation.otherMedicalInformation,
25+
hint: {
26+
text: "Provide details of any relevant health conditions or medications that are not covered by symptoms or medical history questions."
27+
},
28+
rows: 10
29+
}) }}
30+
31+
{{ button({
32+
text: "Save"
33+
}) }}
34+
35+
36+
37+
38+
{% endblock %}

0 commit comments

Comments
 (0)