-
Notifications
You must be signed in to change notification settings - Fork 3
NFDIV-5456 - Block and allow d11 pages and introduce offline d11 page #4730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pallavijustice
wants to merge
9
commits into
lip-digitised-general-applications
Choose a base branch
from
NFDIV-5456-allow-block-gen-app-states
base: lip-digitised-general-applications
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3014236
NFDIV-5456 - Block and allow d11 pages and introduce offline d11 page
pallavijustice d49dd1d
NFDIV-5456 - Post issue withdraw link points to d11 offline page when…
pallavijustice 96bd141
NFDIV-5456 - Return error when D11 should not be submitted.
pallavijustice c587342
NFDIV-5456 - Fix checkstyle error
pallavijustice b86f3b4
NFDIV-5456 - Refactor
pallavijustice bac9dab
NFDIV-5456 - Update the logic to show gen app link on hub page
pallavijustice ce6de83
Merge branch 'lip-digitised-general-applications' into NFDIV-5456-all…
pallavijustice 19647a1
NFDIV-5456 - rework based on review comments
pallavijustice 231adc0
NFDIV-5456 - rework based on review comments
pallavijustice File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
91 changes: 91 additions & 0 deletions
91
...pplicant1/interim-applications/general-application/make-an-offline-application/content.ts
This file contains hidden or 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,91 @@ | ||
| import config from 'config'; | ||
|
|
||
| import { TranslationFn } from '../../../../../app/controller/GetController'; | ||
| import { CommonContent } from '../../../../common/common.content'; | ||
|
|
||
| const en = ({ isDivorce, referenceNumber }: CommonContent) => ({ | ||
| title: 'Making an application to the court', | ||
| makeAnApplication: { | ||
| header: 'Making an application to the court', | ||
| line1: `If you need to make an application to the court as part of your ongoing ${isDivorce ? 'divorce application' : 'application to end your civil partnership'}, you can do so by completing a paper form.`, | ||
| line2: 'To make a general application, complete Form D11', | ||
| line3: 'You can download the form from GOV.UK:', | ||
| d11Text: | ||
| 'Apply for an interim order as part of divorce, dissolution or separation court proceedings: Form D11 - GOV.UK', | ||
| d11Link: config.get('govukUrls.d11Form'), | ||
| line4: 'You can send the completed form to the court in the following ways:', | ||
| }, | ||
| documentsByOnlineForm: 'Sending documents using our online form', | ||
| documentsByOnlineFormSteps: { | ||
| line1: 'You can send photographs or scans of your documents to us by', | ||
| line2: 'uploading them using our online form.', | ||
| line3: | ||
| 'Make sure you follow the instructions on how to upload your documents carefully or they could be rejected, resulting in further delays.', | ||
| }, | ||
| documentsByPost: 'Sending your documents by post', | ||
| documentsByPostSteps: { | ||
| step1: `Write your reference number on each document: ${referenceNumber}`, | ||
| step2: 'Post the original documents to:', | ||
| }, | ||
| documentsByPostMoreDetails: | ||
| 'Make sure you also include in your response a return address. Any cherished documents you send, such as marriage certificates, birth certificates, passports or deed polls will be returned to you. Other documents will not be returned.', | ||
| whatHappensNext: { | ||
| header: 'What happens next', | ||
| line1: | ||
| 'Once the court receives your general application, we will review it and contact you to let you know the next steps.', | ||
| }, | ||
| returnToHub: 'Return to hub screen', | ||
| }); | ||
|
|
||
| const cy = ({ isDivorce, referenceNumber }: CommonContent) => ({ | ||
| title: 'Making an application to the court', | ||
| makeAnApplication: { | ||
| header: 'Making an application to the court', | ||
| line1: `If you need to make an application to the court as part of your ongoing ${isDivorce ? 'divorce application' : 'application to end your civil partnership'}, you can do so by completing a paper form.`, | ||
| line2: 'To make a general application, complete Form D11', | ||
| line3: 'You can download the form from GOV.UK:', | ||
| d11Text: | ||
| 'Apply for an interim order as part of divorce, dissolution or separation court proceedings: Form D11 - GOV.UK', | ||
| d11Link: config.get('govukUrls.d11Form'), | ||
| line4: 'You can send the completed form to the court in the following ways:', | ||
| }, | ||
| documentsByOnlineForm: 'Sending documents using our online form', | ||
| documentsByOnlineFormSteps: { | ||
| line1: 'You can send photographs or scans of your documents to us by', | ||
| line2: 'uploading them using our online form.', | ||
| line3: | ||
| 'Make sure you follow the instructions on how to upload your documents carefully or they could be rejected, resulting in further delays.', | ||
| }, | ||
| documentsByPost: 'Sending your documents by post', | ||
| documentsByPostSteps: { | ||
| step1: `Write your reference number on each document: ${referenceNumber}`, | ||
| step2: 'Post the original documents to:', | ||
| }, | ||
| documentsByPostMoreDetails: | ||
| 'Make sure you also include in your response a return address. Any cherished documents you send, such as marriage certificates, birth certificates, passports or deed polls will be returned to you. Other documents will not be returned.', | ||
| whatHappensNext: { | ||
| header: 'What happens next', | ||
| line1: | ||
| 'Once the court receives your general application, we will review it and contact you to let you know the next steps.', | ||
| }, | ||
| returnToHub: 'Return to hub screen', | ||
| }); | ||
|
|
||
| const languages = { | ||
| en, | ||
| cy, | ||
| }; | ||
|
|
||
| export const generateContent: TranslationFn = content => { | ||
| const translations = languages[content.language](content); | ||
| const isRespondent = content.isApplicant2 && !content.isJointApplication; | ||
| const isSoleApplicant = !content.isApplicant2 && !content.isJointApplication; | ||
| const hasCOBeenGranted = !!content.userCase.coGrantedDate; | ||
| return { | ||
| ...translations, | ||
| caseHasBeenIssued: content.caseHasBeenIssued, | ||
| isRespondent, | ||
| isSoleApplicant, | ||
| hasCOBeenGranted, | ||
| }; | ||
| }; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well spotted :)