Skip to content

Commit 126fcb6

Browse files
committed
Clarify the points at which clinic booking subjourneys move onto the next child
Changes in this commit include: - confirmation button text of "Continue to next child" when entering the final detail of the previous child - change of title to mention "your next child" when entering chiuld details for 2nd and subsequent children Also got rid of some old, unused entries in en.js.
1 parent cdd7fef commit 126fcb6

4 files changed

Lines changed: 16 additions & 14 deletions

File tree

app/locales/en.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,10 @@ export const en = {
287287
caption: 'Appointment for %s'
288288
},
289289
child: {
290-
title: 'What is your child’s name?',
290+
title: {
291+
first: 'What is your child’s name?',
292+
next: 'What is your next child’s name?'
293+
},
291294
caption: 'Appointment for your %s child',
292295
summary: 'About your child',
293296
description:
@@ -299,17 +302,6 @@ export const en = {
299302
lastName: {
300303
label: 'Last name',
301304
hint: 'Or family name'
302-
},
303-
hasPreferredName: {
304-
label: 'Do they use a different name in school?',
305-
yes: 'Yes',
306-
no: 'No'
307-
},
308-
preferredFirstName: {
309-
label: 'Preferred first name'
310-
},
311-
preferredLastName: {
312-
label: 'Preferred last name'
313305
}
314306
},
315307
dob: {

app/views/book-into-a-clinic/form/adjustments.njk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{% extends "_layouts/form.njk" %}
22

33
{% set title = __("consent.child.adjustments.title") %}
4+
{% if childCount > 1 and childNumber < childCount %}
5+
{% set confirmButtonText = __("clinicBooking.nextChildButtonText") %}
6+
{% endif %}
47

58
{% block form %}
69
{{ checkboxes({

app/views/book-into-a-clinic/form/appointment-time.njk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
{% extends "_layouts/form.njk" %}
22

33
{% set title = __("clinicBooking.time.title", firstName) %}
4+
{% if childCount > 1 and childNumber < childCount %}
5+
{% set confirmButtonText = __("clinicBooking.nextChildButtonText") %}
6+
{% endif %}
47

58
{% block form %}
69
{{ appHeading({
710
title: title,
8-
caption: __("clinicBooking.appointment.caption", fullName) if transaction.childCount > 1
11+
caption: __("clinicBooking.appointment.caption", fullName) if childCount > 1
912
}) }}
1013

1114
{#

app/views/book-into-a-clinic/form/child.njk

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{% extends "_layouts/form.njk" %}
22

3-
{% set title = __("clinicBooking.child.title") %}
3+
{% if childNumber == 1 %}
4+
{% set title = __("clinicBooking.child.title.first") %}
5+
{% else %}
6+
{% set title = __("clinicBooking.child.title.next") %}
7+
{% endif %}
48

59
{% block form %}
610
{{ appHeading({

0 commit comments

Comments
 (0)