From 214ec0822982c42f11fb1829f5361ed4de0ff0d5 Mon Sep 17 00:00:00 2001 From: Youssef Date: Fri, 3 Jul 2026 17:07:42 +0200 Subject: [PATCH] fix: resolve HTMX pagination bug on adherents list --- .../src/main/resources/templates/adherents/list.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/as-talange-web/src/main/resources/templates/adherents/list.html b/as-talange-web/src/main/resources/templates/adherents/list.html index db11fb3..ad560ad 100644 --- a/as-talange-web/src/main/resources/templates/adherents/list.html +++ b/as-talange-web/src/main/resources/templates/adherents/list.html @@ -175,7 +175,7 @@ hx-target="#adherents-table-container" hx-select="#adherents-table-container" hx-include="#filter-row input, #filter-row select, input[name='query']" - th:attr="hx-vals=|{'page': ${currentPage - 1}}|" + th:attr="hx-vals=|{"page": ${currentPage - 1}}|" class="px-3 py-1 border border-gray-300 rounded hover:bg-gray-100 transition-colors"> Précédent @@ -190,7 +190,7 @@ hx-target="#adherents-table-container" hx-select="#adherents-table-container" hx-include="#filter-row input, #filter-row select, input[name='query']" - th:attr="hx-vals=|{'page': ${pageNum}}|" + th:attr="hx-vals=|{"page": ${pageNum}}|" th:text="${pageNum + 1}" class="px-3 py-1 rounded transition-colors" th:classappend="${currentPage == pageNum ? 'bg-blue-600 text-white' : 'border border-gray-300 hover:bg-gray-100'}"> @@ -205,7 +205,7 @@ hx-target="#adherents-table-container" hx-select="#adherents-table-container" hx-include="#filter-row input, #filter-row select, input[name='query']" - th:attr="hx-vals=|{'page': ${currentPage + 1}}|" + th:attr="hx-vals=|{"page": ${currentPage + 1}}|" class="px-3 py-1 border border-gray-300 rounded hover:bg-gray-100 transition-colors"> Suivant