reps defects
This commit is contained in:
@@ -300,6 +300,7 @@ let MakeRepresentation = (props) => {
|
||||
currentView.caseReference.appealType != 846040019 &&
|
||||
currentView.caseReference.appealType != 846040011 &&
|
||||
currentView.caseReference.appealType != 846040015 &&
|
||||
currentView.caseReference.appealType != 846040016 &&
|
||||
todaysDate >= startDate &&
|
||||
todaysDate <= questionnaireDate &&
|
||||
buildArr.push("Questionnaire");
|
||||
@@ -922,10 +923,10 @@ let MakeRepresentation = (props) => {
|
||||
|
||||
var dataObj = values;
|
||||
|
||||
for (let key in dataObj) {
|
||||
_.includes(key, "representationDocuments") == true &&
|
||||
delete dataObj[key];
|
||||
}
|
||||
// for (let key in dataObj) {
|
||||
// _.includes(key, "representationDocuments") == true &&
|
||||
// delete dataObj[key];
|
||||
// }
|
||||
|
||||
uploadRepFiles(
|
||||
dataObj,
|
||||
|
||||
@@ -145,6 +145,7 @@ const RepAgent = (props) => {
|
||||
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
||||
<FileUploadField
|
||||
name={"representationDocuments"}
|
||||
id={"representationDocuments"}
|
||||
label={t(
|
||||
"myrepresentations:add-files-label"
|
||||
)}
|
||||
|
||||
@@ -131,6 +131,7 @@ const RepAppellant = (props) => {
|
||||
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
||||
<FileUploadField
|
||||
name={"representationDocuments"}
|
||||
id={"representationDocuments"}
|
||||
label={t(
|
||||
"myrepresentations:add-files-label"
|
||||
)}
|
||||
|
||||
@@ -493,7 +493,7 @@ export const RenderPickList = ({
|
||||
{errorMsg}
|
||||
</span>
|
||||
)}
|
||||
{value}
|
||||
|
||||
<div>
|
||||
<select
|
||||
// {...input}
|
||||
@@ -1061,21 +1061,24 @@ export const RenderFileUpload = (field) => {
|
||||
)}
|
||||
{files && Array.isArray(files) && (
|
||||
<ul>
|
||||
{files.map((file, i) => (
|
||||
<div
|
||||
key={file.name}
|
||||
className="govuk-!-margin-bottom-5 fileThumb"
|
||||
>
|
||||
<img
|
||||
src={getThumbnailIcon(file, file.type)}
|
||||
alt={file.name}
|
||||
width="50"
|
||||
/>
|
||||
<span className="govuk-body govuk-!-font-size-14 govuk-!-padding-left-5">
|
||||
{file.name} ({bytesToSize(file.size)})
|
||||
</span>
|
||||
</div>
|
||||
))}
|
||||
{files.map(
|
||||
(file, i) =>
|
||||
file.hasOwnProperty("name") && (
|
||||
<div
|
||||
key={file.name}
|
||||
className="govuk-!-margin-bottom-5 fileThumb"
|
||||
>
|
||||
<img
|
||||
src={getThumbnailIcon(file, file.type)}
|
||||
alt={file.name}
|
||||
width="50"
|
||||
/>
|
||||
<span className="govuk-body govuk-!-font-size-14 govuk-!-padding-left-5">
|
||||
{file.name} ({bytesToSize(file.size)})
|
||||
</span>
|
||||
</div>
|
||||
)
|
||||
)}
|
||||
</ul>
|
||||
)}
|
||||
{blobList.map((blob, i) => (
|
||||
@@ -1100,12 +1103,12 @@ export const RenderFileUpload = (field) => {
|
||||
−
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<img
|
||||
src={getThumbnailIconByExtension(blob.name)}
|
||||
alt={blob.name}
|
||||
width="50"
|
||||
/>
|
||||
|
||||
<Link
|
||||
key={i}
|
||||
scroll={false}
|
||||
|
||||
@@ -138,6 +138,7 @@ const RepInterestedPartyPerson = (props) => {
|
||||
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
||||
<FileUploadField
|
||||
name={"representationDocuments"}
|
||||
id={"representationDocuments"}
|
||||
label={t(
|
||||
"myrepresentations:add-files-label"
|
||||
)}
|
||||
|
||||
@@ -381,6 +381,7 @@ let RepLPA = (props) => {
|
||||
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
||||
<FileUploadField
|
||||
name={"representationDocuments"}
|
||||
id={"representationDocuments"}
|
||||
label={t(
|
||||
"myrepresentations:add-files-label"
|
||||
)}
|
||||
|
||||
@@ -88,6 +88,7 @@ const RepLandOwner = (props) => {
|
||||
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
||||
<FileUploadField
|
||||
name={"representationDocuments"}
|
||||
id={"representationDocuments"}
|
||||
label={t(
|
||||
"myrepresentations:add-files-label"
|
||||
)}
|
||||
|
||||
+1
@@ -1114,6 +1114,7 @@ let Enforcement_Questionnaire = (props) => {
|
||||
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
||||
<FileUploadField
|
||||
name={"representationDocuments"}
|
||||
id={"representationDocuments"}
|
||||
label={t("myrepresentations:add-files-label")}
|
||||
ticketnumber={props.props.caseReference}
|
||||
hint={"sdsd"}
|
||||
|
||||
+1
@@ -942,6 +942,7 @@ let S78_Questionnaire = (props) => {
|
||||
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
||||
<FileUploadField
|
||||
name={"representationDocuments"}
|
||||
id={"representationDocuments"}
|
||||
label={t("myrepresentations:add-files-label")}
|
||||
ticketnumber={props.props.caseReference}
|
||||
hint={"sdsd"}
|
||||
|
||||
Reference in New Issue
Block a user