Browse Source

PersonImageCommand forms

Andrew Grant 1 month ago
parent
commit
524a4a8d84

+ 2 - 2
src/main/resources/templates/images/image/list.html

@@ -44,10 +44,10 @@
                 <td>
                     <span>
                         <a th:action="delete" class="btn btn-danger btn-sm" href=""
-                           th:href="'image/' + ${image.id} + '/delete'"
+                           th:href="@{'image/' + ${image.id} + '/delete'}"
                            th:text="Delete"></a>
                     <a th:action="edit" class="btn btn-warning btn-sm"
-                       th:href="'image/' + ${image.id} + '/edit'"
+                       th:href="@{'image/' + ${image.id} + '/edit'}"
                        th:text="Edit"></a>
                     </span>
                 </td>

+ 2 - 2
src/main/resources/templates/images/personImage/list.html

@@ -46,10 +46,10 @@
                 </td>
                 <td><span>
                         <a th:action="delete" class="btn btn-danger btn-sm" href=""
-                           th:href="'personImage/' + ${image.id} + '/delete'"
+                           th:href="@{'personImage/' + ${image.id} + '/delete'}"
                            th:text="Delete"></a>
                     <a th:action="edit" class="btn btn-warning btn-sm"
-                       th:href="'personImage/' + ${image.id} + '/edit'"
+                       th:href="@{'personImage/' + ${image.id} + '/edit'}"
                        th:text="Edit"></a>
                     </span></td>
             </tr>

+ 2 - 2
src/main/resources/templates/images/placeImage/list.html

@@ -36,10 +36,10 @@
                 <td></td>
                 <td><span>
                         <a th:action="delete" class="btn btn-danger btn-sm" href=""
-                           th:href="'placeImage/' + ${image.id} + '/delete'"
+                           th:href="@{'placeImage/' + ${image.id} + '/delete'}"
                            th:text="Delete"></a>
                     <a th:action="edit" class="btn btn-warning btn-sm"
-                       th:href="'placeImage/' + ${image.id} + '/edit'"
+                       th:href="@{'placeImage/' + ${image.id} + '/edit'}"
                        th:text="Edit"></a>
                     </span></td>
             </tr>

+ 2 - 2
src/main/resources/templates/text/documentText/list.html

@@ -36,10 +36,10 @@
                 <td></td>
                 <td><span>
                         <a th:action="delete" class="btn btn-danger btn-sm" href=""
-                           th:href="'documentTexts/' + ${text.id} + '/delete'"
+                           th:href="@{'documentTexts/' + ${text.id} + '/delete'}"
                            th:text="Delete"></a>
                     <a th:action="edit" class="btn btn-warning btn-sm"
-                       th:href="'documentText/' + ${text.id} + '/edit'"
+                       th:href="@{'documentText/' + ${text.id} + '/edit'}"
                        th:text="Edit"></a>
                     </span></td>
             </tr>

+ 2 - 2
src/main/resources/templates/text/personText/list.html

@@ -41,10 +41,10 @@
                 <td th:text="${text.heading}">123</td>
                 <td><span>
                         <a th:action="delete" class="btn btn-danger btn-sm" href=""
-                           th:href="'personTexts/' + ${text.id} + '/delete'"
+                           th:href="@{'/personText/' + ${text.id} + '/delete'}"
                            th:text="Delete"></a>
                     <a th:action="edit" class="btn btn-warning btn-sm"
-                       th:href="'personText/' + ${text.id} + '/edit'"
+                       th:href="@{'/personText/' + ${text.id} + '/edit'}"
                        th:text="Edit"></a>
                     </span></td>
             </tr>