From b8e8328b1ffffb80bf4ebb776a4a24e5680fc5bc Mon Sep 17 00:00:00 2001 From: dujinkim Date: Fri, 28 Mar 2025 00:42:08 +0000 Subject: 테이블 칼럼 리사이즈 및 핀 충돌 해결 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/po/table/sign-request-dialog.tsx | 359 ++++++++++++++++++----------------- 1 file changed, 183 insertions(+), 176 deletions(-) (limited to 'lib/po/table/sign-request-dialog.tsx') diff --git a/lib/po/table/sign-request-dialog.tsx b/lib/po/table/sign-request-dialog.tsx index f70e5e33..38e3e0f9 100644 --- a/lib/po/table/sign-request-dialog.tsx +++ b/lib/po/table/sign-request-dialog.tsx @@ -45,7 +45,8 @@ import { import { Input } from "@/components/ui/input" import { Button } from "@/components/ui/button" import { Checkbox } from "@/components/ui/checkbox" -import { ContractDetail } from "@/db/schema/contract" +import { ScrollArea } from "@/components/ui/scroll-area" +import { ContractDetail, ContractDetailParsed } from "@/db/schema/contract" import { getVendorContacts } from "../service" // Type for vendor contact @@ -92,7 +93,7 @@ interface SigningParty { // Updated interface to accept multiple signers interface SignatureRequestModalProps { - contract: ContractDetail + contract: ContractDetailParsed open: boolean onOpenChange: (open: boolean) => void onSubmit: ( @@ -217,7 +218,7 @@ export function SignatureRequestModal({ return ( - + Request Electronic Signatures @@ -225,185 +226,191 @@ export function SignatureRequestModal({ -
- - - {/* Requester Signature Section */} - -
- ( - - - + + + + {/* Requester Signature Section */} + +
+ ( + + + + + +
Requester Signature
+
+
+ )} + /> +
+ + {form.watch("includeRequesterSigner") && ( + + + ( + + Signer Email + + + + + + )} /> -
- -
Requester Signature
-
-
- )} - /> -
- - {form.watch("includeRequesterSigner") && ( - - - ( - - Signer Email - - - - - - )} - /> - - ( - - Signer Name - - - - - - )} - /> - - ( - - Signer Position - - - - - - )} - /> - - - )} - -
- - {/* Vendor Signature Section */} - -
- ( - - - ( + + Signer Name + + + + + + )} /> - - -
Vendor Signature
-
-
- )} - /> -
- - {form.watch("includeVendorSigner") && ( - - - ( - - Select Vendor Contact - - - {vendorContacts.length > 0 ? ( - vendorContacts.map((contact) => ( - - {contact.contactName} {contact.isPrimary ? "(Primary)" : ""} + + + )} + /> + + + )} + +
+ + {/* Vendor Signature Section */} + +
+ ( + + + + + +
Vendor Signature
+
+
+ )} + /> +
+ + {form.watch("includeVendorSigner") && ( + + + ( + + Select Vendor Contact + - - + )} + + + + + )} + /> + + {/* Display selected contact info (read-only) */} + {selectedVendorContact && ( + <> + + Contact Email +
+ {selectedVendorContact.contactEmail} +
+
+ + + Contact Name +
+ {selectedVendorContact.contactName} +
+
+ + + Contact Position +
+ {selectedVendorContact.contactPosition || "N/A"} +
+
+ )} - /> - - {/* Display selected contact info (read-only) */} - {selectedVendorContact && ( - <> - - Contact Email -
- {selectedVendorContact.contactEmail} -
-
- - - Contact Name -
- {selectedVendorContact.contactName} -
-
- - - Contact Position -
- {selectedVendorContact.contactPosition || "N/A"} -
-
- - )} -
-
- )} -
-
-
- - - - - -
- + + + )} + + + + + +
+ + + + +
+ + +
) -- cgit v1.2.3