File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed
manage_breast_screening/mammograms Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 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({
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments