1-
21{% extends 'layout-app.html' %}
3-
4- {% set pageHeading = "Today’s clinics" %}
5-
2+ {% set pageHeading = "Today's clinics" %}
63
74{% block pageContent %}
85 {% set unit = data.breastScreeningUnits | findById(clinic.breastScreeningUnitId) %}
@@ -14,36 +11,33 @@ <h1 class="nhsuk-heading-l">
1411 </ h1 >
1512
1613 {% if events.length === 0 %}
17- < p class =" nhsuk-body " > No participants scheduled for this clinic.</ p >
14+ < p > No participants scheduled for this clinic.</ p >
1815 {% else %}
16+ < p > {{ events.length }} scheduled participants</ p >
17+
1918 < table class ="nhsuk-table ">
20- < caption class ="nhsuk-table__caption ">
21- {{ events.length }} scheduled participants
22- </ caption >
2319 < thead class ="nhsuk-table__head ">
2420 < tr >
25- < th scope ="col " class ="nhsuk-table__header "> Time</ th >
26- < th scope ="col " class ="nhsuk-table__header "> Name</ th >
27- < th scope ="col " class ="nhsuk-table__header "> SX number</ th >
28- < th scope ="col " class ="nhsuk-table__header "> Status</ th >
29- < th scope ="col " class ="nhsuk-table__header "> Actions</ th >
21+ < th class ="nhsuk-table__header "> Time</ th >
22+ < th class ="nhsuk-table__header "> Name</ th >
23+ < th class ="nhsuk-table__header "> Postcode</ th >
24+ < th class ="nhsuk-table__header "> SX number</ th >
25+ < th class ="nhsuk-table__header "> Status</ th >
26+ < th class ="nhsuk-table__header "> Actions</ th >
3027 </ tr >
3128 </ thead >
3229 < tbody class ="nhsuk-table__body ">
3330 {% for event in events %}
3431 {% set participant = data.participants | findById(event.participantId) %}
35- < tr class ="nhsuk-table__row ">
36- < td class ="nhsuk-table__cell ">
37- {{ event.statusHistory[0].timestamp | formatTime }}
38- </ td >
32+ < tr >
33+ < td class ="nhsuk-table__cell "> {{ event.statusHistory[0].timestamp | formatTime }}</ td >
3934 < td class ="nhsuk-table__cell ">
4035 < a href ="/clinics/{{ clinicId }}/participants/{{ participant.id }} " class ="nhsuk-link ">
4136 {{ participant | getFullName }}
4237 </ a >
4338 </ td >
44- < td class ="nhsuk-table__cell ">
45- {{ participant.sxNumber }}
46- </ td >
39+ < td class ="nhsuk-table__cell "> {{ participant.demographicInformation.address.postcode | noWrap }}</ td >
40+ < td class ="nhsuk-table__cell "> {{ participant.sxNumber }}</ td >
4741 < td class ="nhsuk-table__cell ">
4842 {{ tag({
4943 text: event.status | formatWords | sentenceCase,
@@ -52,7 +46,9 @@ <h1 class="nhsuk-heading-l">
5246 </ td >
5347 < td class ="nhsuk-table__cell ">
5448 {% if event.status === 'scheduled' %}
55- < a href ="/clinics/{{ clinicId }}/check-in/{{ event.id }} " class ="nhsuk-link "> {{ "Check in" | noWrap }}</ a >
49+ < a href ="#/clinics/{{ clinicId }}/check-in/{{ event.id }} " class ="nhsuk-link ">
50+ {{ "Check in" | noWrap }}
51+ </ a >
5652 {% endif %}
5753 </ td >
5854 </ tr >
@@ -62,6 +58,7 @@ <h1 class="nhsuk-heading-l">
6258 {% endif %}
6359
6460 < h2 class ="nhsuk-heading-m "> Details</ h2 >
61+
6562 < dl class ="nhsuk-summary-list ">
6663 < div class ="nhsuk-summary-list__row ">
6764 < dt class ="nhsuk-summary-list__key "> Location</ dt >
@@ -70,22 +67,22 @@ <h2 class="nhsuk-heading-m">Details</h2>
7067 {{ unit.address | replace("\n", "< br > ") | safe }}
7168 </ dd >
7269 </ div >
70+
7371 < div class ="nhsuk-summary-list__row ">
7472 < dt class ="nhsuk-summary-list__key "> Phone</ dt >
7573 < dd class ="nhsuk-summary-list__value "> {{ unit.phoneNumber }}</ dd >
7674 </ div >
75+
7776 < div class ="nhsuk-summary-list__row ">
7877 < dt class ="nhsuk-summary-list__key "> Date</ dt >
7978 < dd class ="nhsuk-summary-list__value "> {{ clinic.date | formatDate }}</ dd >
8079 </ div >
80+
8181 < div class ="nhsuk-summary-list__row ">
8282 < dt class ="nhsuk-summary-list__key "> Type</ dt >
83- < dd class ="nhsuk-summary-list__value ">
84- {{ clinic.clinicType | replace("_", " ") | capitalize }}
85- </ dd >
83+ < dd class ="nhsuk-summary-list__value "> {{ clinic.clinicType | replace("_", " ") | capitalize }}</ dd >
8684 </ div >
8785 </ dl >
8886
8987 < a href ="/clinics " class ="nhsuk-back-link "> Back to today's clinics</ a >
90-
9188{% endblock %}
0 commit comments