@@ -38,7 +38,7 @@ <h1 class="nhsuk-heading-l">
3838
3939 </ div >
4040
41- {{ currentUser | log("Currenet user")}}
41+ {{ currentUser | log("Current user")}}
4242 {{ currentUser | isClinician | log("is clinician")}}
4343
4444 {# Clinic time and date #}
@@ -106,7 +106,7 @@ <h1 class="nhsuk-heading-l">
106106 {% set eventBaseUrl = "/clinics/" + clinicId + "/events/" + event.id %}
107107 {% set statusTagId = "status-tag-" + event.id %}
108108
109- < tr id ="event-row-{{event.id}} ">
109+ < tr class =" event-row " id ="event-row-{{event.id}} ">
110110
111111 {# Appointment time #}
112112 < td class ="nhsuk-table__cell "> {{ event.statusHistory[0].timestamp | formatTimeString }}
@@ -229,12 +229,28 @@ <h1 class="nhsuk-heading-l">
229229 event: event,
230230 participant: participant,
231231 confirmIdentityOnCheckIn: true if data.settings.screening.confirmIdentityOnCheckIn == 'true' else false,
232- statusTagId: statusTagId
232+ statusTagId: statusTagId,
233+ currentUser: currentUser
233234 }) }}
234235
235236 {% endif %}
236237
237- {% if not (event | isFinal) and (currentUser | isClinician) %}
238+ {% if currentUser | isClinician %}
239+ {% if event | hasNotStarted %}
240+ {# Start appointment link gets rendered hidden if the appointment is not checked in - js can later remove this class to make the link visible #}
241+ < a href ="{{ eventBaseUrl }}/start?event[workflowStatus][appointment]=started " class ="app-nowrap {{ 'app-display-none' if event.status == 'event_scheduled' }} js-start-appointment-link ">
242+ Start appointment
243+ </ a >
244+
245+ {% elseif event | startedByCurrentUser %}
246+ < a href ="{{ eventBaseUrl }}/identity ">
247+ Resume appointment {{- ((" for " + (participant | getShortName)) | asVisuallyHiddenText) | safe }}
248+ </ a >
249+ {% endif %}
250+
251+ {% endif %}
252+
253+ {# {% if not (event | isFinal) and (currentUser | isClinician) %}
238254 < p class ="nhsuk-u-margin-bottom-0 ">
239255 {% if event | hasNotStarted %}
240256 < a href ="{{ eventBaseUrl }}/start?event[workflowStatus][appointment]=started " class ="app-nowrap ">
@@ -246,7 +262,7 @@ <h1 class="nhsuk-heading-l">
246262 </ a >
247263 {% endif %}
248264 </ p >
249- {% endif %}
265+ {% endif %} #}
250266
251267 </ td >
252268 </ tr >
@@ -255,38 +271,5 @@ <h1 class="nhsuk-heading-l">
255271 </ table >
256272 {% endif %}
257273
258- < h2 class ="nhsuk-heading-m "> Details</ h2 >
259-
260- < dl class ="nhsuk-summary-list ">
261- < div class ="nhsuk-summary-list__row ">
262- < dt class ="nhsuk-summary-list__key "> Location</ dt >
263- < dd class ="nhsuk-summary-list__value ">
264- {{ unit.name }}< br >
265- {% for item, line in unit.address %}
266- {{ line }}{% if not loop.last %}< br > {% endif %}
267- {% endfor %}
268- </ dd >
269- </ div >
270-
271- < div class ="nhsuk-summary-list__row ">
272- < dt class ="nhsuk-summary-list__key "> Phone</ dt >
273- < dd class ="nhsuk-summary-list__value "> {{ unit.phoneNumber }}</ dd >
274- </ div >
275-
276- < div class ="nhsuk-summary-list__row ">
277- < dt class ="nhsuk-summary-list__key "> Date</ dt >
278- < dd class ="nhsuk-summary-list__value "> {{ clinic.date | formatDate }}</ dd >
279- </ div >
280-
281- < div class ="nhsuk-summary-list__row ">
282- < dt class ="nhsuk-summary-list__key "> Location</ dt >
283- < dd class ="nhsuk-summary-list__value "> {{ clinic.locationType | formatWords | sentenceCase }}</ dd >
284- </ div >
285-
286- < div class ="nhsuk-summary-list__row ">
287- < dt class ="nhsuk-summary-list__key "> Type</ dt >
288- < dd class ="nhsuk-summary-list__value "> {{ clinic.clinicType | sentenceCase }}</ dd >
289- </ div >
290- </ dl >
291274
292275{% endblock %}
0 commit comments