generated from ministryofjustice/hmpps-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2192 from ministryofjustice/feature/APS-1458-rest…
…rict-we-types-of-AP APS-1458: restrict types of AP for Women's Estate
- Loading branch information
Showing
22 changed files
with
385 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { ApprovedPremisesApplication } from '@approved-premises/api' | ||
import paths from '../../../server/paths/apply' | ||
|
||
import ApplyPage from './applyPage' | ||
|
||
export default class PipeOpdScreening extends ApplyPage { | ||
constructor(application: ApprovedPremisesApplication) { | ||
super( | ||
'Has an application for PIPE placement been recommended in the OPD pathway plan?', | ||
application, | ||
'type-of-ap', | ||
'pipe-opd-screening', | ||
paths.applications.pages.show({ id: application.id, task: 'type-of-ap', page: 'pipe-referral' }), | ||
) | ||
} | ||
|
||
completeForm() { | ||
this.checkRadioButtonFromPageBody('pipeReferral') | ||
this.completeTextInputFromPageBody('pipeReferralMoreDetail') | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import type { ApprovedPremisesAssessment as Assessment } from '@approved-premises/api' | ||
|
||
import AssessPage from './assessPage' | ||
|
||
export default class PipeSuitabilityPage extends AssessPage { | ||
constructor(assessment: Assessment) { | ||
super('Suitability assessment', assessment, 'suitability-assessment', 'pipe-suitability') | ||
} | ||
|
||
completeForm() { | ||
this.checkRadioButtonFromPageBody('pipeIdentifiedAsSuitable') | ||
this.completeTextInputFromPageBody('yesDetail') | ||
this.completeTextInputFromPageBody('unsuitabilityForPipeRationale') | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.