From 2d1f1238ed17feb25d38ca62784ced6d014ed509 Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Sun, 21 Jan 2024 21:11:07 -0600 Subject: [PATCH] more --- src/Components/Document/DocEditPage.js | 104 ++++++++++++++++++++++++- src/styles/docedit-page.scss | 2 +- 2 files changed, 104 insertions(+), 2 deletions(-) diff --git a/src/Components/Document/DocEditPage.js b/src/Components/Document/DocEditPage.js index 108c1f1..e3183b4 100644 --- a/src/Components/Document/DocEditPage.js +++ b/src/Components/Document/DocEditPage.js @@ -582,7 +582,109 @@ const DocEditPage = () => { : fetchedCase?.defendantParties; const editingContent = () => { - return
{headerPicker()}
; + return ( + <> +
{headerPicker()}
+
+
{headerString}
+
+ {displayCopy.prelimaryStatement( + documentType, + respondent, + servingParty + )} +
+
+ {parsedRogs?.map((rog, i) => ( +
+
+ {numberingContent(i)} + {rog?.text} +
+
+ 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} + /> +
+
+ ))} +
handleConfirmReport()} + > +
Report an issue
+
+
+
+ {/* TODO: add tooltip: "This will save the document and create a .docx file that will (be downloaded? saved somewhere?" */} +
+
+
+
+
+
+
+
+
+
+ {showSaveModal && !isReport && documentId !== null ? ( + + ) : null} + {showSaveModal && isReport && documentId !== null ? ( + + ) : null} + + ); }; const readyToEdit = fetchedCase && responses.length > 1; diff --git a/src/styles/docedit-page.scss b/src/styles/docedit-page.scss index ae58b7e..b39e104 100644 --- a/src/styles/docedit-page.scss +++ b/src/styles/docedit-page.scss @@ -249,7 +249,7 @@ justify-content: center; align-items: center; width: 60%; - margin: 22px auto; + margin: 6px auto; color: #4e4e4e; }