Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-18 02:03:02 +00:00
co-authored by renee-png
parent 98fbee5988
commit fd14495cf0
+50
View File
@@ -376,6 +376,56 @@ function PleadingNewPage() {
</CardContent>
</Card>
{/* Attorney signature */}
<Card className="mt-6">
<CardContent className="p-5 space-y-4">
<div className="flex items-start justify-between gap-4">
<div>
<Label className="text-base flex items-center gap-2">
<PenLine className="h-4 w-4 text-muted-foreground" /> Attorney signature
</Label>
<p className="text-xs text-muted-foreground mt-0.5">
Pulled from your profile. Toggle off to omit. Edit it in{" "}
<a className="underline" href="/settings/profile">Settings → Profile</a>.
</p>
</div>
<div className="flex items-center gap-2">
<Switch checked={includeSignature} onCheckedChange={setIncludeSignature} />
<span className="text-xs text-muted-foreground">
{includeSignature ? "Included" : "Omitted"}
</span>
</div>
</div>
{includeSignature ? (
!sigBlock.trim() && !sigImagePath ? (
<div className="text-sm italic text-muted-foreground border border-dashed rounded p-3">
No signature found on your profile yet. Add one in Settings → Profile.
</div>
) : (
<div
className="border rounded-md p-4 bg-white text-black"
style={{ fontFamily: '"Bookman Old Style", Georgia, serif', fontSize: 12 }}
>
{sigImagePath && sigImageDataUrl ? (
<img
src={sigImageDataUrl}
alt="Signature"
className="mb-1 max-h-[60px] object-contain"
/>
) : (
<div className="h-10" />
)}
<div>_______________________________</div>
<pre className="whitespace-pre-wrap font-[inherit] text-[12px] leading-snug mt-1">
{sigBlock || <span className="text-muted-foreground italic">(no block text)</span>}
</pre>
</div>
)
) : null}
</CardContent>
</Card>
{/* Footer */}
<Card className="mt-6">
<CardContent className="p-5 space-y-3">