From dda1a3b574ee87613689b230b2eb0f2c0dbc2bc4 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 19:11:22 +0000
Subject: [PATCH] Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
---
src/routes/documents.pleading.new.tsx | 97 +++++++++++++++++++++++++++
1 file changed, 97 insertions(+)
diff --git a/src/routes/documents.pleading.new.tsx b/src/routes/documents.pleading.new.tsx
index b35cfa2..42998ac 100644
--- a/src/routes/documents.pleading.new.tsx
+++ b/src/routes/documents.pleading.new.tsx
@@ -308,6 +308,103 @@ function PleadingNewPage() {
}
/>
+ {/* Client / case linkage + variable picker */}
+
+ Pick a client and/or case to expose variables (including custom fields). Insert tokens like{" "}
+
+ Click a chip to copy its token, then paste it where you want the value to appear.
+ {`{{client.name}}`} anywhere in the body, caption, footnotes, or footer — they’ll be substituted on download & save.
+