Skip to content

Commit e0aaeed

Browse files
committed
Add non-functioning record medical info UI
Build up the page with the same components and content used in the prototype, leaving links non-functioning at this stage.
1 parent babfd38 commit e0aaeed

1 file changed

Lines changed: 78 additions & 4 deletions

File tree

manage_breast_screening/templates/record_a_mammogram/record_medical_information.jinja

Lines changed: 78 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
{% extends "wizard_step.jinja" %}
22
{% from "card/macro.jinja" import card %}
33
{% from "inset-text/macro.jinja" import insetText %}
4-
4+
{% from "summary-list/macro.jinja" import summaryList %}
55
{% block stepContent %}
66

77
{% set symptoms_card_html %}
8+
{% set has_symptoms = false %}
9+
10+
{% set insetHtml %}
11+
<p>No symptoms have been recorded for this participant.</p>
12+
{% endset %}
13+
{{ insetText({
14+
"html": insetHtml,
15+
"classes": "nhsuk-u-margin-top-3 nhsuk-u-margin-bottom-4"
16+
}) }}
817

18+
<p class="nhsuk-u-margin-top-4 nhsuk-u-margin-bottom-0">
19+
<a href="#" class="nhsuk-link">{{ "Add another symptom" if has_symptoms else "Add a symptom" }}</a>
20+
</p>
921
{% endset %}
1022
{{ card({
1123
"heading": "Recent breast changes or symptoms",
@@ -14,16 +26,73 @@
1426
}) }}
1527

1628
{% set medical_history_card_html %}
17-
18-
{% endset %}
29+
{% set breast_cancer_history_link %}
30+
<a class="nhsuk-link" href="#">Enter breast cancer history</a>
31+
{% endset %}
32+
{% set non_cancerous_lump_diagnosis_link %}
33+
<a class="nhsuk-link" href="#">Enter non-cancerous lump diagnosis</a>
34+
{% endset %}
35+
{% set chest_procedures_link %}
36+
<a class="nhsuk-link" href="#">Enter other breast or chest procedures</a>
37+
{% endset %}
38+
{{ summaryList({
39+
"rows": [
40+
{
41+
"key": {
42+
"text": "Breast cancer history"
43+
},
44+
"value": {
45+
"html": breast_cancer_history_link
46+
},
47+
"actions": {
48+
"items": []
49+
}
50+
},
51+
{
52+
"key": {
53+
"text": "Non-cancerous lump diagnosis"
54+
},
55+
"value": {
56+
"html": non_cancerous_lump_diagnosis_link
57+
},
58+
"actions": {
59+
"items": []
60+
}
61+
},
62+
{
63+
"key": {
64+
"text": "Other breast or chest procedures"
65+
},
66+
"value": {
67+
"html": chest_procedures_link
68+
},
69+
"actions": {
70+
"items": []
71+
}
72+
}
73+
]
74+
}) }}
75+
{% endset %}
1976
{{ card({
2077
"heading": "Medical history",
2178
"headingLevel": "2",
2279
"descriptionHtml": medical_history_card_html
2380
}) }}
2481

2582
{% set breast_features_card_html %}
83+
{% set breast_features_recorded = false %}
84+
85+
{% set insetHtml %}
86+
<p>No breast features have been recorded for this participant. Add any scars, moles, warts or lumps observed or reported during the appointment.</p>
87+
{% endset %}
88+
{{ insetText({
89+
"html": insetHtml,
90+
"classes": "nhsuk-u-margin-top-3 nhsuk-u-margin-bottom-4"
91+
}) }}
2692

93+
<p class="nhsuk-u-margin-top-4 nhsuk-u-margin-bottom-0">
94+
<a href="#" class="nhsuk-link">{{ "Add another feature" if breast_features_recorded else "Add a feature" }}</a>
95+
</p>
2796
{% endset %}
2897
{{ card({
2998
"heading": "Breast features",
@@ -32,7 +101,12 @@
32101
}) }}
33102

34103
{% set other_information_card_html %}
35-
104+
{% set hrt_link %}
105+
<a class="nhsuk-link" href="#">Enter hormone replacement therapy (HRT)</a>
106+
{% endset %}
107+
{% set pregnancy_and_breastfeeding_link %}
108+
<a class="nhsuk-link" href="#">Enter pregnancy and breastfeeding</a>
109+
{% endset %}
36110
{% endset %}
37111
{{ card({
38112
"heading": "Other information",

0 commit comments

Comments
 (0)