Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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) %}

<h1 class="nhsuk-heading-l">
<span class="nhsuk-caption-l">
{{ participant | getFullName }}
</span>
{{ pageHeading }}
</h1>

<p>
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.
</p>

{% 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 #}
<input type="hidden" name="action" value="acknowledged-warning">

<div class="nhsuk-button-group">
{{ button({
text: "Continue"
}) }}
</div>

<p>
<a href="{{ './proceed-anyway' | urlWithReferrer(referrerChain, query.scrollTo) }}" class="app-link--warning">Proceed with this appointment</a>
</p>
{% endblock %}