@@ -486,7 +486,7 @@ export const deleteBlobCase = async (containerName, blobName) => {
|
|||||||
containerClient.deleteBlob(blob.name);
|
containerClient.deleteBlob(blob.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
containerClient.deleteBlob(blobName);
|
// containerClient.deleteBlob(blobName);
|
||||||
console.log(`deleted blob ${blobName}`);
|
console.log(`deleted blob ${blobName}`);
|
||||||
for await (const blob of containerClient.listBlobsFlat()) {
|
for await (const blob of containerClient.listBlobsFlat()) {
|
||||||
console.log(" ------ :", blob.name);
|
console.log(" ------ :", blob.name);
|
||||||
|
|||||||
@@ -300,6 +300,7 @@ let MakeRepresentation = (props) => {
|
|||||||
currentView.caseReference.appealType != 846040019 &&
|
currentView.caseReference.appealType != 846040019 &&
|
||||||
currentView.caseReference.appealType != 846040011 &&
|
currentView.caseReference.appealType != 846040011 &&
|
||||||
currentView.caseReference.appealType != 846040015 &&
|
currentView.caseReference.appealType != 846040015 &&
|
||||||
|
currentView.caseReference.appealType != 846040016 &&
|
||||||
todaysDate >= startDate &&
|
todaysDate >= startDate &&
|
||||||
todaysDate <= questionnaireDate &&
|
todaysDate <= questionnaireDate &&
|
||||||
buildArr.push("Questionnaire");
|
buildArr.push("Questionnaire");
|
||||||
@@ -922,10 +923,10 @@ let MakeRepresentation = (props) => {
|
|||||||
|
|
||||||
var dataObj = values;
|
var dataObj = values;
|
||||||
|
|
||||||
for (let key in dataObj) {
|
// for (let key in dataObj) {
|
||||||
_.includes(key, "representationDocuments") == true &&
|
// _.includes(key, "representationDocuments") == true &&
|
||||||
delete dataObj[key];
|
// delete dataObj[key];
|
||||||
}
|
// }
|
||||||
|
|
||||||
uploadRepFiles(
|
uploadRepFiles(
|
||||||
dataObj,
|
dataObj,
|
||||||
|
|||||||
@@ -145,6 +145,7 @@ const RepAgent = (props) => {
|
|||||||
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
||||||
<FileUploadField
|
<FileUploadField
|
||||||
name={"representationDocuments"}
|
name={"representationDocuments"}
|
||||||
|
id={"representationDocuments"}
|
||||||
label={t(
|
label={t(
|
||||||
"myrepresentations:add-files-label"
|
"myrepresentations:add-files-label"
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -131,6 +131,7 @@ const RepAppellant = (props) => {
|
|||||||
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
||||||
<FileUploadField
|
<FileUploadField
|
||||||
name={"representationDocuments"}
|
name={"representationDocuments"}
|
||||||
|
id={"representationDocuments"}
|
||||||
label={t(
|
label={t(
|
||||||
"myrepresentations:add-files-label"
|
"myrepresentations:add-files-label"
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -493,7 +493,7 @@ export const RenderPickList = ({
|
|||||||
{errorMsg}
|
{errorMsg}
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
{value}
|
|
||||||
<div>
|
<div>
|
||||||
<select
|
<select
|
||||||
// {...input}
|
// {...input}
|
||||||
@@ -1061,21 +1061,24 @@ export const RenderFileUpload = (field) => {
|
|||||||
)}
|
)}
|
||||||
{files && Array.isArray(files) && (
|
{files && Array.isArray(files) && (
|
||||||
<ul>
|
<ul>
|
||||||
{files.map((file, i) => (
|
{files.map(
|
||||||
<div
|
(file, i) =>
|
||||||
key={file.name}
|
file.hasOwnProperty("name") && (
|
||||||
className="govuk-!-margin-bottom-5 fileThumb"
|
<div
|
||||||
>
|
key={file.name}
|
||||||
<img
|
className="govuk-!-margin-bottom-5 fileThumb"
|
||||||
src={getThumbnailIcon(file, file.type)}
|
>
|
||||||
alt={file.name}
|
<img
|
||||||
width="50"
|
src={getThumbnailIcon(file, file.type)}
|
||||||
/>
|
alt={file.name}
|
||||||
<span className="govuk-body govuk-!-font-size-14 govuk-!-padding-left-5">
|
width="50"
|
||||||
{file.name} ({bytesToSize(file.size)})
|
/>
|
||||||
</span>
|
<span className="govuk-body govuk-!-font-size-14 govuk-!-padding-left-5">
|
||||||
</div>
|
{file.name} ({bytesToSize(file.size)})
|
||||||
))}
|
</span>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
)}
|
||||||
</ul>
|
</ul>
|
||||||
)}
|
)}
|
||||||
{blobList.map((blob, i) => (
|
{blobList.map((blob, i) => (
|
||||||
@@ -1100,12 +1103,12 @@ export const RenderFileUpload = (field) => {
|
|||||||
−
|
−
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<img
|
<img
|
||||||
src={getThumbnailIconByExtension(blob.name)}
|
src={getThumbnailIconByExtension(blob.name)}
|
||||||
alt={blob.name}
|
alt={blob.name}
|
||||||
width="50"
|
width="50"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Link
|
<Link
|
||||||
key={i}
|
key={i}
|
||||||
scroll={false}
|
scroll={false}
|
||||||
|
|||||||
@@ -138,6 +138,7 @@ const RepInterestedPartyPerson = (props) => {
|
|||||||
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
||||||
<FileUploadField
|
<FileUploadField
|
||||||
name={"representationDocuments"}
|
name={"representationDocuments"}
|
||||||
|
id={"representationDocuments"}
|
||||||
label={t(
|
label={t(
|
||||||
"myrepresentations:add-files-label"
|
"myrepresentations:add-files-label"
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -381,6 +381,7 @@ let RepLPA = (props) => {
|
|||||||
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
||||||
<FileUploadField
|
<FileUploadField
|
||||||
name={"representationDocuments"}
|
name={"representationDocuments"}
|
||||||
|
id={"representationDocuments"}
|
||||||
label={t(
|
label={t(
|
||||||
"myrepresentations:add-files-label"
|
"myrepresentations:add-files-label"
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ const RepLandOwner = (props) => {
|
|||||||
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
||||||
<FileUploadField
|
<FileUploadField
|
||||||
name={"representationDocuments"}
|
name={"representationDocuments"}
|
||||||
|
id={"representationDocuments"}
|
||||||
label={t(
|
label={t(
|
||||||
"myrepresentations:add-files-label"
|
"myrepresentations:add-files-label"
|
||||||
)}
|
)}
|
||||||
|
|||||||
+1
@@ -1114,6 +1114,7 @@ let Enforcement_Questionnaire = (props) => {
|
|||||||
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
||||||
<FileUploadField
|
<FileUploadField
|
||||||
name={"representationDocuments"}
|
name={"representationDocuments"}
|
||||||
|
id={"representationDocuments"}
|
||||||
label={t("myrepresentations:add-files-label")}
|
label={t("myrepresentations:add-files-label")}
|
||||||
ticketnumber={props.props.caseReference}
|
ticketnumber={props.props.caseReference}
|
||||||
hint={"sdsd"}
|
hint={"sdsd"}
|
||||||
|
|||||||
+1
@@ -942,6 +942,7 @@ let S78_Questionnaire = (props) => {
|
|||||||
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
||||||
<FileUploadField
|
<FileUploadField
|
||||||
name={"representationDocuments"}
|
name={"representationDocuments"}
|
||||||
|
id={"representationDocuments"}
|
||||||
label={t("myrepresentations:add-files-label")}
|
label={t("myrepresentations:add-files-label")}
|
||||||
ticketnumber={props.props.caseReference}
|
ticketnumber={props.props.caseReference}
|
||||||
hint={"sdsd"}
|
hint={"sdsd"}
|
||||||
|
|||||||
@@ -1115,7 +1115,6 @@ const CaseSummary = (props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function showRepButton(appealType) {
|
function showRepButton(appealType) {
|
||||||
console.log(appealType);
|
|
||||||
switch (appealType) {
|
switch (appealType) {
|
||||||
case 846040012:
|
case 846040012:
|
||||||
case 846040013:
|
case 846040013:
|
||||||
@@ -1141,19 +1140,16 @@ const CaseSummary = (props) => {
|
|||||||
: true;
|
: true;
|
||||||
|
|
||||||
case 846040018:
|
case 846040018:
|
||||||
console.log(
|
let shouldShow =
|
||||||
props.searchResultsObj.searchDetailsObj[0].value[0]
|
props.searchResultsObj.searchDetailsObj[0].value[0]
|
||||||
.pinswg_speacialistcaseprocess,
|
.pinswg_speacialistcaseprocess == 846040000 && isLPA
|
||||||
props.searchResultsObj.searchDetailsObj[0].value[0][
|
? true
|
||||||
"pinswg_speacialistcaseprocess@OData.Community.Display.V1.FormattedValue"
|
: props.searchResultsObj.searchDetailsObj[0].value[0]
|
||||||
],
|
.pinswg_speacialistcaseprocess == 846040001
|
||||||
isLPA
|
? true
|
||||||
);
|
: false;
|
||||||
|
|
||||||
return props.searchResultsObj.searchDetailsObj[0].value[0]
|
return shouldShow;
|
||||||
.pinswg_speacialistcaseprocess == 846040000 && isLPA
|
|
||||||
? true
|
|
||||||
: false;
|
|
||||||
|
|
||||||
case 846040019:
|
case 846040019:
|
||||||
return showReps(
|
return showReps(
|
||||||
|
|||||||
+21
-8
@@ -14,6 +14,7 @@ import MyRepresentations from "./myportal/myrepresentations";
|
|||||||
import SearchCases from "./myportal/searchcases";
|
import SearchCases from "./myportal/searchcases";
|
||||||
import UploadFile from "./myportal/uploadFile";
|
import UploadFile from "./myportal/uploadFile";
|
||||||
import WatchedCases from "./myportal/watchedcases";
|
import WatchedCases from "./myportal/watchedcases";
|
||||||
|
import _ from "lodash";
|
||||||
|
|
||||||
const MyPortal = (props) => {
|
const MyPortal = (props) => {
|
||||||
const { showFileUpload, showLoginCheck } = props;
|
const { showFileUpload, showLoginCheck } = props;
|
||||||
@@ -122,7 +123,12 @@ const MyPortal = (props) => {
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
)} */}
|
)} */}
|
||||||
|
|
||||||
{!isLPA &&
|
{!isLPA &&
|
||||||
|
_.has(props.awaitingSubmission, [
|
||||||
|
"awaitingSubmissionFromBlob",
|
||||||
|
"@odata.count",
|
||||||
|
]) &&
|
||||||
props.awaitingSubmission
|
props.awaitingSubmission
|
||||||
.awaitingSubmissionFromBlob[
|
.awaitingSubmissionFromBlob[
|
||||||
"@odata.count"
|
"@odata.count"
|
||||||
@@ -150,14 +156,21 @@ const MyPortal = (props) => {
|
|||||||
myReps={false}
|
myReps={false}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{props.myRepresentations.myRepresentations[
|
{props.myRepresentations.hasOwnProperty(
|
||||||
"@odata.count"
|
"myRepresentations"
|
||||||
] > 0 && (
|
) &&
|
||||||
<MyRepresentations
|
typeof props.myRepresentations
|
||||||
myRepresentations={props.myRepresentations}
|
.myRepresentations != "undefined" &&
|
||||||
isLPA={isLPA}
|
props.myRepresentations.myRepresentations[
|
||||||
/>
|
"@odata.count"
|
||||||
)}
|
] > 0 && (
|
||||||
|
<MyRepresentations
|
||||||
|
myRepresentations={
|
||||||
|
props.myRepresentations
|
||||||
|
}
|
||||||
|
isLPA={isLPA}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
|
||||||
{props.myRepresentations.mySubmittedReps
|
{props.myRepresentations.mySubmittedReps
|
||||||
.mySubmittedReps.length > 0 && (
|
.mySubmittedReps.length > 0 && (
|
||||||
|
|||||||
@@ -317,7 +317,7 @@ const AwaitingSubmissionFromBlob = (props) => {
|
|||||||
|
|
||||||
<TopThreeRow />
|
<TopThreeRow />
|
||||||
|
|
||||||
{props.awaitingSubmissionFromBlob["@odata.count"] > 3 && (
|
{props.awaitingSubmissionFromBlob["@odata.count"] > 1 && (
|
||||||
<div className="cardVieAll">
|
<div className="cardVieAll">
|
||||||
<Link
|
<Link
|
||||||
href={
|
href={
|
||||||
|
|||||||
+191
-151
@@ -49,7 +49,6 @@ const ViewAllResults = (props) => {
|
|||||||
const {
|
const {
|
||||||
searchString,
|
searchString,
|
||||||
searchResultsObj,
|
searchResultsObj,
|
||||||
currentView,
|
|
||||||
setCurrentReference,
|
setCurrentReference,
|
||||||
myportal,
|
myportal,
|
||||||
setSearchResults,
|
setSearchResults,
|
||||||
@@ -83,6 +82,14 @@ const ViewAllResults = (props) => {
|
|||||||
|
|
||||||
return dateObj.toLocaleString();
|
return dateObj.toLocaleString();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let currentView = props.currentView.currentView;
|
||||||
|
console.log("currentView.viewKey:", typeof currentView.viewKey);
|
||||||
|
|
||||||
|
typeof currentView.viewKey == "undefined"
|
||||||
|
? console.log("no currentview")
|
||||||
|
: console.log("has currentview");
|
||||||
|
|
||||||
var resultsArr =
|
var resultsArr =
|
||||||
currentView.viewKey == "awaitingSubmissionDetails"
|
currentView.viewKey == "awaitingSubmissionDetails"
|
||||||
? props["awaitingSubmission"].awaitingSubmissionDetails.case
|
? props["awaitingSubmission"].awaitingSubmissionDetails.case
|
||||||
@@ -197,39 +204,44 @@ const ViewAllResults = (props) => {
|
|||||||
setSearchDetails(
|
setSearchDetails(
|
||||||
props.watchedCases
|
props.watchedCases
|
||||||
.watchedCasesDetails
|
.watchedCasesDetails
|
||||||
);
|
),
|
||||||
setCurrentReference({
|
setCurrentReference({
|
||||||
"ticketnumber":
|
"ticketnumber":
|
||||||
resultsArr[key].ticketnumber,
|
resultsArr[key].ticketnumber,
|
||||||
"currentReference":
|
"currentReference":
|
||||||
currentView.viewKey !=
|
currentView.viewKey !=
|
||||||
"watchedCases"
|
"watchedCases"
|
||||||
? currentView.viewKey ==
|
? currentView.viewKey ==
|
||||||
"myRepresentations"
|
"myRepresentations"
|
||||||
? resultsArr[key].caseRef
|
? resultsArr[key]
|
||||||
: resultsArr[key]
|
.caseRef
|
||||||
.ticketnumber
|
: resultsArr[key]
|
||||||
: resultsArr[key][
|
.ticketnumber
|
||||||
"_pinswg_watchedcase_value@OData.Community.Display.V1.FormattedValue"
|
: resultsArr[key][
|
||||||
],
|
"_pinswg_watchedcase_value@OData.Community.Display.V1.FormattedValue"
|
||||||
|
],
|
||||||
|
|
||||||
"currentType": currentView.viewKey,
|
"currentType": currentView.viewKey,
|
||||||
"incidentid":
|
"incidentid":
|
||||||
currentView.viewKey !=
|
currentView.viewKey !=
|
||||||
"watchedCases"
|
"watchedCases"
|
||||||
? resultsArr[key].incidentid
|
? resultsArr[key].incidentid
|
||||||
: resultsArr[key][
|
: resultsArr[key][
|
||||||
"_pinswg_watchedcase_value"
|
"_pinswg_watchedcase_value"
|
||||||
],
|
],
|
||||||
|
|
||||||
"appealType":
|
"appealType":
|
||||||
resultsArr[key]
|
resultsArr[key]
|
||||||
.pinswg_appealcasetype,
|
.pinswg_appealcasetype,
|
||||||
"repDetails":
|
"repDetails":
|
||||||
currentView.viewKey ==
|
currentView.viewKey ==
|
||||||
"myRepresentations" &&
|
"myRepresentations" &&
|
||||||
resultsArr[key],
|
resultsArr[key],
|
||||||
});
|
}),
|
||||||
|
setCurrentView({
|
||||||
|
"viewName": currentView.viewName,
|
||||||
|
"viewKey": currentView.viewKey,
|
||||||
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<span className="results-visually-hidden">
|
<span className="results-visually-hidden">
|
||||||
@@ -620,7 +632,7 @@ const ViewAllResults = (props) => {
|
|||||||
) &&
|
) &&
|
||||||
deleteCaseItem(
|
deleteCaseItem(
|
||||||
props.accountDetails.containerID,
|
props.accountDetails.containerID,
|
||||||
item.pinswg_name
|
item.ticketnumber
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -851,47 +863,41 @@ const ViewAllResults = (props) => {
|
|||||||
t("myportal:myrepresentations-card-title")}
|
t("myportal:myrepresentations-card-title")}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<dl className="govuk-summary-list govuk-!-margin-bottom-9 results">
|
{resultsRowArr.length == 0 ? (
|
||||||
<div className="govuk-summary-list__row results-headings">
|
<h3>
|
||||||
<dd className="govuk-summary-list__key govuk-!-font-size-16 results_wider govuk-!-padding-left-2">
|
{" "}
|
||||||
<button
|
There are no{" "}
|
||||||
type="button"
|
|
||||||
onClick={() =>
|
|
||||||
sortDataBy(
|
|
||||||
currentView.viewKey ==
|
|
||||||
"awaitingSubmissionDetails"
|
|
||||||
? "title"
|
|
||||||
: "pinswg_title"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
className={
|
|
||||||
orderByState ==
|
|
||||||
(currentView.viewKey ==
|
|
||||||
"awaitingSubmissionDetails"
|
|
||||||
? "title"
|
|
||||||
: "pinswg_title")
|
|
||||||
? fieldSortState == "asc"
|
|
||||||
? `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16 sortAsc`
|
|
||||||
: `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16 sortDesc`
|
|
||||||
: `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16`
|
|
||||||
}
|
|
||||||
>
|
|
||||||
{t(
|
|
||||||
"search:searchresults-case-reference-label"
|
|
||||||
)}
|
|
||||||
</button>
|
|
||||||
</dd>
|
|
||||||
<dd className="govuk-summary-list__key govuk-!-font-size-16">
|
|
||||||
{t("search:searchresults-site-address-label")}
|
|
||||||
</dd>
|
|
||||||
{currentView.viewKey ==
|
{currentView.viewKey ==
|
||||||
"awaitingSubmissionDetails" ? (
|
"awaitingSubmissionDetails" &&
|
||||||
<dd className="govuk-summary-list__key govuk-!-font-size-16">
|
t("myportal:awatitingsubmission-card-title")}
|
||||||
|
{currentView.viewKey == "watchedCases" &&
|
||||||
|
t("myportal:watchedcases-card-title")}
|
||||||
|
{currentView.viewKey == "myCases" &&
|
||||||
|
t("myportal:mycases-card-title")}
|
||||||
|
{currentView.viewKey == "myRepresentations" &&
|
||||||
|
t("myportal:myrepresentations-card-title")}{" "}
|
||||||
|
records
|
||||||
|
</h3>
|
||||||
|
) : (
|
||||||
|
<dl className="govuk-summary-list govuk-!-margin-bottom-9 results">
|
||||||
|
<div className="govuk-summary-list__row results-headings">
|
||||||
|
<dd className="govuk-summary-list__key govuk-!-font-size-16 results_wider govuk-!-padding-left-2">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => sortDataBy("createdon")}
|
onClick={() =>
|
||||||
|
sortDataBy(
|
||||||
|
currentView.viewKey ==
|
||||||
|
"awaitingSubmissionDetails"
|
||||||
|
? "title"
|
||||||
|
: "pinswg_title"
|
||||||
|
)
|
||||||
|
}
|
||||||
className={
|
className={
|
||||||
orderByState == "createdon"
|
orderByState ==
|
||||||
|
(currentView.viewKey ==
|
||||||
|
"awaitingSubmissionDetails"
|
||||||
|
? "title"
|
||||||
|
: "pinswg_title")
|
||||||
? fieldSortState == "asc"
|
? fieldSortState == "asc"
|
||||||
? `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16 sortAsc`
|
? `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16 sortAsc`
|
||||||
: `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16 sortDesc`
|
: `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16 sortDesc`
|
||||||
@@ -899,49 +905,52 @@ const ViewAllResults = (props) => {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
{t(
|
{t(
|
||||||
"search:searchresults-created-on-label"
|
"search:searchresults-case-reference-label"
|
||||||
)}{" "}
|
)}
|
||||||
</button>
|
</button>
|
||||||
</dd>
|
</dd>
|
||||||
) : (
|
|
||||||
<dd className="govuk-summary-list__key govuk-!-font-size-16">
|
<dd className="govuk-summary-list__key govuk-!-font-size-16">
|
||||||
{t("search:searchresults-applicant-label")}
|
{t(
|
||||||
|
"search:searchresults-site-address-label"
|
||||||
|
)}
|
||||||
</dd>
|
</dd>
|
||||||
)}
|
{currentView.viewKey ==
|
||||||
<dd className="govuk-summary-list__key govuk-!-font-size-16">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
onClick={() =>
|
|
||||||
sortDataBy(
|
|
||||||
currentView.viewKey ==
|
|
||||||
"awaitingSubmissionDetails"
|
|
||||||
? "pinswg_lpaname"
|
|
||||||
: "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
className={
|
|
||||||
orderByState ==
|
|
||||||
(currentView.viewKey ==
|
|
||||||
"awaitingSubmissionDetails"
|
|
||||||
? "pinswg_lpaname"
|
|
||||||
: "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue")
|
|
||||||
? fieldSortState == "asc"
|
|
||||||
? `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16 sortAsc`
|
|
||||||
: `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16 sortDesc`
|
|
||||||
: `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16`
|
|
||||||
}
|
|
||||||
>
|
|
||||||
{t("search:searchresults-authority-label")}{" "}
|
|
||||||
</button>
|
|
||||||
</dd>
|
|
||||||
<dd className="govuk-summary-list__key govuk-!-font-size-16">
|
|
||||||
{currentView.viewKey !=
|
|
||||||
"awaitingSubmissionDetails" ? (
|
"awaitingSubmissionDetails" ? (
|
||||||
|
<dd className="govuk-summary-list__key govuk-!-font-size-16">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
onClick={() =>
|
||||||
|
sortDataBy("createdon")
|
||||||
|
}
|
||||||
|
className={
|
||||||
|
orderByState == "createdon"
|
||||||
|
? fieldSortState == "asc"
|
||||||
|
? `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16 sortAsc`
|
||||||
|
: `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16 sortDesc`
|
||||||
|
: `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16`
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{t(
|
||||||
|
"search:searchresults-created-on-label"
|
||||||
|
)}{" "}
|
||||||
|
</button>
|
||||||
|
</dd>
|
||||||
|
) : (
|
||||||
|
<dd className="govuk-summary-list__key govuk-!-font-size-16">
|
||||||
|
{t(
|
||||||
|
"search:searchresults-applicant-label"
|
||||||
|
)}
|
||||||
|
</dd>
|
||||||
|
)}
|
||||||
|
<dd className="govuk-summary-list__key govuk-!-font-size-16">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
sortDataBy(
|
sortDataBy(
|
||||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
|
currentView.viewKey ==
|
||||||
|
"awaitingSubmissionDetails"
|
||||||
|
? "pinswg_lpaname"
|
||||||
|
: "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
className={
|
className={
|
||||||
@@ -949,7 +958,7 @@ const ViewAllResults = (props) => {
|
|||||||
(currentView.viewKey ==
|
(currentView.viewKey ==
|
||||||
"awaitingSubmissionDetails"
|
"awaitingSubmissionDetails"
|
||||||
? "pinswg_lpaname"
|
? "pinswg_lpaname"
|
||||||
: "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue")
|
: "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue")
|
||||||
? fieldSortState == "asc"
|
? fieldSortState == "asc"
|
||||||
? `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16 sortAsc`
|
? `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16 sortAsc`
|
||||||
: `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16 sortDesc`
|
: `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16 sortDesc`
|
||||||
@@ -957,54 +966,85 @@ const ViewAllResults = (props) => {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
{t(
|
{t(
|
||||||
"search:searchresults-case-type-label"
|
"search:searchresults-authority-label"
|
||||||
)}{" "}
|
)}{" "}
|
||||||
</button>
|
</button>
|
||||||
) : (
|
</dd>
|
||||||
t("search:searchresults-case-type-label")
|
<dd className="govuk-summary-list__key govuk-!-font-size-16">
|
||||||
)}{" "}
|
{currentView.viewKey !=
|
||||||
</dd>
|
"awaitingSubmissionDetails" ? (
|
||||||
<dd className="govuk-summary-list__key govuk-!-font-size-16">
|
<button
|
||||||
{currentView.viewKey == "myRepresentations" ? (
|
type="button"
|
||||||
<button
|
onClick={() =>
|
||||||
type="button"
|
sortDataBy(
|
||||||
onClick={() =>
|
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
|
||||||
sortDataBy("createdDate")
|
)
|
||||||
}
|
}
|
||||||
className={
|
className={
|
||||||
orderByState == "createdDate"
|
orderByState ==
|
||||||
? fieldSortState == "asc"
|
(currentView.viewKey ==
|
||||||
? `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16 sortAsc`
|
"awaitingSubmissionDetails"
|
||||||
: `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16 sortDesc`
|
? "pinswg_lpaname"
|
||||||
: `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16`
|
: "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue")
|
||||||
}
|
? fieldSortState == "asc"
|
||||||
>
|
? `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16 sortAsc`
|
||||||
Created{" "}
|
: `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16 sortDesc`
|
||||||
</button>
|
: `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16`
|
||||||
) : (
|
}
|
||||||
t("search:searchresults-status-label")
|
>
|
||||||
)}
|
{t(
|
||||||
</dd>
|
"search:searchresults-case-type-label"
|
||||||
</div>
|
)}{" "}
|
||||||
{showSpinnerState == true ? (
|
</button>
|
||||||
<div className="govuk-summary-list__row">
|
) : (
|
||||||
<div className="govuk-!-margin-top-9 govuk-!-margin-bottom-9 govuk-!-font-weight-bold govuk-!-font-size-20 ">
|
t(
|
||||||
{t("common:spinner-fetching-data")}
|
"search:searchresults-case-type-label"
|
||||||
<img
|
)
|
||||||
className="data-loading-icon"
|
)}{" "}
|
||||||
src="/assets/images/loading.gif"
|
</dd>
|
||||||
alt={
|
<dd className="govuk-summary-list__key govuk-!-font-size-16">
|
||||||
router.locale == "cy"
|
{currentView.viewKey ==
|
||||||
? "Nôl data"
|
"myRepresentations" ? (
|
||||||
: "Fetching data"
|
<button
|
||||||
}
|
type="button"
|
||||||
/>
|
onClick={() =>
|
||||||
</div>
|
sortDataBy("createdDate")
|
||||||
|
}
|
||||||
|
className={
|
||||||
|
orderByState == "createdDate"
|
||||||
|
? fieldSortState == "asc"
|
||||||
|
? `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16 sortAsc`
|
||||||
|
: `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16 sortDesc`
|
||||||
|
: `govuk-link govuk-link--no-underline govuk-!-font-weight-bold govuk-!-font-size-16`
|
||||||
|
}
|
||||||
|
>
|
||||||
|
Created{" "}
|
||||||
|
</button>
|
||||||
|
) : (
|
||||||
|
t("search:searchresults-status-label")
|
||||||
|
)}
|
||||||
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
{showSpinnerState == true ? (
|
||||||
resultsRowArr
|
<div className="govuk-summary-list__row">
|
||||||
)}
|
<div className="govuk-!-margin-top-9 govuk-!-margin-bottom-9 govuk-!-font-weight-bold govuk-!-font-size-20 ">
|
||||||
</dl>
|
{t("common:spinner-fetching-data")}
|
||||||
|
<img
|
||||||
|
className="data-loading-icon"
|
||||||
|
src="/assets/images/loading.gif"
|
||||||
|
alt={
|
||||||
|
router.locale == "cy"
|
||||||
|
? "Nôl data"
|
||||||
|
: "Fetching data"
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
resultsRowArr
|
||||||
|
)}
|
||||||
|
</dl>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="govuk-grid-row">
|
<div className="govuk-grid-row">
|
||||||
@@ -1025,7 +1065,7 @@ const ViewAllResults = (props) => {
|
|||||||
|
|
||||||
const mapStateToProps = (state) => {
|
const mapStateToProps = (state) => {
|
||||||
return {
|
return {
|
||||||
//currentView: state.currentView,
|
currentView: state.currentView,
|
||||||
accountDetails: state.accountDetails,
|
accountDetails: state.accountDetails,
|
||||||
// search: state.search,
|
// search: state.search,
|
||||||
// searchResultsObj: state.searchResultsObj,
|
// searchResultsObj: state.searchResultsObj,
|
||||||
|
|||||||
@@ -2429,8 +2429,8 @@
|
|||||||
"value_cy": "Unrhyw ddeunydd arall y byddwch yn ei ystyried yn berthnasol"
|
"value_cy": "Unrhyw ddeunydd arall y byddwch yn ei ystyried yn berthnasol"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"value": "Cost of application",
|
"value": "Cost application",
|
||||||
"value_cy": "Cost y cais"
|
"value_cy": "Cais cost"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"value": "The S106 agreement or unilateral undertaking",
|
"value": "The S106 agreement or unilateral undertaking",
|
||||||
|
|||||||
@@ -428,7 +428,7 @@
|
|||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<labels>
|
<labels>
|
||||||
<label description="Cost of application" ishareDocumentCode="000013" />
|
<label description="Cost application" ishareDocumentCode="000013" />
|
||||||
</labels>
|
</labels>
|
||||||
<control id="pinswg_fileUpload14" classid="{16D63FD6-119B-4353-BDCA-18358721C3FE}" datafieldname="pinswg_fileUpload14" disabled="false" />
|
<control id="pinswg_fileUpload14" classid="{16D63FD6-119B-4353-BDCA-18358721C3FE}" datafieldname="pinswg_fileUpload14" disabled="false" />
|
||||||
</row>
|
</row>
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
"case-type-option-12": "Apeliadau cynllunio adeiladau rhestredig ac ardal gadwraeth",
|
"case-type-option-12": "Apeliadau cynllunio adeiladau rhestredig ac ardal gadwraeth",
|
||||||
"advanced-search-title-label": "Chwiliad manwl",
|
"advanced-search-title-label": "Chwiliad manwl",
|
||||||
"address-search-title-label": "Chwilio am achosion yn ôl cyfeiriad",
|
"address-search-title-label": "Chwilio am achosion yn ôl cyfeiriad",
|
||||||
"applicant-label": "Apelydd/Ymgeisydd",
|
"applicant-label": "Apelydd neu Ymgeisydd",
|
||||||
"other-party-label": "Parti Arall",
|
"other-party-label": "Parti Arall",
|
||||||
"hearing-date-label": "Dyddiad y Gwrandawaid/Ymchwiliad",
|
"hearing-date-label": "Dyddiad y Gwrandawaid/Ymchwiliad",
|
||||||
"site-visit-date-label": "Dyddiad yr Ymweliad a’r Safle",
|
"site-visit-date-label": "Dyddiad yr Ymweliad a’r Safle",
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
"searchresults-case-reference-label": "Cyfeirnod yr Achos",
|
"searchresults-case-reference-label": "Cyfeirnod yr Achos",
|
||||||
"searchresults-case-count-label": "Fe wnaethoch chi chwilio am",
|
"searchresults-case-count-label": "Fe wnaethoch chi chwilio am",
|
||||||
"searchresults-site-address-label": "Cyfeiriad y Safle",
|
"searchresults-site-address-label": "Cyfeiriad y Safle",
|
||||||
"searchresults-applicant-label": "Apelydd/Ymgeisydd",
|
"searchresults-applicant-label": "Apelydd neu Ymgeisydd",
|
||||||
"searchresults-authority-label": "ACLl",
|
"searchresults-authority-label": "ACLl",
|
||||||
"searchresults-case-type-label": "Math o Achos",
|
"searchresults-case-type-label": "Math o Achos",
|
||||||
"searchresults-status-label": "Statws",
|
"searchresults-status-label": "Statws",
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
"case-type-option-12": "Planning Listed Building and Conservation Area Appeals",
|
"case-type-option-12": "Planning Listed Building and Conservation Area Appeals",
|
||||||
"advanced-search-title-label": "Advanced search",
|
"advanced-search-title-label": "Advanced search",
|
||||||
"address-search-title-label": "Search for cases by address",
|
"address-search-title-label": "Search for cases by address",
|
||||||
"applicant-label": "Appellant/Applicant",
|
"applicant-label": "Appellant or Applicant",
|
||||||
"other-party-label": "Other Party",
|
"other-party-label": "Other Party",
|
||||||
"hearing-date-label": "Hearing/Enquiry date",
|
"hearing-date-label": "Hearing/Enquiry date",
|
||||||
"site-visit-date-label": "Site visit date",
|
"site-visit-date-label": "Site visit date",
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
"searchresults-case-reference-label": "Case reference",
|
"searchresults-case-reference-label": "Case reference",
|
||||||
"searchresults-case-count-label": "You searched for",
|
"searchresults-case-count-label": "You searched for",
|
||||||
"searchresults-site-address-label": "Site address",
|
"searchresults-site-address-label": "Site address",
|
||||||
"searchresults-applicant-label": "Appellant/Applicant",
|
"searchresults-applicant-label": "Appellant or Applicant",
|
||||||
"searchresults-authority-label": "Authority",
|
"searchresults-authority-label": "Authority",
|
||||||
"searchresults-case-type-label": "Case type",
|
"searchresults-case-type-label": "Case type",
|
||||||
"searchresults-status-label": "Status",
|
"searchresults-status-label": "Status",
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ const Home = (props) => {
|
|||||||
watchedCases={props.watchedCases}
|
watchedCases={props.watchedCases}
|
||||||
myRepresentations={props.myRepresentations}
|
myRepresentations={props.myRepresentations}
|
||||||
awaitingSubmission={props.awaitingSubmission}
|
awaitingSubmission={props.awaitingSubmission}
|
||||||
|
accountDetails={props.accountDetails}
|
||||||
myportal={true}
|
myportal={true}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user