From 52fbd5fcf8748fbbe67858799528834ad358390e Mon Sep 17 00:00:00 2001 From: Youssef Date: Sun, 31 May 2026 02:11:08 +0200 Subject: [PATCH] fix: refactoring de la gestion HTMX des filtres avec triggers precis --- .../resources/templates/adherents/list.html | 106 +++++++++--------- 1 file changed, 56 insertions(+), 50 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 31d5214..1f61dd3 100644 --- a/as-talange-web/src/main/resources/templates/adherents/list.html +++ b/as-talange-web/src/main/resources/templates/adherents/list.html @@ -34,7 +34,17 @@ -
+ +
+
- - - - @@ -61,30 +67,30 @@ - + - - - - - - - - - - - - - - - -
Actions
- + - + - - + - + - + - @@ -94,40 +100,40 @@
Aucun adhérent enregistré.
- Dupont -
- Masculin - | - Joueur -
-
Jean--jean@example.com0600000000 - À jour - - Voir / Modifier -
- -
-
+ + + Aucun adhérent enregistré. + + + + Dupont +
+ Masculin + | + Joueur +
+ + Jean + - + - + jean@example.com + 0600000000 + + À jour + + + Voir / Modifier +
+ +
+ + + +
@@ -146,7 +152,7 @@ hx-get="/adherents" hx-target="#adherents-table-container" hx-select="#adherents-table-container" - hx-include="#filter-form" + hx-include="#filter-row input, #filter-row select, input[name='query']" 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 @@ -161,7 +167,7 @@ hx-get="/adherents" hx-target="#adherents-table-container" hx-select="#adherents-table-container" - hx-include="#filter-form" + hx-include="#filter-row input, #filter-row select, input[name='query']" th:attr="hx-vals=|{'page': ${pageNum}}|" th:text="${pageNum + 1}" class="px-3 py-1 rounded transition-colors" @@ -176,7 +182,7 @@ hx-get="/adherents" hx-target="#adherents-table-container" hx-select="#adherents-table-container" - hx-include="#filter-form" + hx-include="#filter-row input, #filter-row select, input[name='query']" th:attr="hx-vals=|{'page': ${currentPage + 1}}|" class="px-3 py-1 border border-gray-300 rounded hover:bg-gray-100 transition-colors"> Suivant