Skip to content

Commit 54943af

Browse files
Merge pull request #940 from NHSDigital/DTOSS-12064-check-info-personal-info
Add personal information feature card - check information
2 parents 59e51f9 + c985cf7 commit 54943af

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

manage_breast_screening/mammograms/jinja2/mammograms/check_information.jinja

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,36 @@
11
{% extends 'workflow_step.jinja' %}
2+
{% from "nhsuk/components/card/macro.jinja" import card %}
3+
{% from "nhsuk/components/summary-list/macro.jinja" import summaryList %}
4+
{% from "components/participant-details/summary_list_rows.jinja" import ethnicity_html %}
25

36
{% set active_workflow_step = 'CHECK_INFORMATION' %}
47

58
{% block step_content %}
69
<p>Before concluding this appointment, confirm that the information recorded is correct.</p>
710
{% endblock %}
811

12+
913
{% block wizard_form %}
14+
{% block page_content %}
15+
{% call card({
16+
"heading": "Personal Information"
17+
}) %}
18+
19+
{{ summaryList({
20+
"rows": [
21+
{
22+
"key": {
23+
"text": "Ethnicity"
24+
},
25+
"value" : {
26+
"text": ethnicity_html(presented_appointment.participant) | default("Not provided", true)
27+
}
28+
}
29+
]
30+
}) }}
31+
32+
{% endcall %}
33+
{% endblock %}
1034
<form action="{{ url('mammograms:complete_screening', kwargs={'pk': presented_appointment.pk}) }}" method="post" novalidate>
1135
{{ csrf_input }}
1236
{{ button({

manage_breast_screening/mammograms/views/mammogram_views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,12 @@ def check_information(request, pk):
187187
provider = request.user.current_provider
188188
try:
189189
appointment = provider.appointments.select_related(
190+
"clinic_slot__clinic",
190191
"screening_episode__participant",
192+
"screening_episode__participant__address",
191193
).get(pk=pk)
192194
except Appointment.DoesNotExist:
193-
raise Http404(APPOINTMENT_NOT_FOUND)
195+
raise Http404("Appointment not found")
194196

195197
return render(
196198
request,

0 commit comments

Comments
 (0)