Skip to content

Commit 6443960

Browse files
author
Jon Roobottom
committed
updates
1 parent 940bcf8 commit 6443960

3 files changed

Lines changed: 13 additions & 6 deletions

File tree

app/views/site/remove/check-answers.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,25 @@ <h1 class="nhsuk-heading-l">{{ pageName }}</h1>
1919
<div class="nhsuk-summary-list__row">
2020
<dt class="nhsuk-summary-list__key">Sessions</dt>
2121
<dd class="nhsuk-summary-list__value">
22+
{% if data['select-all'][0] == 'true' %}
23+
{# {{ data['select-date'] | length }} sessions<br> #}
24+
All sessions from {{ group.session.from | nhsTime }} to {{ group.session.until | nhsTime }}<br>
25+
on {{ data['select-date'][0] | formatDate('cccc, d MMMM yyyy') }}<br>
26+
to {{ data['select-date'][data['select-date'] | length - 1] | formatDate('cccc, d MMMM yyyy') }}
27+
{% else %}
2228
<p>From {{ group.session.from | nhsTime }} to {{ group.session.until | nhsTime }} on:</p>
2329
<ol class="nhsuk-list nhsuk-list--bullet">
2430
{% for date in data['select-date'] %}
2531
<li>{{ date | formatDate('cccc, d MMM yyyy') }}</li>
2632
{% endfor %}
2733
</ol>
34+
{% endif %}
2835
<dd class="nhsuk-summary-list__actions"><a href="#">Change</a></dd>
2936
</dd>
3037
</div>
3138

3239
<div class="nhsuk-summary-list__row">
33-
<dt class="nhsuk-summary-list__key">Keep affected bookings</dt>
40+
<dt class="nhsuk-summary-list__key">Keep bookings</dt>
3441
<dd class="nhsuk-summary-list__value">{{ 'Yes' if data.currentGroup['honour-bookings'] == 'true' }}{{ 'No' if data.currentGroup['honour-bookings'] == 'false' }}</dd>
3542
<dd class="nhsuk-summary-list__actions"><a href="/site/{{ site_id }}/remove/{{ itemId }}/do-you-want-to-cancel-bookings">Change</a></dd>
3643
</div>

app/views/site/remove/do-you-want-to-cancel-bookings.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% extends '../../layouts/layout.html' %}
22

3-
{% set pageName = 'Removing these sessions will affect 17 existing bookings' %}
3+
{% set pageName = 'Removing these sessions will affect 17 bookings' %}
44

55

66
{% block beforeContent %}
@@ -14,8 +14,8 @@
1414
<div class="nhsuk-grid-row">
1515
<div class="nhsuk-grid-column-two-thirds">
1616
<h1 class="nhsuk-heading-l">{{ pageName }}</h1>
17-
<p>If you choose to cancel the bookings, people will be sent a text message or email to confirm</p>
18-
<p>Either way, no further bookings can be made for these sessions.</p>
17+
<p>If you choose to cancel the bookings, people will be sent a text message or email to confirm.</p>
18+
{# <p>Either way, no further bookings can be made for these sessions.</p> #}
1919
<form action="/site/{{ site_id }}/remove/{{ itemId }}/check-answers" method="post">
2020
{{ radios({
2121

@@ -30,7 +30,7 @@ <h1 class="nhsuk-heading-l">{{ pageName }}</h1>
3030
items: [
3131
{
3232
value: "true",
33-
text: "Yes"
33+
text: "Yes, keep the bookings"
3434
},
3535
{
3636
value: "false",

app/views/site/remove/select-availability.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ <h1 class="nhsuk-heading-l">{{ pageName }}</h1>
9090
<td class="nhsuk-table__cell">{{ selectCheckBox({
9191
id: 'select-date'~date,
9292
name: 'select-date',
93-
label: date | formatDate('cccc, d MMMM yyyy'),
93+
label: group.session.from | nhsTime ~ ' to ' ~ group.session.until | nhsTime ~' on ' ~ date | formatDate('cccc d MMMM yyyy'),
9494
value: date
9595
}) }}</td>
9696
<td class="nhsuk-table__cell nhsuk-table__cell--numeric">{{ summaries.daily[date].bookedSlots }}</td>

0 commit comments

Comments
 (0)