From 1b49dac87f8e98a7fcaaf7c5a1524088a2de958d Mon Sep 17 00:00:00 2001 From: James Date: Tue, 10 Feb 2026 04:14:51 -0500 Subject: [PATCH] Document page: two-row layout - details|summary+notes top, OCR|PDF bottom --- templates/document.html | 231 +++++++++++++++++++--------------------- 1 file changed, 109 insertions(+), 122 deletions(-) diff --git a/templates/document.html b/templates/document.html index 86549ce..718472c 100644 --- a/templates/document.html +++ b/templates/document.html @@ -49,135 +49,122 @@ +
- -
- -
-
-

Details

-
-
-
- -
-
-
Category
-
- -
-
- {{if .Document.Vendor}} -
-
Vendor
-
{{.Document.Vendor}}
-
- {{end}} - {{if .Document.Amount}} -
-
Amount
-
{{.Document.Amount}}
-
- {{end}} -
- -
- {{if .Document.Date}} -
-
Date
-
{{formatDate .Document.Date}}
-
- {{end}} - {{if .Document.ProcessedAt}} -
-
Processed
-
{{formatDateTime .Document.ProcessedAt}}
-
- {{end}} - {{if .Document.OriginalFile}} -
-
Original File
-
{{.Document.OriginalFile}}
-
- {{end}} -
-
+
+
+

Details

+
+
+
+
+
+
Category
+
+ +
+
+ {{if .Document.Vendor}} +
+
Vendor
+
{{.Document.Vendor}}
+
+ {{end}} + {{if .Document.Amount}} +
+
Amount
+
{{.Document.Amount}}
+
+ {{end}} +
+
+ {{if .Document.Date}} +
+
Date
+
{{formatDate .Document.Date}}
+
+ {{end}} + {{if .Document.ProcessedAt}} +
+
Processed
+
{{formatDateTime .Document.ProcessedAt}}
+
+ {{end}} + {{if .Document.OriginalFile}} +
+
Original File
+
{{.Document.OriginalFile}}
+
+ {{end}} +
- - - {{if .Document.Summary}} -
-
-

Summary

-
-
-

{{.Document.Summary}}

-
-
- {{end}} - - -
-
-

Notes

-
-
- {{if .Document.Notes}} -

{{.Document.Notes}}

- {{else}} -

No notes yet. Click Edit to add notes.

- {{end}} -
-
- - - {{if .Document.FullText}} -
-
-

OCR Text

- -
-
-
{{.Document.FullText | safe}}
- -
-
- {{end}}
- +
+ {{if .Document.Summary}} +
+

Summary

+
+
+

{{.Document.Summary}}

+
+ {{end}} +
+

Notes

+
+
+ {{if .Document.Notes}} +

{{.Document.Notes}}

+ {{else}} +

No notes yet. Click Edit to add notes.

+ {{end}} +
+
+
+ + +
+ {{if .Document.FullText}} +
+
+

OCR Text

+ +
+
+
{{.Document.FullText | safe}}
+ +
+
+ {{else}} +
+ {{end}} +
{{if .Document.PDFPath}} -
+

Document Preview