From a09ec7c17d58329d532d5789f0929851fda3e3a8 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Fri, 25 Sep 2020 11:28:33 +0300 Subject: [PATCH] Update web forms due to new Author entity Signed-off-by: Pekka Helenius --- .../src/main/resources/templates/apiref.html | 94 +++++++++++++++---- .../src/main/resources/templates/bookadd.html | 83 +++++++++++----- .../main/resources/templates/bookedit.html | 83 +++++++++++----- .../main/resources/templates/booklist.html | 18 +++- 4 files changed, 212 insertions(+), 66 deletions(-) diff --git a/bookstore/src/main/resources/templates/apiref.html b/bookstore/src/main/resources/templates/apiref.html index 1bc4e74..ee2fc85 100644 --- a/bookstore/src/main/resources/templates/apiref.html +++ b/bookstore/src/main/resources/templates/apiref.html @@ -17,6 +17,10 @@ page.title.webform.apiref +

+ page.text.apiref.warning +

+ @@ -57,6 +61,18 @@ + + + + + + + + @@ -103,44 +131,50 @@ @@ -149,16 +183,42 @@ + + + + + + + + + + + +
+ placeholder + + + page.text.apiref.link + +
@@ -90,11 +106,23 @@
+ placeholder + + + page.text.apiref.link + +
-

- page.text.apiref.get +

+ page.text.apiref.book.get


- page.text.apiref.edit.info + page.text.apiref.book.edit.info +
+ page.text.apiref.unix.info
-

- page.text.apiref.add +

+ page.text.apiref.book.add

- + +
+ page.text.apiref.unix.info
-

- page.text.apiref.edit +

+ page.text.apiref.book.edit

- +
- page.text.apiref.edit.info + page.text.apiref.book.edit.info +
+ page.text.apiref.unix.info
-

- page.text.apiref.delete +

+ page.text.apiref.book.delete


- page.text.apiref.edit.info + page.text.apiref.book.edit.info +
+ page.text.apiref.unix.info +
+

+ page.text.apiref.author.edit +

+
+ +
+ page.text.apiref.author.edit.info +
+ page.text.apiref.unix.info
+ + button.page.list.return + +
- - button.page.list.return - + diff --git a/bookstore/src/main/resources/templates/bookadd.html b/bookstore/src/main/resources/templates/bookadd.html index 757679e..3e0cd81 100644 --- a/bookstore/src/main/resources/templates/bookadd.html +++ b/bookstore/src/main/resources/templates/bookadd.html @@ -20,30 +20,65 @@
-
- - - - - book.desc.set.author - - - - book.desc.example.headertext - - - - book.desc.example.author - - -
Invalid author value
+
+
+

+ book.author +

+
+
+
+ + + + + book.desc.set.author.firstname + + + + book.desc.example.headertext + + + + book.desc.example.author.firstname + + +
Invalid author first name value
+
+ +
+ + + + + book.desc.set.author.lastname + + + + book.desc.example.headertext + + + + book.desc.example.author.lastname + + +
Invalid author last name value
+
+
diff --git a/bookstore/src/main/resources/templates/bookedit.html b/bookstore/src/main/resources/templates/bookedit.html index 6ac24c2..680c44c 100644 --- a/bookstore/src/main/resources/templates/bookedit.html +++ b/bookstore/src/main/resources/templates/bookedit.html @@ -20,30 +20,65 @@ -
- - - - - book.desc.set.author - - - - book.desc.example.headertext - - - - book.desc.example.author - - -
Invalid author value
+
+
+

+ book.author +

+
+
+
+ + + + + book.desc.set.author.firstname + + + + book.desc.example.headertext + + + + book.desc.example.author.firstname + + +
Invalid author first name value
+
+ +
+ + + + + book.desc.set.author.lastname + + + + book.desc.example.headertext + + + + book.desc.example.author.lastname + + +
Invalid author last name value
+
+
diff --git a/bookstore/src/main/resources/templates/booklist.html b/bookstore/src/main/resources/templates/booklist.html index ad22436..0363ff2 100644 --- a/bookstore/src/main/resources/templates/booklist.html +++ b/bookstore/src/main/resources/templates/booklist.html @@ -33,7 +33,23 @@ - (obj) book.author + + + (obj) book.author.firstName (obj) book.author.lastName + (obj) book.title (obj) book.isbn (obj) book.year