Skip to content

Commit ffcf6f2

Browse files
scottstewart-slsrinijghmcts-jenkins-j-to-z[bot]PadmaDeenadayalanmarianadpereira
authored
HDPI-6032: Gen Apps Which Language Used (#1838)
Signed-off-by: sstewart <202802468+scottstewart-sl@users.noreply.github.com> Co-authored-by: srinijg <srinivasan.joghee@hmcts.net> Co-authored-by: hmcts-jenkins-j-to-z <61242337+hmcts-jenkins-j-to-z[bot]@users.noreply.github.com> Co-authored-by: PadmaDeenadayalan <Padma.Deenadayalan@hmcts.net> Co-authored-by: marianadpereira <71711509+marianadpereira@users.noreply.github.com> Co-authored-by: padmakumari <padma.kumari@hmcts.net>
1 parent 56901dc commit ffcf6f2

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

src/main/java/uk/gov/hmcts/reform/pcs/ccd/domain/genapp/XuiGenAppRequest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public class XuiGenAppRequest implements GenAppRequest {
7272

7373
private List<ListValue<UploadedDocument>> uploadedDocuments;
7474

75+
@CCD(label = "Which language did you use to complete this service?")
7576
private LanguageUsed languageUsed;
7677

7778
private VerticalYesNo sotAccepted;

src/main/java/uk/gov/hmcts/reform/pcs/ccd/page/makeanapplication/WhichLanguage.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,18 @@
99
import uk.gov.hmcts.reform.pcs.ccd.common.PageBuilder;
1010
import uk.gov.hmcts.reform.pcs.ccd.domain.PCSCase;
1111
import uk.gov.hmcts.reform.pcs.ccd.domain.State;
12+
import uk.gov.hmcts.reform.pcs.ccd.domain.genapp.XuiGenAppRequest;
1213

1314
import static uk.gov.hmcts.reform.pcs.ccd.ShowConditions.NEVER_SHOW;
1415

1516
@Slf4j
1617
@AllArgsConstructor
1718
public class WhichLanguage implements CcdPageConfiguration {
1819

19-
private static final String PLACEHOLDER = """
20-
<div class="govuk-notification-banner" role="region" aria-labelledby="placeholder-banner">
21-
<div class="govuk-notification-banner__content">
22-
<p class="govuk-notification-banner__heading" id="placeholder-banner">
23-
Placeholder
24-
</p>
25-
</div>
26-
</div>
20+
private static final String INFO_MARKDOWN = """
21+
<p class="govuk-body">If someone else helped you to answer a question in this service,
22+
ask them if they answered any questions in Welsh. We’ll use this to make sure
23+
your claim is processed correctly.</p>
2724
""";
2825

2926
@Override
@@ -32,8 +29,11 @@ public void addTo(PageBuilder pageBuilder) {
3229
.page("whichLanguage", this::midEvent)
3330
.pageLabel("Which language did you use to complete this service?")
3431
.label("whichLanguage-lineSeparator", "---")
35-
.label("whichLanguage-placeholder", PLACEHOLDER)
36-
.readonly(PCSCase::getCurrentRepresentedPartyId, NEVER_SHOW, true);
32+
.label("whichLanguage-info", INFO_MARKDOWN)
33+
.readonly(PCSCase::getCurrentRepresentedPartyId, NEVER_SHOW, true)
34+
.complex(PCSCase::getXuiGenAppRequest)
35+
.mandatory(XuiGenAppRequest::getLanguageUsed)
36+
.done();
3737
}
3838

3939
private AboutToStartOrSubmitResponse<PCSCase, State> midEvent(CaseDetails<PCSCase, State> details,

0 commit comments

Comments
 (0)