Skip to content

Commit 7d4edf4

Browse files
Update hint texts with dates to be more specific
1 parent e04099f commit 7d4edf4

4 files changed

Lines changed: 17 additions & 17 deletions

File tree

app/views/events/medical-information/hormone-replacement-therapy.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
name: "event[medicalInformation][hrt][hrtDuration]",
3232
value: event.medicalInformation.hrt.hrtDuration,
3333
label: {
34-
text: "For how long?"
34+
text: "Approximate date started"
3535
},
3636
classes: "nhsuk-u-width-two-thirds",
3737
hint: {
38-
text: "For example, 18 months"
38+
text: "For example, " ~ (now() | remove(18, "months") | formatDate("MMMM YYYY"))
3939
}
4040
}) }}
4141

@@ -47,19 +47,19 @@
4747
name: "event[medicalInformation][hrt][hrtDurationSinceStopped]",
4848
value: event.medicalInformation.hrt.hrtDurationSinceStopped,
4949
label: {
50-
text: "Describe when they stopped"
50+
text: "Approximate date stopped"
5151
},
5252
classes: "nhsuk-u-width-two-thirds",
5353
hint: {
54-
text: "For example, two weeks ago"
54+
text: "For example, " ~ (now() | remove(2, "months") | formatDate("MMMM YYYY"))
5555
}
5656
}) }}
5757

5858
{{ input({
5959
name: "event[medicalInformation][hrt][hrtDurationBeforeStopping]",
6060
value: event.medicalInformation.hrt.hrtDurationBeforeStopping,
6161
label: {
62-
text: "How long had they been taking HRT for?"
62+
text: "Approximate time taken for"
6363
},
6464
classes: "nhsuk-u-width-two-thirds",
6565
hint: {

app/views/events/medical-information/pregnancy-and-breastfeeding.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ <h1 class="nhsuk-heading-l">
2929
name: "event[medicalInformation][pregnancyAndBreastfeeding][currentlyPregnantDetails]",
3030
value: event.medicalInformation.pregnancyAndBreastfeeding.currentlyPregnantDetails,
3131
label: {
32-
text: "Provide timeframe"
32+
text: "Approximate due date"
3333
},
3434
classes: "nhsuk-u-width-two-thirds",
3535
hint: {
36-
text: "For example, due in November"
36+
text: "For example, " ~ (now() | add(3, "months") | formatDate("MMMM YYYY"))
3737
}
3838
} ) }}
3939
{% endset %}
@@ -43,11 +43,11 @@ <h1 class="nhsuk-heading-l">
4343
name: "event[medicalInformation][pregnancyAndBreastfeeding][recentlyPregnantDetails]",
4444
value: event.medicalInformation.pregnancyAndBreastfeeding.recentlyPregnantDetails,
4545
label: {
46-
text: "Describe when"
46+
text: "Approximate date pregnancy ended"
4747
},
4848
classes: "nhsuk-u-width-two-thirds",
4949
hint: {
50-
text: "For example, gave birth two weeks ago"
50+
text: "For example, " ~ (now() | remove(2, "months") | formatDate("MMMM YYYY"))
5151
}
5252
} ) }}
5353
{% endset %}
@@ -57,11 +57,11 @@ <h1 class="nhsuk-heading-l">
5757
name: "event[medicalInformation][pregnancyAndBreastfeeding][currentlyBreastfeedingDuration]",
5858
value: event.medicalInformation.pregnancyAndBreastfeeding.currentlyBreastfeedingDuration,
5959
label: {
60-
text: "For how long?"
60+
text: "Approximate date started"
6161
},
6262
classes: "nhsuk-u-width-two-thirds",
6363
hint: {
64-
text: "For example, since January"
64+
text: "For example, since " ~ (now() | remove(2, "months") | formatDate("MMMM YYYY"))
6565
}
6666
} ) }}
6767
{% endset %}
@@ -71,11 +71,11 @@ <h1 class="nhsuk-heading-l">
7171
name: "event[medicalInformation][pregnancyAndBreastfeeding][recentlyBreastfeedingDuration]",
7272
value: event.medicalInformation.pregnancyAndBreastfeeding.recentlyBreastfeedingDuration,
7373
label: {
74-
text: "Describe when"
74+
text: "Approximate date stopped"
7575
},
7676
classes: "nhsuk-u-width-two-thirds",
7777
hint: {
78-
text: "For example, two months ago"
78+
text: "For example, " ~ (now() | remove(3, "months") | formatDate("MMMM YYYY"))
7979
}
8080
} ) }}
8181
{% endset %}

app/views/events/medical-information/symptoms/details.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,10 @@ <h1 class="nhsuk-heading-l">
477477
{{ input({
478478
name: "event[symptomTemp][approximateDateStopped]",
479479
label: {
480-
text: "Describe when"
480+
text: "Approximate date symptom stopped"
481481
},
482482
hint: {
483-
text: "For example, 3 days ago"
483+
text: "For example, " ~ (now() | remove(1, "months") | formatDate("MMMM YYYY"))
484484
},
485485
value: event.symptomTemp.approximateDateStopped,
486486
classes: "nhsuk-u-width-two-thirds"
@@ -656,4 +656,4 @@ <h1 class="nhsuk-heading-l">
656656
{% endif %}
657657
{# {% include "screening-cannot-proceed-link.njk" %} #}
658658

659-
{% endblock %}
659+
{% endblock %}

app/views/events/previous-mammograms/form.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ <h1 class="nhsuk-heading-l">
221221
},
222222
{
223223
value: "moreThanSixMonths",
224-
text: "Not sure (6 months or more ago)",
224+
text: "Not sure (at least 6 months ago)",
225225
conditional: {
226226
html: moreThanSixMonthsHtml
227227
}

0 commit comments

Comments
 (0)