From e9836e5132d5761d9b80c531b85c401141381310 Mon Sep 17 00:00:00 2001 From: Haoyu Sun <SunH26@cardiff.ac.uk> Date: Mon, 28 Oct 2024 19:33:34 +0000 Subject: [PATCH] itemList button redirect --- .../resources/templates/page/itemList.html | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/main/resources/templates/page/itemList.html b/src/main/resources/templates/page/itemList.html index 1d4ec58..8a78b94 100644 --- a/src/main/resources/templates/page/itemList.html +++ b/src/main/resources/templates/page/itemList.html @@ -6,5 +6,28 @@ </head> <body> <div>itemList</div> + <table> + <!--thead--> + <thead> + <tr> + <th>id</th> + <th>name</th> + <th>description</th> + </tr> + </thead> + <!-- tbody --> + <tbody> + <tr th:each="exchangeItem,iStat : ${exchangeItems}"> + <td th:text="${iStat.index}"></td> + <td th:text="${exchangeItem.name}"></td> + <td th:text="${exchangeItem.description}"></td> + <td> + <button><a th:href="@{/exchange/{link} (link=${exchangeItem.id})}"> + seeDetails + </a></button> + </td> + </tr> + </tbody> + </table> </body> </html> \ No newline at end of file -- GitLab