diff --git a/app/views/events/previous-mammograms/appointment-should-not-take-place.html b/app/views/events/previous-mammograms/appointment-should-not-take-place.html new file mode 100644 index 00000000..8f1c660f --- /dev/null +++ b/app/views/events/previous-mammograms/appointment-should-not-take-place.html @@ -0,0 +1,66 @@ +{# app/views/events/previous-mammograms/appointment-should-not-begin.html #} + +{% extends parentLayout or 'layout-appointment.html' %} + +{% set previousMammogramCount = event.previousMammograms | length %} + +{% set pageHeading = "This appointment should not take place" %} + +{% set formAction = './save' | urlWithReferrer(referrerChain, query.scrollTo) %} + +{% block pageContent %} + + {% set previousMammograms = event.previousMammograms %} + + {% set unit = data.breastScreeningUnits | findById(clinic.breastScreeningUnitId) %} + +
+ There is a mammogram on this participant's record from within the last 6 months. Breast x-rays should not be taken within 6 months of a previous mammogram. +
+ +{% set mammogramHistoryHtml %} + {% include "_includes/medical-information/mammogram-history.njk" %} +{% endset %} + + {{ radios({ + name: "event[appointmentStopped][needsReschedule]", + value: event.appointmentStopped.needsReschedule, + fieldset: { + legend: { + text: "Should the appointment be rescheduled?", + size: "m", + isPageHeading: false + } + }, + items: [ + { + value: "yes", + text: "Yes" + }, + { + value: "no-invite", + text: "No, invite to next routine appointment" + } + ] + } | populateErrors) }} + + {# Prevents redirect loop - signals to the save route that we've already shown this warning page #} + + + + + +{% endblock %}