-
Notifications
You must be signed in to change notification settings - Fork 2
HDPI-6640: Caseworker gen app CYA page #2171
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
scottstewart-sl
wants to merge
16
commits into
HDPI-6639-Caseworker-genapps-file-upload
Choose a base branch
from
HDPI-6640_caseworker_gen_app_cya
base: HDPI-6639-Caseworker-genapps-file-upload
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
16 commits
Select commit
Hold shift + click to select a range
34313b5
HDPI-6638: Caseworker gen app without notice screen
scottstewart-sl bdd96fd
HDPI-6638: Remove unused placeholder text
scottstewart-sl 171d9ae
HDPI-6656: Caseworker gen app refer without notice apps to a judge
scottstewart-sl 3e8d252
Merge branch 'HDPI-6637_caseworker_genapps_payment_confirmation' into…
scottstewart-sl 554303d
Merge branch 'HDPI-6638_caseworker_genapps_without_notice' into HDPI-…
scottstewart-sl bcc4658
Merge remote-tracking branch 'origin/HDPI-6638_caseworker_genapps_wit…
scottstewart-sl 0a6a7cb
Merge remote-tracking branch 'origin/HDPI-6656_caseworker_genapp_refe…
scottstewart-sl 4b82343
HDPI-6640: Use ShowConditions.and() helper method
scottstewart-sl a7cef04
Merge remote-tracking branch 'origin/HDPI-6639-Caseworker-genapps-fil…
scottstewart-sl 71a1a59
HDPI-6640: Fix merge issue
scottstewart-sl 4d0ef9d
Merge branch 'HDPI-6639-Caseworker-genapps-file-upload' into HDPI-664…
scottstewart-sl acd93f8
Merge branch 'HDPI-6639-Caseworker-genapps-file-upload' into HDPI-664…
scottstewart-sl 03d4e9b
Merge branch 'HDPI-6639-Caseworker-genapps-file-upload' into HDPI-664…
scottstewart-sl 4166c15
Merge branch 'HDPI-6639-Caseworker-genapps-file-upload' into HDPI-664…
scottstewart-sl eb090c3
Merge branch 'HDPI-6639-Caseworker-genapps-file-upload' into HDPI-664…
scottstewart-sl 7bd13c2
Merge branch 'HDPI-6639-Caseworker-genapps-file-upload' into HDPI-664…
scottstewart-sl 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
21 changes: 11 additions & 10 deletions
21
...java/uk/gov/hmcts/reform/pcs/ccd/page/caseworker/entergenapp/ReferApplicationToJudge.java
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 |
|---|---|---|
| @@ -1,28 +1,29 @@ | ||
| package uk.gov.hmcts.reform.pcs.ccd.page.caseworker.entergenapp; | ||
|
|
||
| import uk.gov.hmcts.reform.pcs.ccd.ShowConditions; | ||
| import uk.gov.hmcts.reform.pcs.ccd.common.CcdPageConfiguration; | ||
| import uk.gov.hmcts.reform.pcs.ccd.common.PageBuilder; | ||
| import uk.gov.hmcts.reform.pcs.ccd.domain.VerticalYesNo; | ||
|
|
||
| import static uk.gov.hmcts.reform.pcs.ccd.ShowConditions.fieldEquals; | ||
|
|
||
| public class ReferApplicationToJudge implements CcdPageConfiguration { | ||
|
|
||
| private static final String PLACEHOLDER_BANNER = """ | ||
| <div class="govuk-notification-banner" role="region" | ||
| aria-labelledby="govuk-notification-banner-title" data-module="govuk-notification-banner"> | ||
| <div class="govuk-notification-banner__content"> | ||
| <p class="govuk-notification-banner__heading"> | ||
| Placeholder | ||
| </p> | ||
| </div> | ||
| </div> | ||
| private static final String MESSAGE_TEXT = """ | ||
| <p class="body">You must refer this application to a judge.</p> | ||
| """; | ||
|
|
||
| @Override | ||
| public void addTo(PageBuilder pageBuilder) { | ||
| pageBuilder | ||
| .page("referApplicationToJudge") | ||
| .pageLabel("Refer without notice application to judge") | ||
| .showCondition(ShowConditions.and( | ||
| fieldEquals("enter_genapp_AllPartiesAgree", VerticalYesNo.NO), | ||
| fieldEquals("enter_genapp_WithoutNotice", VerticalYesNo.YES)) | ||
| ) | ||
| .label("referApplicationToJudge-lineSeparator", "---") | ||
| .label("referApplicationToJudge-placeholder", PLACEHOLDER_BANNER); | ||
| .label("referApplicationToJudge-message", MESSAGE_TEXT); | ||
| } | ||
|
|
||
| } | ||
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
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.
This is the only new code that isn't covered in one of the other PRs