Skip to content

Commit b479a74

Browse files
johnrimmer2Anna-Suttonfrankieroberto
authored
Change 'Appointments' to 'Lists' (#359)
The appointments designs are now known as lists. The latest changes reflect work done to reduce the mental workload for users when adding a 'list' and consist of 3 steps - add a site or team - add a date - add nhs numbers The list view page shows users in first name, last name order with nhs number and date of birth for the recorder to check and links to 'Record' or 'Remove' the patient from the list. The home for 'lists' will update once lists are added and show lists by tema or site at the first level, then ordered by date at the team/site level down. --------- Co-authored-by: Anna-Sutton <[email protected]> Co-authored-by: Frankie Roberto <[email protected]>
1 parent 97b2470 commit b479a74

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1049
-4779
lines changed

app/data/appointments.js

Lines changed: 0 additions & 94 deletions
This file was deleted.

app/data/session-data-defaults.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ const organisations = require('./organisations')
22
const regions = require('./regions')
33
const featureFlags = require('./feature-flags')
44
const users = require('./users')
5-
const appointments = require('./appointments')
65
const vaccines = require('./vaccines')
76

87
module.exports = {
98
organisations: organisations,
109
regions: regions,
1110
featureFlags: featureFlags,
12-
appointments: appointments,
1311
users: users,
1412
vaccines: vaccines,
1513
vaccineStock: [],

app/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require('./routes/vaccines')(router)
1313
require('./routes/reports')(router)
1414
require('./routes/find-record')(router)
1515
require('./routes/prototype-admin')(router)
16-
require('./routes/appointments')(router)
16+
require('./routes/lists')(router)
1717
require('./routes/support')(router)
1818
require('./routes/auth')(router)
1919
require('./routes/home')(router)

app/routes/appointments.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

app/routes/lists.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = router => {
2+
3+
4+
5+
}

app/views/_feedback-report.html

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
2+
{% block head %}
3+
<script src="/js/feedback-panel.js"></script>
4+
{% endblock %}
5+
6+
{% from 'checkboxes/macro.njk' import checkboxes %}
7+
<div class="app-feedback-panel" data-module="feedback-panel">
8+
<div data-module="feedback-panel__initial-question">
9+
<h2 class="app-feedback-panel__title">You’ve just recorded your 5th vaccination.</h2>
10+
11+
12+
<fieldset class="nhsuk-fieldset">
13+
<legend class="nhsuk-fieldset__legend nhsuk-u-margin-bottom-4">How was your experience of recording vaccinations?</legend>
14+
15+
<div class="app-button-group nhsuk-u-margin-bottom-0">
16+
17+
{{ button({
18+
text: "Very easy",
19+
classes: "nhsuk-button--secondary app-button--small app-button--min-width",
20+
attributes: {
21+
"data-thanks": "Thank you. Do you want to tell us more?"
22+
}
23+
}) }}
24+
25+
{{ button({
26+
text: "Easy",
27+
classes: "nhsuk-button--secondary app-button--small app-button--min-width",
28+
attributes: {
29+
"data-thanks": "Thank you. Do you want to tell us more?"
30+
}
31+
}) }}
32+
33+
{{ button({
34+
text: "Ok",
35+
classes: "nhsuk-button--secondary app-button--small app-button--min-width",
36+
attributes: {
37+
"data-thanks": "Thank you. Do you want to tell us more?"
38+
}
39+
}) }}
40+
41+
{{ button({
42+
text: "Difficult",
43+
classes: "nhsuk-button--secondary app-button--small app-button--min-width",
44+
attributes: {
45+
"data-thanks": "Thank you. Do you want to tell us more?"
46+
}
47+
}) }}
48+
49+
{{ button({
50+
text: "Very difficult",
51+
classes: "nhsuk-button--secondary app-button--small app-button--min-width",
52+
attributes: {
53+
"data-thanks": "Thank you. Do you want to tell us more?"
54+
}
55+
}) }}
56+
</div>
57+
</fieldset>
58+
</div>
59+
60+
<div class="app-feedback-panel__comments" data-module="feedback-panel__comments" hidden>
61+
62+
<h2 class="app-feedback-panel__title">Thank you.</h2>
63+
{{ textarea({
64+
name: "example",
65+
id: "example",
66+
rows: 3,
67+
label: {
68+
text: "Feedback (optional)"
69+
}
70+
}) }}
71+
72+
{{ checkboxes({
73+
items: [
74+
{
75+
value: "contactable",
76+
text: "I’m happy to be contacted about my feedback"
77+
}
78+
]
79+
})}}
80+
81+
82+
<div class="app-button-group nhsuk-u-margin-bottom-0">
83+
{{ button({
84+
text: "Send feedback",
85+
classes: "nhsuk-button--secondary app-button--small"
86+
}) }}
87+
88+
89+
<a href="#" class="nhsuk-link nhsuk-link--no-visited-state" data-module="feedback-panel__close">Close</a>
90+
</div>
91+
92+
</div>
93+
</div>

app/views/appointments/add-nhs-numbers.html

Lines changed: 0 additions & 51 deletions
This file was deleted.

app/views/appointments/add1.html

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)