- {t(
- "myrepresentations:rep-check-your-rep-heading"
- )}
+ {repFormData.appealType == 846040002
+ ? t(
+ "myrepresentations:consultation-check-your-rep-heading"
+ )
+ : t(
+ "myrepresentations:rrep-check-your-rep-heading"
+ )}
-
- {t(
- "case:representation-representation-type"
- )}
+ {repFormData.appealType == 846040002
+ ? t(
+ "case:consultation-representation-type"
+ )
+ : t(
+ "case:representation-representation-type"
+ )}
-
@@ -427,58 +439,63 @@ const RepCompleteSubmit = (props) => {
>
)}
{repFormData.representationType !=
- "Questionnaire" && (
-
+ )}
-
{t("case:representation-files")}
diff --git a/components/case/representation/representationDetails.js b/components/case/representation/representationDetails.js
index 0276a089..e3947f14 100644
--- a/components/case/representation/representationDetails.js
+++ b/components/case/representation/representationDetails.js
@@ -8,7 +8,7 @@ const RepDetails = (props) => {
const router = useRouter();
const { locale } = router;
- const { currentType, casesObj } = props;
+ const { currentType, casesObj, appealType } = props;
let { caseReference } = props;
@@ -97,10 +97,14 @@ const RepDetails = (props) => {
- {t("myrepresentations:capacity-para-one")}
+ {appealType == 846040002
+ ? t("myrepresentations:sips-capacity-para-one")
+ : t("myrepresentations:capacity-para-one")}
- {t("myrepresentations:capacity-para-two")}
+ {appealType == 846040002
+ ? t("myrepresentations:sips-capacity-para-two")
+ : t("myrepresentations:capacity-para-two")}
diff --git a/components/case/representation/representationInterestedPartyPerson.js b/components/case/representation/representationInterestedPartyPerson.js
index 11c3cca6..ca59a797 100644
--- a/components/case/representation/representationInterestedPartyPerson.js
+++ b/components/case/representation/representationInterestedPartyPerson.js
@@ -71,7 +71,7 @@ const RepInterestedPartyPerson = (props) => {
<>
{t(
- "myrepresentations:representation-from-an-interested-person-heading"
+ "myrepresentations:consultation-from-an-interested-person-heading"
)}
diff --git a/components/search/repsonresults.js b/components/search/repsonresults.js
index 21d0af84..f99a6f97 100644
--- a/components/search/repsonresults.js
+++ b/components/search/repsonresults.js
@@ -94,12 +94,15 @@ const RepsOnResults = (props) => {
{(_.has(detailsObj, "pinswg_startdate") ||
- _.has(detailsObj, "pinswg_applicationacceptedasvalid")) &&
+ _.has(detailsObj, "pinswg_applicationacceptedasvalid") ||
+ _.has(detailsObj, "pinswg_consultationopen")) &&
showReps(
detailsObj.pinswg_startdate ||
- detailsObj.pinswg_applicationacceptedasvalid,
+ detailsObj.pinswg_applicationacceptedasvalid ||
+ detailsObj.pinswg_consultationopen,
detailsObj.pinswg_finalcommentsduedate ||
- detailsObj.pinswg_endofrepresentationperiod
+ detailsObj.pinswg_endofrepresentationperiod ||
+ detailsObj.pinswg_consultationclose
) && (
<>
{showRepButton(detailsObj.appealType) ? (
@@ -119,8 +122,7 @@ const RepsOnResults = (props) => {
)}
*/}
- {props.currentView.caseReference
- .appealType == 846040002
+ {props.appealType == 846040002
? t(
"case:summary-consultation-open-label"
)
diff --git a/components/search/searchresults.js b/components/search/searchresults.js
index 19739055..e7fafe41 100644
--- a/components/search/searchresults.js
+++ b/components/search/searchresults.js
@@ -343,6 +343,9 @@ const SearchResults = (props) => {
)}
-
diff --git a/locales/cy/case.json b/locales/cy/case.json
index 8c5d3af5..04d591e7 100644
--- a/locales/cy/case.json
+++ b/locales/cy/case.json
@@ -95,6 +95,7 @@
"summary-no-details-label": "Nid oes unrhyw fanylion ar gael ar hyn o bryd",
"summary-case-relevant-authoritylabel": "Awdurdod perthnasol",
"representation-representation-type": "Pa fath o sylw ydych chi'n ei wneud?",
+ "consultation-representation-type": "Pa fath o ymgynghoriad ydych chi'n ei wneud?",
"representation-onbehalfof": "A ydych yn gweithredu ar ran cwmni, grŵp neu sefydliad",
"representation-onbehalfof-details": "Enw'r cwmni/grŵp/sefydliad",
"representation-comments": "Sylwadau",
diff --git a/locales/cy/myrepresentations.json b/locales/cy/myrepresentations.json
index 63e755cc..8bc4965d 100644
--- a/locales/cy/myrepresentations.json
+++ b/locales/cy/myrepresentations.json
@@ -3,18 +3,26 @@
"sign-in-to-raise-rep-label": "I wneud sylwadau ar yr apêl hon, bydd angen i chi fewngofnodi gyda'ch cyfeiriad e-bost. Os nad ydych eisiau mewngofnodi i wneud sylwadau, cysylltwch â'r canlynol",
"sign-in-to-raise-rep-button": "Mewngofnodwch i wneud sylwadau",
"make-a-representation-on-label": "Gwnewch sylwadau ar",
+ "make-a-consultation-on-label": "Gwneud ymateb i'r ymgynghoriad ar",
"make-a-representation-for-label": "Gwnewch sylwadau ar ran",
"timetable-title": "Amserlen",
"questionnaire-due-label": "Holiadur i ddod",
"local-impact-report": "Adroddiad ar yr Effaith Leol i ddod",
+ "marine-impact-report": "Adroddiad Effaith Morol i'w gyhoeddi",
"statements-due-label": "Datganiadau i ddod",
"final-comments-due-label": "Sylwadau terfynol i ddod",
+ "consultation-close-label": "Daeth y cyfnod ymgynghori i ben",
"representation-from-an-agent-heading": "Sylwadau gan Asiant",
+ "consultation-from-an-agent-heading": "Ymateb ymgynghorydd gan Asiant",
"representation-from-an-lpa-heading": "Sylwadau gan ACLl",
"representation-from-an-appellant-heading": "Sylwadau gan Apelydd",
+ "consultation-from-an-appellant-heading": " Ymateb i'r ymgynghoriad gan Apelydd",
"representation-from-an-interested-person-heading": "Sylwadau gan Barti/Unigolyn â Buddiant",
+ "consultation-from-an-interested-person-heading": "Ymateb i'r ymgynghoriad gan Barti/Person â Diddordeb",
"kind-of-rep-label": "Pa fath o sylw ydych chi'n ei wneud?",
+ "kind-of-consultation-label": "Pa fath o ymateb i'r ymgynghoriad ydych chi'n ei wneud?",
"enter-comment-label": "Gallwch roi eich cynrychioliad yn y gofod a ddarparwyd neu atodi dogfen ar wahân.",
+ "consultation-comment-label": "Gallwch atodi'ch dogfennau sy'n gysylltiedig â'ch ymateb i'r ymgynghoriad.",
"comments-set-out-label": "Mae fy sylwadau wedi'u nodi yn",
"publish-policy-label": "Sylwch y gall pob sylw gael ei gyhoeddi yn unol â'n ",
"publish-policy-link-label": "Polisi Cyhoeddi.",
@@ -29,13 +37,18 @@
"fileupload-file-error-invalid-label": "yn annilys",
"capacity-para-one": "Mae'r ffurflen hon yn eich galluogi i gyflwyno sylwadau ar achos i Benderfyniadau Cynllunio ac Amgylchedd Cymru",
"capacity-para-two": "Sylwch fod angen cyflwyno sylwadau gan bartïon â diddordeb o fewn yr amserlen. Mae hwn i'w weld ar y dudalen \"Crynodeb Achos\" flaenorol. Gall sylwadau a gyflwynir ar ôl y dyddiad hwn gael eu hystyried yn annilys.",
+ "sips-capacity-para-one": "Mae'r ffurflen hon yn eich galluogi i gyflwyno ymateb i ymgynghoriad ar achos i Benderfyniadau Cynllunio ac Amgylchedd Cymru.",
+ "sips-capacity-para-two": "Sylwch fod angen ymateb i'r ymgynghoriad gan bartïon â diddordeb o fewn yr amserlen. Mae hwn i'w weld ar y dudalen \"Crynodeb Achos\" flaenorol. Gall ymatebion i ymgynghoriadau a gyflwynir ar ôl y dyddiad hwn gael eu hystyried yn annilys.",
"capacity-select-your-details": "Eich manylion",
"capacity-select-what-capacity-label": "Ym mha rinwedd ydych chi am gyflwyno sylwadau ar yr achos hwn?",
+ "sips-capacity-select-what-capacity-label": "Ym mha rinwedd ydych chi am wneud ymateb i ymgynghoriad ar yr achos hwn?",
"capacity-options-arr-appellant": "Apelydd",
"capacity-options-arr-agent": "Asiant",
"capacity-options-arr-interested": "Parti â buddiant",
"rep-check-submit-heading": "Gwiriwch eich sylwadau",
+ "consultation-check-submit-heading ": "Gwiriwch eich ymateb i'r ymgynghoriad",
"rep-check-your-rep-heading": "Eich sylwadau",
+ "consultation-check-your-rep-heading": "Eich ymateb i'r ymgynghoriad",
"rep-check-tandc-para-one": "Mae'r data personol a ddarparwyd gennych ar y ffurflen hon yn cael ei chasglu a'i phrosesu yn unol â thelerau ein cofrestriad o dan Ddeddf Diogelu Data 2018.",
"rep-check-tandc-para-two": "Mae Penderfyniadau Cynllunio a'r Amgylchedd Cymru yn cymryd ei chyfrifoldebau diogelu data am y wybodaeth a roddwch i ni o ddifrif. I ddarganfod mwy am sut rydym yn defnyddio ac yn rheoli eich data personol, ewch i ein",
"rep-check-tandc-para-three": "Cadarnhaf fod pob adran o’r ffurflen hon wedi’u llenwi’n llawn a bod y manylion yn gywir hyd eithaf fy ngwybodaeth.",
diff --git a/locales/en/case.json b/locales/en/case.json
index 3827770a..143dece2 100644
--- a/locales/en/case.json
+++ b/locales/en/case.json
@@ -95,6 +95,8 @@
"summary-no-details-label": "No details currently held",
"summary-case-relevant-authoritylabel": "Relevant authority",
"representation-representation-type": "What kind of representation are you making?",
+ "consultation-representation-type": "What kind of consultation are you making?",
+ "representation-consultation-type": "What kind of consultation response are you making?",
"representation-onbehalfof": "Are you acting on behalf of a company, group or organisation",
"representation-onbehalfof-details": "Name of the company/group/organisation",
"representation-comments": "Representation",
diff --git a/locales/en/myrepresentations.json b/locales/en/myrepresentations.json
index e0723fe7..a252d6a2 100644
--- a/locales/en/myrepresentations.json
+++ b/locales/en/myrepresentations.json
@@ -3,18 +3,26 @@
"sign-in-to-raise-rep-label": "To raise a representation for this appeal you will need to login with your email address. If you do not wish to login to raise a representation contact",
"sign-in-to-raise-rep-button": "Sign in to raise representation",
"make-a-representation-on-label": "Make a representation on",
+ "make-a-consultation-on-label": "Make a consultation response on",
"make-a-representation-for-label": "Make a representation for",
"timetable-title": "Timetable",
"questionnaire-due-label": "Questionnaire due",
"local-impact-report": "Local Impact Report due",
+ "marine-impact-report": "Marine Impact Report due",
"statements-due-label": "Statements due",
"final-comments-due-label": "Final comments due",
+ "consultation-close-label": "Consultation period end",
"representation-from-an-agent-heading": "Representation from an Agent",
+ "consultation-from-an-agent-heading": "Consultant repsponse from an Agent",
"representation-from-an-lpa-heading": "Representation from an LPA",
"representation-from-an-appellant-heading": "Representation from an Appellant",
+ "consultation-from-an-appellant-heading": "Consultation response from an Appellant",
"representation-from-an-interested-person-heading": "Representation from an Interested Party/Person",
+ "consultation-from-an-interested-person-heading": "Consultation response from an Interested Party/Person",
"kind-of-rep-label": "What kind of representation are you making?",
+ "kind-of-consultation-label": "What kind of consultation respone are you making?",
"enter-comment-label": "You can enter your representation in the space provided or attach a separate document.",
+ "consultation-comment-label": "You can attach your documents related to your consultation response.",
"comments-set-out-label": "My comments are set out in",
"publish-policy-label": "Please note that all representations may be published in line with our ",
"publish-policy-link-label": "Publishing Policy.",
@@ -29,13 +37,18 @@
"fileupload-file-error-invalid-label": "is invalid",
"capacity-para-one": "This form enables you to submit representations on a case to Planning and Environment Decisions Wales.",
"capacity-para-two": "Please note that representations from interested parties need to be made within the timetable. This can be found on the previous \"Case Summary\" page. Representations submitted after this date may be considered invalid.",
+ "sips-capacity-para-one": "This form enables you to submit a consultation repsonse on a case to Planning and Environment Decisions Wales.",
+ "sips-capacity-para-two": "Please note that consultation responses from interested parties need to be made within the timetable. This can be found on the previous \"Case Summary\" page. Consultations responses submitted after this date may be considered invalid.",
"capacity-select-your-details": "Your details",
"capacity-select-what-capacity-label": "In what capacity do you wish to make representations on this case?",
+ "sips-capacity-select-what-capacity-label": "In what capacity do you wish to make a consultation repsonse on this case?",
"capacity-options-arr-appellant": "Appellant",
"capacity-options-arr-agent": "Agent",
"capacity-options-arr-interested": "Interested party",
"rep-check-submit-heading": "Check your representation",
+ "consultation-check-submit-heading": "Check your consultation response",
"rep-check-your-rep-heading": "Your representation",
+ "consultation-check-your-rep-heading": "Your consultation repsonse",
"rep-check-tandc-para-one": "The gathering and subsequent processing of the personal data supplied by you in this form, is in accordance with the terms of our registration under the Data Protection Act 2018.",
"rep-check-tandc-para-two": "Planning and Environment Decisions Wales takes its data protection responsibilities for the information you provide us with very seriously. To find out more about how we use and manage your personal data, please go to our",
"rep-check-tandc-para-three": "I confirm that all sections of this form have been fully completed and that the details are correct to the best of my knowledge.",
diff --git a/pages/api/file/generatepdf.js b/pages/api/file/generatepdf.js
index 10ae541c..4e5e0055 100644
--- a/pages/api/file/generatepdf.js
+++ b/pages/api/file/generatepdf.js
@@ -266,6 +266,12 @@ export default async function handler(req, res) {
case "Local Impact Report":
repType = "Impact";
break;
+ case "Consultation Response":
+ repType = "Consultation_Response";
+ break;
+ case "Marine Impact Report":
+ repType = "Marine_Impact";
+ break;
case "Other":
repType = "OTHER";