From 801f360b6fe596ed7c848b2aa04d28a526216fa7 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 8 Sep 2026 01:10:54 -0700 Subject: books: Add total number of pages per book Although each session progress has a total number of pages field for when a change in e-reader settings changes the number of pages in a book, each book will also have an initial or standard number of pages. When reading a printed book, the number of pages won't change (except maybe if you change prints of the book), so we can always just use the same number as previously. With ebooks the number of pages will _usually_ remain the same, so there too we can default to the previous value, as long as we allow it to be changed. --- src/view/main.phel | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/view') diff --git a/src/view/main.phel b/src/view/main.phel index decd4d5..dc57f3c 100644 --- a/src/view/main.phel +++ b/src/view/main.phel @@ -61,6 +61,9 @@ [:br] [:label {:for "author"} "Author: "] [:input {:type "text" :name "author"}] + [:br] + [:label {:for "pages"} "# of pages: "] + [:input {:type "number" :name "pages"}] [:input {:type "submit"}]]]]]])) (defn index-html [books router] -- cgit v1.3-2-g0d8e