Skip to content

Commit c02c858

Browse files
Merge pull request #944 from NHSDigital/DTOSS-11880-appointment-page-links
Move appointment page links
2 parents 09e9174 + be270a6 commit c02c858

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

manage_breast_screening/core/jinja2/components/appointment-header/template.jinja

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
55

66
<p class="nhsuk-u-secondary-text-colour"><span>NHS Number: {{ participant.nhs_number }}</span></p>
77

8-
<p>{{ clinic_slot.slot_time_and_clinic_date }}{% if not appointment.current_status.is_screened %}<span class="nhsuk-u-margin-left-3"><a href="#">Reschedule appointment</a></span>{% endif %}</p>
9-
10-
{% if appointment.can_be_made_special %}
11-
<p><a href="{{ appointment.special_appointment_url }}">Make special appointment</a></p>
12-
{% endif %}
8+
<p>{{ clinic_slot.slot_time_and_clinic_date }}</p>
139

1410
{% if appointment.can_be_started_by(user) %}
1511
<form action="{{ url('mammograms:start_appointment', kwargs={'pk': appointment.pk}) }}" method="post">

manage_breast_screening/core/jinja2/layout-appointment.jinja

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,22 @@
3030

3131
<div class="app-header__status-tag">
3232
{{ app_appointment_status(presented_appointment) }}
33+
34+
<ul class="nhsuk-list">
35+
{% if not appointment.current_status.is_screened %}
36+
<li>
37+
<a href="#">Cancel or reschedule appointment</a>
38+
</li>
39+
{% endif %}
40+
<li>
41+
<a href="{{ presented_appointment.special_appointment_url }}">
42+
{% if presented_appointment.can_be_made_special %} Make special appointment
43+
{% else %} Change special appointment details
44+
{% endif %}
45+
</a>
46+
</li>
47+
</ul>
48+
3349
<p class="nhsuk-u-margin-bottom-2">
3450
{{ app_check_in(
3551
presented_appointment,

0 commit comments

Comments
 (0)