From 00b9bcadd9f3326e5e35c12598c1845c57131907 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 18 Apr 2026 18:47:00 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/documents.pleading.new.tsx | 136 +++++++++++++++++++++++++- 1 file changed, 135 insertions(+), 1 deletion(-) diff --git a/src/routes/documents.pleading.new.tsx b/src/routes/documents.pleading.new.tsx index 5a4c5ed..a8dc10c 100644 --- a/src/routes/documents.pleading.new.tsx +++ b/src/routes/documents.pleading.new.tsx @@ -444,7 +444,141 @@ function PleadingNewPage() { - {/* Footer */} + {/* Service list (optional) */} + + +
+
+ +

+ Optional. If you add any contacts, a dedicated page is appended to the pleading listing each one. +

+
+ { + setServiceList((prev) => [ + ...prev, + { + name: c.name, + role: c.title || undefined, + company: c.company || undefined, + email: c.email || undefined, + phone: c.phone || undefined, + address: "", + }, + ]); + }} + /> +
+ +
+ + setServiceListTitle(e.target.value)} + placeholder="SERVICE LIST" + /> +
+ + {serviceList.length === 0 ? ( +
+ No contacts added. Use “Add from contacts” to include a service list page. +
+ ) : ( +
+ {serviceList.map((c, idx) => ( +
+
+
+ + setServiceList((prev) => + prev.map((x, i) => (i === idx ? { ...x, name: e.target.value } : x)), + ) + } + /> + + setServiceList((prev) => + prev.map((x, i) => (i === idx ? { ...x, role: e.target.value } : x)), + ) + } + /> + + setServiceList((prev) => + prev.map((x, i) => (i === idx ? { ...x, company: e.target.value } : x)), + ) + } + /> + + setServiceList((prev) => + prev.map((x, i) => (i === idx ? { ...x, email: e.target.value } : x)), + ) + } + /> + + setServiceList((prev) => + prev.map((x, i) => (i === idx ? { ...x, phone: e.target.value } : x)), + ) + } + /> +