From 3457982d9b0acc8e47c9abcc63b71644f9156431 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Thu, 17 Sep 2020 20:35:46 +0300 Subject: [PATCH] Set more flexible naming scheme for template URLs, get from Controller Signed-off-by: Pekka Helenius --- bookstore/src/main/resources/templates/bookadd.html | 4 ++-- bookstore/src/main/resources/templates/bookedit.html | 2 +- bookstore/src/main/resources/templates/booklist.html | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bookstore/src/main/resources/templates/bookadd.html b/bookstore/src/main/resources/templates/bookadd.html index d373b04..1e8bd30 100644 --- a/bookstore/src/main/resources/templates/bookadd.html +++ b/bookstore/src/main/resources/templates/bookadd.html @@ -9,7 +9,7 @@

Add new book

-
+
@@ -62,7 +62,7 @@
-
+
diff --git a/bookstore/src/main/resources/templates/bookedit.html b/bookstore/src/main/resources/templates/bookedit.html index 757b595..4149013 100644 --- a/bookstore/src/main/resources/templates/bookedit.html +++ b/bookstore/src/main/resources/templates/bookedit.html @@ -62,7 +62,7 @@
-
+
diff --git a/bookstore/src/main/resources/templates/booklist.html b/bookstore/src/main/resources/templates/booklist.html index 1f66154..2418d58 100644 --- a/bookstore/src/main/resources/templates/booklist.html +++ b/bookstore/src/main/resources/templates/booklist.html @@ -29,13 +29,13 @@ Delete + th:href="@{__${deletepage}__/{id}(id=${book.id})}">Delete Edit + th:href="@{__${editpage}__/{id}(id=${book.id})}">Edit