fix: correct hx-vals JSON syntax for payments pagination

This commit is contained in:
2026-07-18 00:27:51 +02:00
parent 8ca20c9a4f
commit a577e91e94
@@ -142,7 +142,7 @@
hx-target="#paiements-table-container" hx-target="#paiements-table-container"
hx-select="#paiements-table-container" hx-select="#paiements-table-container"
hx-include="#filter-form" hx-include="#filter-form"
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"> class="px-3 py-1 border border-gray-300 rounded hover:bg-gray-100 transition-colors">
Précédent Précédent
</button> </button>
@@ -157,7 +157,7 @@
hx-target="#paiements-table-container" hx-target="#paiements-table-container"
hx-select="#paiements-table-container" hx-select="#paiements-table-container"
hx-include="#filter-form" hx-include="#filter-form"
th:attr="hx-vals=|{'page': ${pageNum}}|" th:attr="hx-vals=|{&quot;page&quot;: ${pageNum}}|"
th:text="${pageNum + 1}" th:text="${pageNum + 1}"
class="px-3 py-1 rounded transition-colors" 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'}"> th:classappend="${currentPage == pageNum ? 'bg-blue-600 text-white' : 'border border-gray-300 hover:bg-gray-100'}">
@@ -172,7 +172,7 @@
hx-target="#paiements-table-container" hx-target="#paiements-table-container"
hx-select="#paiements-table-container" hx-select="#paiements-table-container"
hx-include="#filter-form" hx-include="#filter-form"
th:attr="hx-vals=|{'page': ${currentPage + 1}}|" th:attr="hx-vals=|{&quot;page&quot;: ${currentPage + 1}}|"
class="px-3 py-1 border border-gray-300 rounded hover:bg-gray-100 transition-colors"> class="px-3 py-1 border border-gray-300 rounded hover:bg-gray-100 transition-colors">
Suivant Suivant
</button> </button>