Skip to content

Commit 85f8056

Browse files
Dynamic name for accept and reject
1 parent 610e732 commit 85f8056

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

app/views/reg-portal/research-10-25/accept-confirm.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
{% extends 'reg-portal/layout.html' %}
22

3+
{% if data['patient-name'] %}
4+
{% set name = data['patient-name'] %}
5+
{% else %}
6+
{% set name = 'Sam Smith' %}
7+
{% endif %}
8+
39
{% block pageTitle %}
4-
Sam Smith accepted - GP registrations portal - NHS
10+
{{ name }} accepted - GP registrations portal - NHS
511
{% endblock %}
612

713
{% block content %}
@@ -18,7 +24,7 @@
1824
<h1 class="nhsuk-heading-xl">
1925
Approved
2026
</h1>
21-
<p class="nhsuk-body-l">Sam Smith has been added to your patient list</p>
27+
<p class="nhsuk-body-l">{{ name }} has been added to your patient list</p>
2228
<p>You should follow your surgery's guidance for managing newly registered patients.</p>
2329
</div>
2430

app/views/reg-portal/research-10-25/reg-detail-multi-detail-child.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ <h1 class="nhsuk-heading-l">Jane Jones</h1>
2525
<p class="nhsuk-u-margin-bottom-0">Postcode</p>
2626
<p class="nhsuk-heading-s nhsuk-u-padding-top-0">BH12 7ER</p>
2727
<div style="display: flex; height: 100%; margin-bottom: 48px;">
28-
<a class="nhsuk-button" style="margin-top:auto; margin-bottom:auto; margin-left:0; margin-right:24px;" href="accept-confirm">Approve</a>
29-
<a href="reject-reasons" style="margin-top:auto; margin-bottom:auto; margin-left:0; margin-right:0;">Reject</a>
28+
<a class="nhsuk-button" style="margin-top:auto; margin-bottom:auto; margin-left:0; margin-right:24px;" href="accept-confirm?patient-name=Jane Jones">Approve</a>
29+
<a href="reject-reasons?patient-name=Jane Jones" style="margin-top:auto; margin-bottom:auto; margin-left:0; margin-right:0;">Reject</a>
3030
</div>
3131

3232
<div class="nhsuk-warning-callout">

0 commit comments

Comments
 (0)