From 44fef19cf233c80f0dcf02c040a9b631a1e0f309 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Sat, 3 Oct 2020 03:45:44 +0300 Subject: [PATCH] Add web form data fields related to book publication Signed-off-by: Pekka Helenius --- .../src/main/resources/messages.properties | 6 ++++ .../main/resources/templates/booklist.html | 26 +++++++++++++++- .../templates/fragments/bookfields.html | 30 +++++++++++++++++++ 3 files changed, 61 insertions(+), 1 deletion(-) diff --git a/bookstore/src/main/resources/messages.properties b/bookstore/src/main/resources/messages.properties index 9fd24e4..46fc3d8 100644 --- a/bookstore/src/main/resources/messages.properties +++ b/bookstore/src/main/resources/messages.properties @@ -16,6 +16,8 @@ book.price = Price book.category = Category book.json = JSON Data +book.fields.publish = Publish the book? + book.desc.set.author.firstname = Set book author first name book.desc.set.author.lastname = Set book author last name book.desc.set.title = Set book primary title @@ -23,6 +25,7 @@ book.desc.set.isbn = Set book ISBN code book.desc.set.year = Set book publication year book.desc.set.price = Set book price book.desc.set.category = Select appropriate category +book.desc.set.publish = Should the book be published on the store page? book.desc.example.headertext = Valid inputs (examples) book.desc.example.author.firstname = Andrzej @@ -55,6 +58,9 @@ page.title.webform.edit = Update existing book page.title.webform.error = Error page.title.webform.apiref = API Reference help page +page.text.list.yes = Yes +page.text.list.no = No +page.text.list.published = Visible\? page.text.list.actions = Actions page.text.list.delete = Delete page.text.list.edit = Edit diff --git a/bookstore/src/main/resources/templates/booklist.html b/bookstore/src/main/resources/templates/booklist.html index e75ee08..57d8884 100644 --- a/bookstore/src/main/resources/templates/booklist.html +++ b/bookstore/src/main/resources/templates/booklist.html @@ -77,6 +77,16 @@ Idea of the following syntax used in this and other HTML document: book.category book.price + + page.text.list.published + + + + + book.json - +