Skip to content

Commit

Permalink
Update dashboard tiles content
Browse files Browse the repository at this point in the history
Because one of the dashboard tiles now includes an unordered list, I have amended the section descriptions to be HTML strings.
  • Loading branch information
Patrick Fleming committed Feb 20, 2025
1 parent 49dc9e8 commit 6f861e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions server/utils/userUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,30 @@ import reportsPaths from '../paths/report'
export const sections = {
applications: {
id: 'applications',
title: 'View your CAS-2 Bail applications',
description: 'View all of your in progress and submitted CAS-2 Bail applications.',
title: 'View and action your applications',
description:
'<p>You can:<br/><ul><li>continue editing or discard any applications you have started</li><li>view the status of any applications you have submitted</li><li>check if there are any requests for information that you need to action</li></ul></p>',
shortTitle: 'Applications',
href: applyPaths.applications.index({}),
},
newApplication: {
id: 'new-application',
title: 'Start a new CAS-2 Bail application',
description: '',
title: 'Start a new application',
description: '<p>You can save your progress and return to the application at any time.</p>',
shortTitle: 'New application',
href: applyPaths.applications.beforeYouStart({}),
},
submittedApplications: {
id: 'submitted-applications',
title: 'Submitted applications',
description: 'View all CAS-2 bail submitted applications',
description: '<p>View all CAS-2 bail submitted applications</p>',
shortTitle: 'Submitted applications',
href: assessPaths.submittedApplications.index.pattern,
},
managementInformationReports: {
id: 'management-information-reports',
title: 'Management information reports',
description: 'View all CAS-2 bail management information reports to download',
description: '<p>View all CAS-2 bail management information reports to download</p>',
shortTitle: 'Management information reports',
href: reportsPaths.report.new.pattern,
},
Expand Down
2 changes: 1 addition & 1 deletion server/views/dashboard/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<h2 class="govuk-heading-s">
<a class="govuk-link" href="{{ section.href }}">{{ section.title }}</a>
</h2>
<p class="govuk-body">{{ section.description }}</p>
{{ section.description | safe }}
</div>
</div>
{% endfor %}
Expand Down

0 comments on commit 6f861e0

Please sign in to comment.