diff --git a/components/case/representation/index.js b/components/case/representation/index.js index f4d482bd..55684919 100644 --- a/components/case/representation/index.js +++ b/components/case/representation/index.js @@ -111,8 +111,8 @@ let MakeRepresentation = (props) => { const repDate = new Date(); - let day = repDate.getDate(); - let month = repDate.getMonth() + 1; + let day = ("0" + repDate.getDate()).slice(-2); + let month = ("0" + repDate.getMonth() + 1).slice(-2); let year = repDate.getFullYear(); switch (values.representationCapacity) { diff --git a/components/case/representation/representationCompleteSubmit.js b/components/case/representation/representationCompleteSubmit.js index 0a3c45ae..6e8cc68d 100644 --- a/components/case/representation/representationCompleteSubmit.js +++ b/components/case/representation/representationCompleteSubmit.js @@ -509,9 +509,9 @@ const RepCompleteSubmit = (props) => { className="govuk-button" data-module="govuk-button" onClick={() => { - setRepresentationSubmitConfirmation( - true - ); + // setRepresentationSubmitConfirmation( + // true + // ); setRepresentationSubmit(true); }} > diff --git a/components/case/representation/representationElements.js b/components/case/representation/representationElements.js index 307c836a..bace3666 100644 --- a/components/case/representation/representationElements.js +++ b/components/case/representation/representationElements.js @@ -288,7 +288,7 @@ export const RenderCondtionalRadioList = ({
e.g. "Owners of Numbers 1-5 High Street", or "Mr and Mrs - Smith" or "The executors of Mr Evans" estate" + Smith" or "The executors of Mr Evans' estate"
{Object.keys(options).map((key, index) => ( @@ -341,6 +341,7 @@ export const RenderCondtionalRadioList = ({ name={id + "_details"} component="input" type="text" + validate={[required]} />
@@ -401,7 +402,10 @@ export const RenderLPACondtionalRadioList = ({ {typeof custom.hint != undefined && ( -
+
{t(custom.hint)}
)} @@ -1042,7 +1046,7 @@ export const RenderFileUpload = (field) => { return ( <> { {t( "myrepresentations:fileupload-drop-label" )} - (Max 500MB) + (Max 50 MB)
( diff --git a/components/case/representation/representationLPA.js b/components/case/representation/representationLPA.js index 2edf9771..9b54a752 100644 --- a/components/case/representation/representationLPA.js +++ b/components/case/representation/representationLPA.js @@ -17,6 +17,12 @@ import RepresentationProgress_s78 from "./representationProgress/representationP import Enforcement_Questionnaire from "./representationQuestionnaires/representationLPAQuestionnaire_enforcement"; import S78_Questionnaire from "./representationQuestionnaires/representationLPAQuestionnaire_s78"; +import { + setRepresentationCapacity, + setRepresentationSubmit, + setFilesForRepresentations, +} from "../../../store/currentView/action"; + let RepLPA = (props) => { let { t } = useTranslation(); const router = useRouter(); @@ -39,6 +45,7 @@ let RepLPA = (props) => { updateRepresentation, setSavingStatus, savingStatus, + setFilesForRepresentations, } = props; const { acceptedFiles, getRootProps, getInputProps } = useDropzone(); @@ -363,7 +370,9 @@ let RepLPA = (props) => { ].values.filesList) || [] } - setFilesForRepresentation={[]} + setFilesForRepresentations={ + setFilesForRepresentations + } containerID={ props.props.props.accountDetails .containerID @@ -583,6 +592,10 @@ RepLPA = connect((state) => { const mapDispatchToProps = (dispatch) => ({ updateField: (form, field, newValue) => dispatch(change(form, field, newValue)), + + setFilesForRepresentations: (fileList) => { + dispatch(setFilesForRepresentations(fileList)); + }, }); const mapStateToProps = (state, props) => { diff --git a/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_enforcement.js b/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_enforcement.js index c637919a..8b0dcd82 100644 --- a/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_enforcement.js +++ b/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_enforcement.js @@ -375,7 +375,7 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { <>
- 10. Has the local planning authority received + 10. Has the Local Planning Authority received the correct fee payable in relation to this appeal for the deemed planning application/ground (a) to be considered? diff --git a/components/elements/index.js b/components/elements/index.js index 7f000d7c..ebcbbcb2 100644 --- a/components/elements/index.js +++ b/components/elements/index.js @@ -2001,7 +2001,7 @@ const RenderFileUpload = (field) => { <> { {t( "newappeal:new-appeal-fileupload-drop-label" )}{" "} - (Max 500MB) + (Max 50 MB)
( @@ -2287,6 +2287,8 @@ const RenderSubFields = ({ fields, meta: { touched, error }, ...custom }) => { const required = (value) => value ? undefined : t("newappeal:is-required-label"); + //fields.push({}); + fields.length == 0 && fields.push({}); return (