Skip to content

Commit

Permalink
MAP-572-added 'transfer' and 'relocate' questions to 'Why was use of … (
Browse files Browse the repository at this point in the history
#670)

* MAP-572-added 'transfer' and 'relocate' questions to 'Why was use of force applied?' page

* MAP-572 rename test to better describe intent
  • Loading branch information
GurnankCheema authored Jan 17, 2024
1 parent 06a33c2 commit c51f231
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions server/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ export const UofReasons = toEnum({
PHYSICAL_THREAT: { value: 'PHYSICAL_THREAT', label: 'Physical threat' },
VERBAL_THREAT: { value: 'VERBAL_THREAT', label: 'Verbal threat' },
REFUSAL_TO_LOCATE_TO_CELL: { value: 'REFUSAL_TO_LOCATE_TO_CELL', label: 'Refusal to locate to cell' },
REFUSAL_TO_TRANSFER: { value: 'REFUSAL_TO_TRANSFER', label: 'Refusal to transfer' },
REFUSAL_TO_RELOCATE_CELLS: { value: 'REFUSAL_TO_RELOCATE_CELLS', label: 'Refusal to relocate cells' },
TO_PREVENT_ESCAPE_OR_ABSCONDING: {
value: 'TO_PREVENT_ESCAPE_OR_ABSCONDING',
label: 'To prevent escape or absconding',
Expand Down
2 changes: 1 addition & 1 deletion server/routes/maintainingReports/admin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ describe('/:reportId/edit-report', () => {
})
})

it('should redirect to select primary reason page when more than one reason selected', () => {
it('should not accept invalid json as input', () => {
userSupplier.mockReturnValue(adminUser)

return request(app)
Expand Down
4 changes: 2 additions & 2 deletions server/views/formPages/incident/select-uof-reasons.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
{% from "govuk/components/checkboxes/macro.njk" import govukCheckboxes %}
{% from "govuk/components/button/macro.njk" import govukButton %}

{% set pageTitle = 'Use of force details' %}
{% set pageTitle = 'Use of force details - why was use of force applied?' %}
{% set saveButtonInEditModeText = 'Save and continue' %}

{% block formItems %}
<div class="govuk-grid-row">
<div id="uof-reasons" class="govuk-grid-column-full govuk-!-margin-bottom-6">
<h1 class="govuk-heading-xl mainHeading">{{ pageTitle }}</h1>
<h1 class="govuk-heading-xl mainHeading">Use of force details</h1>
{{
govukCheckboxes({
idPrefix: "reasons",
Expand Down

0 comments on commit c51f231

Please sign in to comment.