more
This commit is contained in:
@@ -582,7 +582,109 @@ const DocEditPage = () => {
|
|||||||
: fetchedCase?.defendantParties;
|
: fetchedCase?.defendantParties;
|
||||||
|
|
||||||
const editingContent = () => {
|
const editingContent = () => {
|
||||||
return <div> {headerPicker()}</div>;
|
return (
|
||||||
|
<>
|
||||||
|
<div> {headerPicker()}</div>
|
||||||
|
<div className="doc-editing-wrapper">
|
||||||
|
<div className="pleading-header">{headerString}</div>
|
||||||
|
<div>
|
||||||
|
{displayCopy.prelimaryStatement(
|
||||||
|
documentType,
|
||||||
|
respondent,
|
||||||
|
servingParty
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<div className="doc-editing-sub-wrapper">
|
||||||
|
{parsedRogs?.map((rog, i) => (
|
||||||
|
<div className="req-item-outer-div">
|
||||||
|
<div className="request-text-up">
|
||||||
|
{numberingContent(i)}
|
||||||
|
{rog?.text}
|
||||||
|
</div>
|
||||||
|
<div className="req-item-inner-div">
|
||||||
|
<EditElement
|
||||||
|
value={
|
||||||
|
responses && responses.length > 2
|
||||||
|
? // NEVER CHANGE THIS
|
||||||
|
responses[i].resp
|
||||||
|
: null
|
||||||
|
}
|
||||||
|
setShowInputEle={setShowInputEle}
|
||||||
|
showInputEle={
|
||||||
|
responses && responses.length > 2
|
||||||
|
? responses[i].showInputEle
|
||||||
|
: null
|
||||||
|
}
|
||||||
|
handleFocus={handleFocus}
|
||||||
|
handleEditValue={handleEditValue}
|
||||||
|
handleBlur={handleBlur}
|
||||||
|
i={i}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
<div
|
||||||
|
className="docedit-report-container"
|
||||||
|
onClick={() => handleConfirmReport()}
|
||||||
|
>
|
||||||
|
<div className="docedit-report-link">Report an issue</div>
|
||||||
|
</div>
|
||||||
|
<div className="doc-editing-button-container">
|
||||||
|
<div className="generate-button-box">
|
||||||
|
{/* TODO: add tooltip: "This will save the document and create a .docx file that will (be downloaded? saved somewhere?" */}
|
||||||
|
<Button
|
||||||
|
className="primary-button create-gen-button"
|
||||||
|
onClick={createAndReturnDocx}
|
||||||
|
labelText={"Create .docx File"}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div className="details-button-box">
|
||||||
|
<div>
|
||||||
|
<Button
|
||||||
|
className="pt-2 pb-2 mr-4 secondary-button edit-back-button"
|
||||||
|
onClick={handleBack}
|
||||||
|
labelText="Back To Documents Page"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<Button
|
||||||
|
className="pt-2 pb-2 mr-2 primary-button"
|
||||||
|
onClick={handleConfirmSave}
|
||||||
|
labelText="Save Changes"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{showSaveModal && !isReport && documentId !== null ? (
|
||||||
|
<ConfirmModal
|
||||||
|
onCancel={handleCancelSave}
|
||||||
|
onConfirm={handleSave}
|
||||||
|
buttonLabelText="Confirm Save"
|
||||||
|
modalText={
|
||||||
|
"Are you sure? This will overrwrite any previously-saved edits."
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
) : null}
|
||||||
|
{showSaveModal && isReport && documentId !== null ? (
|
||||||
|
<ConfirmModal
|
||||||
|
isReport={isReport}
|
||||||
|
onCancel={handleCancelSave}
|
||||||
|
onConfirm={handleReport}
|
||||||
|
buttonLabelText="Report Issue"
|
||||||
|
documentId={documentId}
|
||||||
|
caseId={caseId}
|
||||||
|
appUserId={appUserId}
|
||||||
|
issuetext={issueText}
|
||||||
|
setIssueText={setIssueText}
|
||||||
|
modalText={
|
||||||
|
"Date/time and document id automatically logged. Support will address this within 24 hours."
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
) : null}
|
||||||
|
</>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const readyToEdit = fetchedCase && responses.length > 1;
|
const readyToEdit = fetchedCase && responses.length > 1;
|
||||||
|
|||||||
@@ -249,7 +249,7 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 60%;
|
width: 60%;
|
||||||
margin: 22px auto;
|
margin: 6px auto;
|
||||||
color: #4e4e4e;
|
color: #4e4e4e;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user