Skip to content

Commit

Permalink
Add page names to side navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Liburd committed Feb 25, 2025
1 parent 044311c commit 1c51e81
Showing 1 changed file with 30 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,41 @@
<div class="govuk-grid-column-one-third">
{{ mojSideNavigation({
items: [{
text: 'Vulnerability',
href: paths.applications.pages.show({ id: applicationId, task: 'risk-to-self', page: 'vulnerability' }),
active: (pageName === 'vulnerability')
text: 'Add information about concerns',
href: paths.applications.pages.show({ id: applicationId, task: 'risk-to-self', page: 'concerns' }),
active: (pageName === 'concerns')
}, {
text: 'Current risk',
href: paths.applications.pages.show({ id: applicationId, task: 'risk-to-self', page: 'current-risk' }),
active: (pageName === 'current-risk')
}, {
text: 'Historical risk',
href: paths.applications.pages.show({ id: applicationId, task: 'risk-to-self', page: 'historical-risk' }),
active: (pageName === 'historical-risk')
text: 'Self-harm and suicide',
href: paths.applications.pages.show({ id: applicationId, task: 'risk-to-self', page: 'self-harm' }),
active: (pageName === 'self-harm')
}, {
text: 'ACCT',
href: paths.applications.pages.show({ id: applicationId, task: 'risk-to-self', page: 'acct' }),
active: (pageName === 'acct')
}, {
text: 'drug-supply',
href: paths.applications.pages.show({ id: applicationId, task: 'risk-to-self', page: 'drug-supply' }),
active: (pageName === 'drug-supply')
}, {
text: 'violence-and-arson',
href: paths.applications.pages.show({ id: applicationId, task: 'risk-to-self', page: 'violence-and-arson' }),
active: (pageName === 'violence-and-arson')
}, {
text: 'hate-related-attitudes',
href: paths.applications.pages.show({ id: applicationId, task: 'risk-to-self', page: 'hate-related-attitudes' }),
active: (pageName === 'hate-related-attitudes')
}, {
text: 'living-with-others',
href: paths.applications.pages.show({ id: applicationId, task: 'risk-to-self', page: 'living-with-others' }),
active: (pageName === 'living-with-others')
}, {
text: 'risk-to-staff',
href: paths.applications.pages.show({ id: applicationId, task: 'risk-to-self', page: 'risk-to-staff' }),
active: (pageName === 'risk-to-staff')
}, {
text: 'additional-concerns',
href: paths.applications.pages.show({ id: applicationId, task: 'risk-to-self', page: 'additional-concerns' }),
active: (pageName === 'additional-concerns')
}]
}) }}
</div>
Expand Down

0 comments on commit 1c51e81

Please sign in to comment.