Skip to content

Commit

Permalink
PP-13297 clickable text, layout, and Oxford commas
Browse files Browse the repository at this point in the history
  • Loading branch information
james-peacock-gds committed Dec 5, 2024
1 parent fbba0ad commit a653549
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/utils/roles.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const roles = {
extId: 200,
name: 'admin',
description: 'Administrator',
explanation: 'They can view transactions, refund payments and manage settings',
explanation: 'They can view transactions, refund payments, and manage settings',
agentInitiatedMotoServicesOnly: false
},
'view-and-refund': {
Expand Down Expand Up @@ -58,7 +58,7 @@ module.exports = {
.map(role => {
// for agent-initiated moto services, add 'take telephone payments' to the explanation content for the admin role
return (role.name === 'admin' && serviceHasAgentInitiatedMotoEnabled)
? { ...role, explanation: 'They can view transactions, refund payments, take telephone payments and manage settings' }
? { ...role, explanation: 'They can view transactions, refund payments, take telephone payments, and manage settings' }
: role
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
{% set roleItem = {
value: role.name,
id: "role-" + role.name + "-input",
html: "<label class=\"govuk-!-font-weight-bold\">" + role.description + "</label>",
hint: { text: role.explanation, classes: "hint-and-body-width" },
text: role.description,
label: { classes: "govuk-!-font-weight-bold" },
hint: { html: "<div class='hint-and-body-width'>" + role.explanation + "</div>" },
checked: userCurrentRoleName === role.name
} %}
{% set roleItems = (roleItems.push(roleItem), roleItems) %}
Expand Down
5 changes: 3 additions & 2 deletions app/views/simplified-account/settings/team-members/invite.njk
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@
{% set roleItem = {
value: role.name,
id: "role-" + role.name + "-input",
html: "<label class=\"govuk-!-font-weight-bold\">" + role.description + "</label>",
hint: { text: role.explanation, classes: "hint-and-body-width" },
text: role.description,
label: { classes: "govuk-!-font-weight-bold" },
hint: { html: "<div class='hint-and-body-width'>" + role.explanation + "</div>" },
checked: role.name === checkedRole
} %}
{% set roleItems = (roleItems.push(roleItem), roleItems) %}
Expand Down

0 comments on commit a653549

Please sign in to comment.