Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/routes/vaccinate.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ module.exports = router => {

// Reset these value regardless of next step
data.injectionSite = ""
data.otherInjectionSite = ""
data.consent = ""
data.consentName = ""

Expand Down
2 changes: 1 addition & 1 deletion app/views/vaccinate/check.html
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ <h2 class="nhsuk-heading-m">Vaccination</h2>
text: "Injection site"
},
value: {
html: data.injectionSite
html: (data.otherInjectionSite if data.injectionSite == "other" else data.injectionSite)
},
actions: {
items: [
Expand Down
12 changes: 8 additions & 4 deletions app/views/vaccinate/injection-site.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,23 @@
items: [
{
value: "Left buttock",
text: "Left buttock"
text: "Left buttock",
checked: (data.otherInjectionSite == "Left buttock")
},
{
value: "Right buttock",
text: "Right buttock"
text: "Right buttock",
checked: (data.otherInjectionSite == "Right buttock")
},
{
value: "Left thigh",
text: "Left thigh"
text: "Left thigh",
checked: (data.otherInjectionSite == "Left thigh")
},
{
value: "Right thigh",
text: "Right thigh"
text: "Right thigh",
checked: (data.otherInjectionSite == "Right thigh")
}
]
}) }}
Expand Down