From 8714d711890c288737061642ae0617bd1a21424f Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Tue, 5 Oct 2021 09:47:57 +0100 Subject: [PATCH] fomrs split out --- components/footer.js | 24 +- components/header.js | 20 +- components/homepage/casecomment.js | 4 +- components/homepage/casesearch.js | 8 +- components/homepage/login.js | 8 +- components/homepage/loginSoon.js | 4 +- components/main.js | 2 +- components/myportal/searchcases.js | 232 +- components/myportal/topthree.js | 20 +- components/myportal/viewall.js | 2 +- components/search/viewall.js | 10 +- data/forms/adverts.js | 2064 ++++++++++++++++ data/forms/callinss77.js | 1947 +++++++++++++++ data/forms/commonland.js | 1991 +++++++++++++++ .../communityinfrastructurelevys117118119.js | 2060 ++++++++++++++++ data/forms/compulsorypurchaseorders.js | 1913 +++++++++++++++ data/forms/dns.js | 7 + data/forms/electricityact.js | 353 +++ ...enforcementlistedbuildingconservationap.js | 2180 +++++++++++++++++ data/forms/enforcementnoticeappeals174.js | 2180 +++++++++++++++++ data/forms/environmentalpermitting.js | 2010 +++++++++++++++ data/forms/harbourrevisionorder.js | 353 +++ ...hedgeshedgerowstreepreservationreplacem.js | 1991 +++++++++++++++ data/forms/householderappealhas.js | 2064 ++++++++++++++++ data/forms/lawfuldevelopmentcertificate.js | 2064 ++++++++++++++++ data/forms/ldp.js | 49 + ...listedbuildingandconservationareaconsen.js | 2064 ++++++++++++++++ data/forms/maintenanceoflands217.js | 2110 ++++++++++++++++ data/forms/miscellaneouscasework.js | 1991 +++++++++++++++ data/forms/nonvalidation.js | 2134 ++++++++++++++++ data/forms/planningappeals78.js | 2077 ++++++++++++++++ data/forms/planningconditionss73s79.js | 2064 ++++++++++++++++ data/forms/planningobligationappeals106.js | 2037 +++++++++++++++ data/forms/row.js | 1915 +++++++++++++++ data/forms/transportandworkact.js | 353 +++ data/forms/wayleave.js | 1952 +++++++++++++++ i18n.json | 2 +- locales/cy/common.json | 1 + locales/cy/home.json | 1 + locales/cy/myportal.json | 13 +- locales/en/common.json | 1 + locales/en/home.json | 1 + locales/en/myportal.json | 13 +- next.config.js | 35 +- pages/myportal/advancedsearch.js | 105 + pages/myportal/advancedsearchresults.js | 142 ++ pages/newappeal/[appealtypes].js | 145 +- pages/newappeal/index.js | 7 +- 48 files changed, 42577 insertions(+), 146 deletions(-) create mode 100644 data/forms/adverts.js create mode 100644 data/forms/callinss77.js create mode 100644 data/forms/commonland.js create mode 100644 data/forms/communityinfrastructurelevys117118119.js create mode 100644 data/forms/compulsorypurchaseorders.js create mode 100644 data/forms/dns.js create mode 100644 data/forms/electricityact.js create mode 100644 data/forms/enforcementlistedbuildingconservationap.js create mode 100644 data/forms/enforcementnoticeappeals174.js create mode 100644 data/forms/environmentalpermitting.js create mode 100644 data/forms/harbourrevisionorder.js create mode 100644 data/forms/hedgeshedgerowstreepreservationreplacem.js create mode 100644 data/forms/householderappealhas.js create mode 100644 data/forms/lawfuldevelopmentcertificate.js create mode 100644 data/forms/ldp.js create mode 100644 data/forms/listedbuildingandconservationareaconsen.js create mode 100644 data/forms/maintenanceoflands217.js create mode 100644 data/forms/miscellaneouscasework.js create mode 100644 data/forms/nonvalidation.js create mode 100644 data/forms/planningappeals78.js create mode 100644 data/forms/planningconditionss73s79.js create mode 100644 data/forms/planningobligationappeals106.js create mode 100644 data/forms/row.js create mode 100644 data/forms/transportandworkact.js create mode 100644 data/forms/wayleave.js create mode 100644 pages/myportal/advancedsearch.js create mode 100644 pages/myportal/advancedsearchresults.js diff --git a/components/footer.js b/components/footer.js index 803574e9..93074a7a 100644 --- a/components/footer.js +++ b/components/footer.js @@ -27,6 +27,13 @@ export default function Footer(props) { : setShowShareState(true); }; + console.log(router.asPath); + const shareBodyStr = t("common:gov-wales-link") + router.asPath; + const shareSubjectStr = + t("common:social-shared-from") + + " " + + t("common:gov-wales-label").toLowerCase(); + return ( <>
@@ -60,7 +67,10 @@ export default function Footer(props) { >
  • @@ -73,7 +83,10 @@ export default function Footer(props) {
  • @@ -84,7 +97,12 @@ export default function Footer(props) {
  • diff --git a/components/header.js b/components/header.js index 1ce19ecc..f9fb09c6 100644 --- a/components/header.js +++ b/components/header.js @@ -88,7 +88,9 @@ const Header = (props) => {
  • - + { window.localStorage.clear(); @@ -140,7 +142,13 @@ const Header = (props) => { "" ) : (
  • - + { window.localStorage.clear(); @@ -213,7 +221,13 @@ const Header = (props) => { {noSignoutLink.includes(router.pathname) == true ? ( "" ) : ( - + { window.localStorage.clear(); diff --git a/components/homepage/casecomment.js b/components/homepage/casecomment.js index 50e342c2..848829e1 100644 --- a/components/homepage/casecomment.js +++ b/components/homepage/casecomment.js @@ -15,8 +15,8 @@ export default function CaseComment() {

    {t("home:casescomment-card-paragraph-one")}{" "} - - Casework.PEDW@gov.wales + + {t("home:login-contact-email")}

    diff --git a/components/homepage/casesearch.js b/components/homepage/casesearch.js index 2740c0d9..6ac2ad47 100644 --- a/components/homepage/casesearch.js +++ b/components/homepage/casesearch.js @@ -125,7 +125,13 @@ let CaseSearch = (props) => { {t("home:casesearch-card-button")}

  • - + {t("home:casesearch-card-advanced-link")} diff --git a/components/homepage/login.js b/components/homepage/login.js index 1f1311d8..a1742759 100644 --- a/components/homepage/login.js +++ b/components/homepage/login.js @@ -60,7 +60,13 @@ export default function Login() { > {t("home:login-card-button")} */} - + {t("home:login-card-button")} diff --git a/components/homepage/loginSoon.js b/components/homepage/loginSoon.js index 14f834a9..dcc8021d 100644 --- a/components/homepage/loginSoon.js +++ b/components/homepage/loginSoon.js @@ -17,8 +17,8 @@ export default function LoginSoon() {

    {t("home:login-comingsoon-temp-1")}{" "} - - Casework.PEDW@gov.wales + + {t("home:login-contact-email")}

    diff --git a/components/main.js b/components/main.js index bf5b2b85..ad925872 100644 --- a/components/main.js +++ b/components/main.js @@ -28,7 +28,7 @@ export default function Home({ children, pages }) { - {/* */} +

    diff --git a/components/myportal/searchcases.js b/components/myportal/searchcases.js index 17e53c36..d0ea6529 100644 --- a/components/myportal/searchcases.js +++ b/components/myportal/searchcases.js @@ -2,95 +2,177 @@ import Link from "next/link"; import { useState } from "react"; import { useRouter } from "next/router"; import useTranslation from "next-translate/useTranslation"; +import { connect } from "react-redux"; +import { Field, reduxForm } from "redux-form"; +import LoadingOverlay from "react-loading-overlay"; -export default function SearchCases() { +const required = (errorMsg) => (value) => + value || typeof value === "number" ? undefined : errorMsg; + +export const minLength = (errorMsg) => (value) => + value && value.length < 4 + ? errorMsg //`Must be ${min} characters or more` + : undefined; + +const RenderTextfield = ({ + id, + className, + rows, + datafieldname, + name, + label, + input, + hint1, + hint2, + meta: { touched, error }, + ...custom +}) => { + return ( + <> +
    +
    + {hint1} + +
    + + {hint2} CAS-00009-W8N6W4 + +
    + + {touched && error && ( + + Error:{" "} + {error} + + )} + +
    + + ); +}; + +let CaseSearch = (props) => { let { t } = useTranslation(); + const { handleSubmit, pristine, reset, submitting } = props; const router = useRouter(); const { locale } = router; - const [query, setQuery] = useState(""); - const [validationError, setValidationError] = useState(""); - const handleParam = (setValue) => (e) => setValue(e.target.value); - const basicSearch = (event) => { - event.preventDefault(); + const [showSpinnerState, setShowSpinnerState] = useState(false); - if (query == "" || query == null) { - setValidationError(true); - } else { - setValidationError(false); - console.log(query); - // /searchresults + let spinnerState = () => { + showSpinnerState == true + ? setShowSpinnerState(false) + : setShowSpinnerState(true); + }; - router.push({ - pathname: "/myportal/searchresults", - query: { q: query }, - }); - } + const onHandleSubmit = (values) => { + spinnerState(); + router.replace({ + pathname: + router.locale == "cy" + ? "/fymhorth/canlyniadauchwilio" + : "/myportal/searchresults", + query: { q: values.basicSearch }, + shallow: true, + }); }; return ( -
    -
    -
    -

    - {t("myportal:searchcases-card-title")} -

    -
    -
    - {t("myportal:searchcases-card-search-hint")}: -
    - - {" "} - - {t( - "myportal:searchcases-card-search-example-label" - )} - : - {" "} - CAS-00009-W8N6W4 - -
    - {validationError && ( - - - Error: - {" "} - Case reference is required - - )} - +
    + +
    +

    + {t("myportal:searchcases-card-title")} +

    + + -
    -
    - +
    + - {t("myportal:searchcases-card-button")} - + + {t("myportal:searchcases-card-advanced-link")} + +
    - - {t("myportal:searchcases-card-advanced-link")} - -
    - -
    + + +
    + ); -} +}; + +const mapStateToProps = (state) => { + return { + currentView: state.currentView, + search: state.search, + searchResultsObj: state.searchResultsObj, + formData: state.formData, + appealType: state.appealType, + //form: state.form, + myCases: state.myCases, + watchedCases: state.watchedCases, + myRepresentations: state.myRepresentations, + awaitingSubmission: state.awaitingSubmission, + }; +}; + +const mapDispatchToProps = (dispatch) => { + return {}; +}; + +export default connect( + mapStateToProps, + mapDispatchToProps +)( + reduxForm({ + form: "basicSearchForm", + destroyOnUnmount: false, + })(CaseSearch) +); diff --git a/components/myportal/topthree.js b/components/myportal/topthree.js index 108fdf51..b8664347 100644 --- a/components/myportal/topthree.js +++ b/components/myportal/topthree.js @@ -79,12 +79,16 @@ const TopThree = (props) => {
    - Case reference:{" "} + {t("myportal:case-reference")}:{" "} {
    {topThreeType != "awaitingSubmission" ? (
    - Addressa:{" "} + {t("myportal:case-address")}:{" "} {_.isEmpty(showDetails) - ? "not entered" + ? t("myportal:case-address-not-entered") : _.isEmpty(showDetails[index]) - ? "not entered" + ? t("myportal:case-address-not-entered") : _.isEmpty(showDetails[index].value[0]) - ? "not entered" + ? t("myportal:case-address-not-entered") : _.isEmpty( showDetails[index].value[0] .pinswg_siteaddressline1 ) - ? "not entered" + ? t("myportal:case-address-not-entered") : showDetails[index].value[0] .pinswg_siteaddressline1}
    diff --git a/components/myportal/viewall.js b/components/myportal/viewall.js index 6a2eedd3..ad372280 100644 --- a/components/myportal/viewall.js +++ b/components/myportal/viewall.js @@ -21,7 +21,7 @@ const ViewAllResults = (props) => { resultsRowArr.push(
    - + { setCurrentReference({ diff --git a/components/search/viewall.js b/components/search/viewall.js index 3d358cd2..b12d706f 100644 --- a/components/search/viewall.js +++ b/components/search/viewall.js @@ -13,7 +13,7 @@ export default function ViewAllResults(props) { const resultRow = Object.keys(resultsArr).map((key, index) => {
    - + Case Reference: @@ -83,7 +83,13 @@ export default function ViewAllResults(props) { return (
    - + Case Reference: diff --git a/data/forms/adverts.js b/data/forms/adverts.js new file mode 100644 index 00000000..40e8b767 --- /dev/null +++ b/data/forms/adverts.js @@ -0,0 +1,2064 @@ +const AdvertsForm = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default AdvertsForm; diff --git a/data/forms/callinss77.js b/data/forms/callinss77.js new file mode 100644 index 00000000..aa3c7eb4 --- /dev/null +++ b/data/forms/callinss77.js @@ -0,0 +1,1947 @@ +const Callinss77Form = (props) => { + const { caseReference } = props; + + return; + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    +
    +
    +
    + ; +}; + +export default Callinss77Form; diff --git a/data/forms/commonland.js b/data/forms/commonland.js new file mode 100644 index 00000000..6565e80d --- /dev/null +++ b/data/forms/commonland.js @@ -0,0 +1,1991 @@ +const CommonLandForm = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default CommonLandForm; diff --git a/data/forms/communityinfrastructurelevys117118119.js b/data/forms/communityinfrastructurelevys117118119.js new file mode 100644 index 00000000..2fc643fd --- /dev/null +++ b/data/forms/communityinfrastructurelevys117118119.js @@ -0,0 +1,2060 @@ +const CommunityInfrastructureLevys117118119Form = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default CommunityInfrastructureLevys117118119Form; diff --git a/data/forms/compulsorypurchaseorders.js b/data/forms/compulsorypurchaseorders.js new file mode 100644 index 00000000..3314c543 --- /dev/null +++ b/data/forms/compulsorypurchaseorders.js @@ -0,0 +1,1913 @@ +const CompulsoryPurchaseOrdersForm = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default CompulsoryPurchaseOrdersForm; diff --git a/data/forms/dns.js b/data/forms/dns.js new file mode 100644 index 00000000..73f653ce --- /dev/null +++ b/data/forms/dns.js @@ -0,0 +1,7 @@ +const DNSForm = (props) => { + const { caseReference } = props; + + return <>; +}; + +export default DNSForm; diff --git a/data/forms/electricityact.js b/data/forms/electricityact.js new file mode 100644 index 00000000..93e58e88 --- /dev/null +++ b/data/forms/electricityact.js @@ -0,0 +1,353 @@ +const ElectricityActForm = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default ElectricityActForm; diff --git a/data/forms/enforcementlistedbuildingconservationap.js b/data/forms/enforcementlistedbuildingconservationap.js new file mode 100644 index 00000000..3e3f0835 --- /dev/null +++ b/data/forms/enforcementlistedbuildingconservationap.js @@ -0,0 +1,2180 @@ +const EnforcementListedBuildingConservationapForm = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default EnforcementListedBuildingConservationapForm; diff --git a/data/forms/enforcementnoticeappeals174.js b/data/forms/enforcementnoticeappeals174.js new file mode 100644 index 00000000..d2381d56 --- /dev/null +++ b/data/forms/enforcementnoticeappeals174.js @@ -0,0 +1,2180 @@ +const EnforcementNoticeAppeals174Form = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default EnforcementNoticeAppeals174Form; diff --git a/data/forms/environmentalpermitting.js b/data/forms/environmentalpermitting.js new file mode 100644 index 00000000..f7aed3bd --- /dev/null +++ b/data/forms/environmentalpermitting.js @@ -0,0 +1,2010 @@ +const EnvironmentalPermittingForm = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default EnvironmentalPermittingForm; diff --git a/data/forms/harbourrevisionorder.js b/data/forms/harbourrevisionorder.js new file mode 100644 index 00000000..3ce46af8 --- /dev/null +++ b/data/forms/harbourrevisionorder.js @@ -0,0 +1,353 @@ +const HarbourRevisionOrderForm = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default HarbourRevisionOrderForm; diff --git a/data/forms/hedgeshedgerowstreepreservationreplacem.js b/data/forms/hedgeshedgerowstreepreservationreplacem.js new file mode 100644 index 00000000..02caf739 --- /dev/null +++ b/data/forms/hedgeshedgerowstreepreservationreplacem.js @@ -0,0 +1,1991 @@ +const HedgesHedgerowsTreePreservationReplacemForm = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default HedgesHedgerowsTreePreservationReplacemForm; diff --git a/data/forms/householderappealhas.js b/data/forms/householderappealhas.js new file mode 100644 index 00000000..061b02da --- /dev/null +++ b/data/forms/householderappealhas.js @@ -0,0 +1,2064 @@ +const HouseholderAppealHasForm = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default HouseholderAppealHasForm; diff --git a/data/forms/lawfuldevelopmentcertificate.js b/data/forms/lawfuldevelopmentcertificate.js new file mode 100644 index 00000000..c7dd9838 --- /dev/null +++ b/data/forms/lawfuldevelopmentcertificate.js @@ -0,0 +1,2064 @@ +const LawfulDevelopmentCertificateForm = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default LawfulDevelopmentCertificateForm; diff --git a/data/forms/ldp.js b/data/forms/ldp.js new file mode 100644 index 00000000..028ddd8d --- /dev/null +++ b/data/forms/ldp.js @@ -0,0 +1,49 @@ +const LdpForm = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default LdpForm; diff --git a/data/forms/listedbuildingandconservationareaconsen.js b/data/forms/listedbuildingandconservationareaconsen.js new file mode 100644 index 00000000..02cb48a7 --- /dev/null +++ b/data/forms/listedbuildingandconservationareaconsen.js @@ -0,0 +1,2064 @@ +const ListedBuildingAndConservationAreaConsenForm = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default ListedBuildingAndConservationAreaConsenForm; diff --git a/data/forms/maintenanceoflands217.js b/data/forms/maintenanceoflands217.js new file mode 100644 index 00000000..488a4363 --- /dev/null +++ b/data/forms/maintenanceoflands217.js @@ -0,0 +1,2110 @@ +const MaintenanceOfLands217Form = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default MaintenanceOfLands217Form; diff --git a/data/forms/miscellaneouscasework.js b/data/forms/miscellaneouscasework.js new file mode 100644 index 00000000..5da241b6 --- /dev/null +++ b/data/forms/miscellaneouscasework.js @@ -0,0 +1,1991 @@ +const MiscellaneousCaseworkForm = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default MiscellaneousCaseworkForm; diff --git a/data/forms/nonvalidation.js b/data/forms/nonvalidation.js new file mode 100644 index 00000000..05dbb7f4 --- /dev/null +++ b/data/forms/nonvalidation.js @@ -0,0 +1,2134 @@ +const NonValidationForm = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default NonValidationForm; diff --git a/data/forms/planningappeals78.js b/data/forms/planningappeals78.js new file mode 100644 index 00000000..8793921c --- /dev/null +++ b/data/forms/planningappeals78.js @@ -0,0 +1,2077 @@ +import { + Textfield, + DateField, + DateFieldPicker, + YesNofield, + PickList, + MultiLinefield, + NumericField, + ReadOnlyfield, + DecimalField, +} from "../../components/elements"; + +const PlanningAppeals78Form = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    + +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default PlanningAppeals78Form; diff --git a/data/forms/planningconditionss73s79.js b/data/forms/planningconditionss73s79.js new file mode 100644 index 00000000..0e2ef3bb --- /dev/null +++ b/data/forms/planningconditionss73s79.js @@ -0,0 +1,2064 @@ +const PlanningConditionss73s79Form = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default PlanningConditionss73s79Form; diff --git a/data/forms/planningobligationappeals106.js b/data/forms/planningobligationappeals106.js new file mode 100644 index 00000000..4e4813bd --- /dev/null +++ b/data/forms/planningobligationappeals106.js @@ -0,0 +1,2037 @@ +const PlanningObligationAppeals106Form = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default PlanningObligationAppeals106Form; diff --git a/data/forms/row.js b/data/forms/row.js new file mode 100644 index 00000000..527d7585 --- /dev/null +++ b/data/forms/row.js @@ -0,0 +1,1915 @@ +const RowForm = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default RowForm; diff --git a/data/forms/transportandworkact.js b/data/forms/transportandworkact.js new file mode 100644 index 00000000..6f77fdf8 --- /dev/null +++ b/data/forms/transportandworkact.js @@ -0,0 +1,353 @@ +const TransportAndWorkActForm = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default TransportAndWorkActForm; diff --git a/data/forms/wayleave.js b/data/forms/wayleave.js new file mode 100644 index 00000000..ee2c4d23 --- /dev/null +++ b/data/forms/wayleave.js @@ -0,0 +1,1952 @@ +const WayleaveForm = (props) => { + const { caseReference } = props; + + return ( + <> +
    +
    +

    + Enter your appeal information +

    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    + + ); +}; + +export default WayleaveForm; diff --git a/i18n.json b/i18n.json index 7b60abb8..54e315be 100644 --- a/i18n.json +++ b/i18n.json @@ -6,7 +6,7 @@ "defaultLocale": "en", "domains": [ { - "domain": "dev-gwaithcynllunio.gwasanaeth.llyw.cymru", + "domain": "cymru.local", "defaultLocale": "cy" } ], diff --git a/locales/cy/common.json b/locales/cy/common.json index d19421e8..981afc5e 100644 --- a/locales/cy/common.json +++ b/locales/cy/common.json @@ -21,6 +21,7 @@ "back-to-top-link": "Nôl i dop y dudalen", "social-bar-share-link": "Rhannu’r dudalen hon", "social-bar-share-via-link": "Rhannu’r dudalen hon ar", + "social-shared-from": "Rhannwyd o", "breadcrumb-search-results": "Canlyniadau chwilio", "breadcrumb-advanced-search": "Chwilio uwch", "breadcrumb-advanced-search-results": "Canlyniadau chwilio uwch", diff --git a/locales/cy/home.json b/locales/cy/home.json index a27edd0c..e769e499 100644 --- a/locales/cy/home.json +++ b/locales/cy/home.json @@ -3,6 +3,7 @@ "login-comingsoon-temp-1": "Mae’r wefan hon yn cael ei datblygu o hyd. Os hoffech gyflwyno apêl neu gais newydd, neu wneud sylwadau ar un sydd eisoes yn bodoli, cyflwynwch yr apêl, y cais neu’r sylwadau, ynghyd ag unrhyw ddogfennau cysylltiedig perthnasol, i ", "login-comingsoon-temp-2": "Gellir gofyn am ffurflenni apelio a ffurflenni cais trwy e-bost neu gellir eu lawrlwytho trwy ddilyn y ddolen isod. ", "login-comingsoon-forms-link": "https://llyw.cymru/ffurflenni-apelio", + "login-contact-email": "PEDW.GwaithAchos@llyw.cymru", "login-card-title": "Mewngofnodi i apelio yn erbyn penderfyniad cynllunio", "login-card-id-label": "Dynodydd Defnyddiwr (ID) Porth y Llywodraeth", "login-card-id-hint": "Gallai hyn fod hyd at 12 o gymeriadau.", diff --git a/locales/cy/myportal.json b/locales/cy/myportal.json index d826927d..ca6f62e1 100644 --- a/locales/cy/myportal.json +++ b/locales/cy/myportal.json @@ -7,12 +7,17 @@ "makenewappeal-card-paragraph-two": "Wedi i chi glicio'r botwm 'gwneud apêl newydd' isod, cewch eich arwain drwy broses i'ch helpu i ddewis y math cywir o apêl.", "makenewappeal-card-button-label": "Gwneud apêl newydd", "mycases-card-title": "Fy achosion", - "searchcases-card-title": "Chwilio am achos/cyflwyno cynrychiolaeth", - "searchcases-card-search-hint": "Chwiliwch drwy roi cyfeirnod 7 digid yr achos yn y blwch isod:", - "searchcases-card-search-example-label": "Enghraifft", + "searchcases-card-title": "Chwilio am ddogfennau apêl", + "searchcases-card-search-hint": "Chwiliwch drwy roi cyfeirnod 7 digid yr achos", + "searchcases-card-search-example-label": "Enghraifft:", "searchcases-card-button": "Cyflwyno Chwiliad", "searchcases-card-advanced-link": "Fel arall, gallwch chwilio gan ddefnyddio ein meini prawf eraill gyda'n chwiliad uwch", + "searchcases-validation-required": "Angenrheidiol", + "searchcases-validation-minlength": "Rhaid bod yn 4 nod neu fwy", "awatitingsubmission-card-title": "Eto i’w gyflwyno", "myrepresentations-card-title": "Cyflwyniadau'r achos", - "watchedcases-card-title": "Achosion a gwylio" + "watchedcases-card-title": "Achosion a gwylio", + "case-reference": "Cyfeirnod achos", + "case-address": "Cyfeiriad", + "case-address-not-entered": "heb ei nodi" } \ No newline at end of file diff --git a/locales/en/common.json b/locales/en/common.json index ab29b7bd..1f980afa 100644 --- a/locales/en/common.json +++ b/locales/en/common.json @@ -21,6 +21,7 @@ "back-to-top-link": "Back to top", "social-bar-share-link": "Share this page", "social-bar-share-via-link": "Share this page via", + "social-shared-from": "Shared from", "breadcrumb-search-results": "Search results", "breadcrumb-advanced-search": "Advanced search", "breadcrumb-advanced-search-results": "Advanced search results", diff --git a/locales/en/home.json b/locales/en/home.json index 6bbd5f83..d33cb767 100644 --- a/locales/en/home.json +++ b/locales/en/home.json @@ -3,6 +3,7 @@ "login-comingsoon-temp-1": "This website is still in development, if you wish to submit a new appeal or application please submit it, along with any relevant associated documentation, to ", "login-comingsoon-temp-2": "Appeal and application forms can be requested by e-mail or downloaded following the below link.", "login-comingsoon-forms-link": "https://gov.wales/planning-appeal-forms", + "login-contact-email": "PEDW.Casework@gov.wales", "login-card-title": "Sign in to appeal a planning decision", "login-card-id-label": "Government Gateway user ID", "login-card-id-hint": "This could be up to 12 characters.", diff --git a/locales/en/myportal.json b/locales/en/myportal.json index 1da93f50..d872218c 100644 --- a/locales/en/myportal.json +++ b/locales/en/myportal.json @@ -1,4 +1,4 @@ -{ +{ "viewall-link": "View all", "page-title": "My Portal", "makenewappeal-card-title": "Make a new appeal", @@ -7,12 +7,17 @@ "makenewappeal-card-paragraph-two": "Once you click the 'make a new appeal' button below you will be guided through a process to help you select the correct appeal type", "makenewappeal-card-button-label": "Make a new appeal", "mycases-card-title": "My cases", - "searchcases-card-title": "Search for a case/submit representation", - "searchcases-card-search-hint": "Search by entering the 7 digit case reference number:", + "searchcases-card-title": "Appeal documentation search", + "searchcases-card-search-hint": "Search by entering the 7 digit case reference number", "searchcases-card-search-example-label": "Example", "searchcases-card-button": "Submit Search", "searchcases-card-advanced-link": "Advanced Search", + "searchcases-search-validation-required": "Angenrheidiol", + "searchcases-search-validation-minlength": "Rhaid bod yn 4 nod neu fwy", "awatitingsubmission-card-title": "Awaiting submission", "myrepresentations-card-title": "My representations", - "watchedcases-card-title": "Watched cases" + "watchedcases-card-title": "Watched cases", + "case-reference": "Case reference", + "case-address": "Address", + "case-address-not-entered": "not entered" } \ No newline at end of file diff --git a/next.config.js b/next.config.js index 628fbe5b..ef49d11b 100644 --- a/next.config.js +++ b/next.config.js @@ -27,28 +27,53 @@ module.exports = { return [ { source: "/ceisiadaudns", - destination: "/dnsapplications", // The :path parameter isn't used here so will be automatically passed in the query + destination: "/dnsapplications", }, { source: "/manyliondns", - destination: "/dnsdetails", // The :path parameter isn't used here so will be automatically passed in the query + destination: "/dnsdetails", }, { source: "/canlyniadauchwilio", - destination: "/searchresults", // The :path parameter isn't used here so will be automatically passed in the query + destination: "/searchresults", + }, + { + source: "/fymhorth/canlyniadauchwilio", + destination: "/myportal/searchresults", + }, + { + source: "/chwiliouwch", + destination: "/advancedsearch", + }, + { + source: "/fymhorth/chwiliouwch", + destination: "/myportal/advancedsearch", + }, + { + source: "/fymhorth", + destination: "/myportal", }, { source: "/achos", destination: "/case", }, + { + source: "/fymhorth/achos", + destination: "/myportal/case", + }, { source: "/allgofnodi", destination: "/logout", }, { - source: "/cy:path*", - destination: "http://cyrmu.local/:path*", + source: "/newappeal", + destination: "/apêlnewydd", }, + + // { + // source: "/cy:path*", + // destination: "http://cyrmu.local/:path*", + // }, ]; }, ...nextTranslate(), diff --git a/pages/myportal/advancedsearch.js b/pages/myportal/advancedsearch.js new file mode 100644 index 00000000..25b97423 --- /dev/null +++ b/pages/myportal/advancedsearch.js @@ -0,0 +1,105 @@ +import _ from "lodash"; +import { useState } from "react"; +import Head from "next/head"; +import Header from "../../components/header"; +import Banner from "../../components/banner"; +import CookieBanner from "../../components/cookieBanner"; +import Breadcrumbs from "../../components/breadcrumbs"; +import Search from "../../components/search"; +import Footer from "../../components/footer"; +import Errorpage from "../../components/errorpage"; +import styles from "../../styles/Home.module.css"; +import { useSelector, shallowEqual, connect } from "react-redux"; +import { wrapper } from "../../store/store"; +import Cookies from "cookies"; +import { useRouter } from "next/router"; +import useTranslation from "next-translate/useTranslation"; +import CRMError from "../../components/crmError"; + +import { + setAppealType, + setAppealTypeTitle, + setAppealTypeID, + setAppealLPA, + getAppealTypeObj, +} from "../../store/appealType/action"; +import { + getAppealsTypes, + getLPA, + updateCase, + createCase, + getSASToken, +} from "../../actions"; +import { setLPA } from "../../store/lpa/action"; + +const Home = (props) => { + const { footerLinks, pages } = props; + let { t, lang } = useTranslation(); + + const router = useRouter(); + const { locale } = router; + const { appealtypes } = router.query; + + console.log(props, props.LPAData); + var hasError = + _.has(props.LPAData.LPAData, "errorCode") || + _.has(props.appealType.appealType, "errorCode") + ? true + : false; + + return ( +
    + + + {t("search:page-title")} - {t("common:service-name")} + + +
    + +
    +
    + + + {hasError ? ( + + ) : ( + + )} +
    +
    +
    +
    + ); +}; + +export const getServerSideProps = wrapper.getServerSideProps( + (store) => + async ({ query, req, res }) => { + const token = await getSASToken(); + + const [appealTypeData, lpaData] = await Promise.all([ + await getAppealsTypes(token), + await getLPA(token), + ]); + + store.dispatch(setAppealType(appealTypeData)); + store.dispatch(setLPA(lpaData)); + } +); + +const mapStateToProps = (state) => { + return { + search: state.search, + searchResultsObj: state.searchResultsObj, + formData: state.formData, + appealType: state.appealType, + LPAData: state.LPAData, + //form: state.form, + accountDetails: state.accountDetails, + }; +}; + +export default connect(mapStateToProps)(Home); diff --git a/pages/myportal/advancedsearchresults.js b/pages/myportal/advancedsearchresults.js new file mode 100644 index 00000000..372c8707 --- /dev/null +++ b/pages/myportal/advancedsearchresults.js @@ -0,0 +1,142 @@ +import _ from "lodash"; +import Head from "next/head"; +import Header from "../../components/header"; +import Banner from "../../components/banner"; +import CookieBanner from "../../components/cookieBanner"; +import Breadcrumbs from "../../components/breadcrumbs"; +import SearchResults from "../../components/searchresults"; +import Footer from "../../components/footer"; +import Errorpage from "../../components/errorpage"; +import styles from "../../styles/Home.module.css"; +import { useSelector, shallowEqual, connect } from "react-redux"; +import { wrapper } from "../../store/store"; +import Cookies from "cookies"; +import { useRouter } from "next/router"; +import useTranslation from "next-translate/useTranslation"; +import jsonpath from "jsonpath"; +import data from "../../data/collections.json"; + +import { setSearch, getSearchObj } from "../store/search/action"; +import { + setSearchResults, + setSearchDetails, + setDocumentDetails, + setDocumentHistory, + getSearchResultsObj, +} from "../../store/searchOutput/action"; +import { + getAdvancedSearch, + getBasicSearchDetails, + getSearchDocumentDetails, + getSearchDocumentHistory, + getSASToken, +} from "../../actions"; + +const Home = (props) => { + const { footerLinks, pages } = props; + let { t, lang } = useTranslation(); + + const router = useRouter(); + const { locale } = router; + const { appealtypes } = router.query; + + return ( +
    + + + {t("search:page-title")} - {t("common:service-name")} + + +
    + +
    +
    + + + +
    +
    +
    +
    + ); +}; + +export const getServerSideProps = wrapper.getServerSideProps( + (store) => + async ({ query, req, res }) => { + console.log("query-", query); + //console.log("search array:", Object.entries(query)); + + const token = await getSASToken(); + + const searchResultsObj = await getAdvancedSearch(token, query); + const searchDetailsObj = await getSearchDetails( + token, + searchResultsObj + ); + + store.dispatch(setSearchResults(searchResultsObj)); + store.dispatch(setSearchDetails(searchDetailsObj)); + } +); + +const getFormCollection = (formtype) => { + const collectionName = jsonpath.query( + data, + "$..[?(@.LogicalName=='" + formtype + "')].LogicalCollectionName" + ); + //console.log(collectionName[0]); + return collectionName[0]; +}; + +const getSearchDetails = (token, searchResultsObj) => { + //console.log(searchResultsObj); + + let detailsArr = []; + //console.log("searcg results", searchResultsObj); + searchResultsObj = searchResultsObj.value; + const detailsObj = searchResultsObj.map((searchDetail, index) => { + if (searchDetail.pinswg_appealcasetype == null) { + console.log(searchDetail.ticketnumber); + } else { + detailsArr.push( + getBasicSearchDetails( + token, + getFormCollection( + "pinswg_" + + searchDetail[ + "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" + ] + .replace(/(\band|[\s\-\+\(\)\,\&])/g, "") + .toLowerCase() + .slice(0, 39) + ), + searchDetail.ticketnumber + ) + ); + } + }); + //console.log(detailsArr); + return Promise.all(detailsArr); +}; + +const mapStateToProps = (state) => { + return { + currentView: state.currentView, + search: state.search, + searchResultsObj: state.searchResultsObj, + formData: state.formData, + appealType: state.appealType, + form: state.form, + myCases: state.myCases, + watchedCases: state.watchedCases, + myRepresentations: state.myRepresentations, + awaitingSubmission: state.awaitingSubmission, + }; +}; + +export default connect(mapStateToProps)(Home); diff --git a/pages/newappeal/[appealtypes].js b/pages/newappeal/[appealtypes].js index 7255fa75..0bfc5c5c 100644 --- a/pages/newappeal/[appealtypes].js +++ b/pages/newappeal/[appealtypes].js @@ -44,6 +44,32 @@ import BuildSection from "../../components/newappeal/buildsection"; import BuildCheckSection from "../../components/newappeal/buildchecksection"; import CompleteAppeal from "../../components/newappeal/complete"; +import AdvertsForm from "../../data/forms/adverts"; +import Callinss77Form from "../../data/forms/callinss77"; +import CommonLandForm from "../../data/forms/commonland"; +import CommunityInfrastructureLevys117118119Form from "../../data/forms/communityinfrastructurelevys117118119"; +import CompulsoryPurchaseOrdersForm from "../../data/forms/compulsorypurchaseorders"; +import DNSForm from "../../data/forms/dns"; +import ElectricityActForm from "../../data/forms/electricityact"; +import EnforcementListedBuildingConservationapForm from "../../data/forms/enforcementlistedbuildingconservationap"; +import EnforcementNoticeAppeals174Form from "../../data/forms/enforcementnoticeappeals174"; +import EnvironmentalPermittingForm from "../../data/forms/environmentalpermitting"; +import HarbourRevisionOrderForm from "../../data/forms/harbourrevisionorder"; +import HedgesHedgerowsTreePreservationReplacemForm from "../../data/forms/hedgeshedgerowstreepreservationreplacem"; +import HouseholderAppealHasForm from "../../data/forms/householderappealhas"; +import LawfulDevelopmentCertificateForm from "../../data/forms/lawfuldevelopmentcertificate"; +import LdpForm from "../../data/forms/ldp"; +import ListedBuildingAndConservationAreaConsenForm from "../../data/forms/listedbuildingandconservationareaconsen"; +import MaintenanceOfLands217Form from "../../data/forms/maintenanceoflands217"; +import MiscellaneousCaseworkForm from "../../data/forms/miscellaneouscasework"; +import NonValidationForm from "../../data/forms/nonvalidation"; +import PlanningAppeals78Form from "../../data/forms/planningappeals78"; +import PlanningConditionss73s79Form from "../../data/forms/planningconditionss73s79"; +import PlanningObligationAppeals106Form from "../../data/forms/planningobligationappeals106"; +import RowForm from "../../data/forms/row"; +import TransportAndWorkActForm from "../../data/forms/transportandworkact"; +import WayleaveForm from "../../data/forms/wayleave"; + let Home = (props) => { const { footerLinks, pages, formData } = props; let { t, lang } = useTranslation(); @@ -90,25 +116,87 @@ let Home = (props) => { (key) => optionsTitleObj[key] === appealtypes ); - //console.log(formTitle); + const getFormType = (appealType) => { + switch (appealType) { + case "adverts": + return ; + case "callinss77": + return ; + case "commonland": + return ; + case "communityinfrastructurelevys117118119": + return ( + + ); + case "compulsorypurchaseorders": + return ; + case "dns": + return ; + case "electricityact": + return ; + case "enforcementlistedbuildingconservationap": + return ( + + ); + case "enforcementnoticeappeals174": + return ; + case "environmentalpermitting": + return ; + case "harbourrevisionorder": + return ; + case "harbourrhedgeshedgerowstreepreservationreplacemevisionorder": + return ( + + ); + case "householderappealhas": + return ; + case "lawfuldevelopmentcertificate": + return ; - // crm api query for looking up picklist fields/drop downs - // /api/data/v8.2/EntityDefinitions(LogicalName='{appeal type form}')/Attributes(LogicalName='{drop down datafield name}')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?$select=LogicalName&$expand=GlobalOptionSet($select=Options) - // eg https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/EntityDefinitions(LogicalName='pinswg_householderappealhas')/Attributes(LogicalName='pinswg_casetype')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?$select=LogicalName&$expand=GlobalOptionSet($select=Options) - // query for labels in section eg for section 2 - /form/tabs/tab[2]//rows//labels - // query for getting guids of form element types /form/tabs/tab[*]//rows/row//control[@classid]/@classid - // - // 270BD3DB-D9AF-4782-9025-509E298DEC0A - read only - // 3EF39988-22BB-4f0b-BBBE-64B5A3748AEE - drop down list controlled by datafieldname for content - datafieldname picklist entity - // 67FAC785-CD58-4f9f-ABB3-4B7DDC6ED5ED - boolean flag / yes no radio button - // 4273EDBD-AC1D-40d3-9FB2-095C621B552D - text field - // 5B773807-9FB2-42db-97C3-7A91EFF8ADFF - date field - // E0DECE4B-6FC8-4a8f-A065-082708572369 - multiline - // C6D124CA-7EDA-4a60-AEA9-7FB8D318B68F - numeric field - // C3EFE0C3-0EC6-42be-8349-CBD9079DFD8E - decimal + case "ldp": + return ; - /// to get dropdowns names - // form/tabs/tab[*]//rows/row//control[@classid="{3EF39988-22BB-4f0b-BBBE-64B5A3748AEE}"]/@datafieldname + case "listedbuildingandconservationareaconsen": + return ( + + ); + case "maintenanceoflands217": + return ; + + case "miscellaneouscasework": + return ; + + case "nonvalidation": + return ; + + case "planningappeals78": + return ; + + case "planningconditionss73s79": + return ; + + case "planningobligationappeals106": + return ; + + case "row": + return ; + + case "transportandworkact": + return ; + case "wayleave": + return ; + + default: + return ; + } + re; + }; const { onSubmit } = props; @@ -147,16 +235,19 @@ let Home = (props) => { } /> ) : ( - + <> + + {/* {getFormType(appealtypes)} */} + )}
    diff --git a/pages/newappeal/index.js b/pages/newappeal/index.js index 4ffb8cba..e3643dab 100644 --- a/pages/newappeal/index.js +++ b/pages/newappeal/index.js @@ -36,11 +36,6 @@ import { import { setLPA } from "../../store/lpa/action"; const Home = (props) => { - // useEffect(() => { - // // updateCase("3ffcf47c-5811-ec11-aac9-00224800be9c", "846040004"); - // createCase(); - // }); - const { footerLinks, pages, formData } = props; let { t, lang } = useTranslation(); @@ -69,7 +64,7 @@ const Home = (props) => { id="main-content" role="main" > -

    New Appeal

    +

    {t("newappeal:page-title")}