-
Notifications
You must be signed in to change notification settings - Fork 5
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
PUB-2588 Add List Type For Court Subscription #1348
base: master
Are you sure you want to change the base?
Conversation
{% extends "template.njk" %} | ||
{% from "./macros/common-components.njk" import goBack, submitButton %} | ||
{%- from "govuk/components/checkboxes/macro.njk" import govukCheckboxes -%} | ||
{%- from "govuk/components/input/macro.njk" import govukInput -%} |
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.
if govukCheckboxes and govukInput nunjucks macro are not used we can remove them here
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.
removed.
{% endblock %} | ||
|
||
{% block beforeContent %} | ||
{{ govukBackLink({ |
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.
Can we not use the goBack() macro defined in common-components here?
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.
as discussed, updated.
"removeText": "Remove", | ||
"table": { | ||
"header1": "Case name", | ||
"header2": "Party name(s)", | ||
"header3": "Reference number", | ||
"header4": "Actions" | ||
}, | ||
"buttonText_court_subscription": "Continue", |
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.
title_court_subscription and buttonText_court_subscription need to be added to the welsh language resource too
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.
added
src/main/service/LocationService.ts
Outdated
@@ -99,4 +99,14 @@ export class LocationService { | |||
public async deleteLocationById(locationId: number, requester: string): Promise<object> { | |||
return await locationRequest.deleteCourt(locationId, requester); | |||
} | |||
|
|||
public async findCourtsJurisdiction(locations): Promise<object> { |
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.
Can we change the returned type to Promise<string[]> and not object?
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.
done, thanks, good catch :)
@@ -282,6 +282,17 @@ export default function (app: Application): void { | |||
isPermittedMedia, | |||
app.locals.container.cradle.subscriptionManagementController.get | |||
); | |||
app.get('/subscription-add-list', isPermittedMedia, app.locals.container.cradle.subscriptionAddListController.get); |
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.
We need to add new a11y tests for the new routes too
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.
added.
Quality Gate passedIssues Measures |
JIRA link
https://tools.hmcts.net/jira/browse/
Change description
Add List Type For Court Subscription
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[x] No