From 6674893d46bc7f68f6f6f79becb0e0036279c256 Mon Sep 17 00:00:00 2001 From: Wim Deblauwe Date: Wed, 18 Oct 2023 21:53:05 +0200 Subject: [PATCH] Replace `th:attr` with `hx:get` from the htmx-spring-boot-thymeleaf library. Fixes #6 --- src/main/resources/templates/fragments/owners.html | 10 +++++----- src/main/resources/templates/fragments/pagination.html | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/resources/templates/fragments/owners.html b/src/main/resources/templates/fragments/owners.html index 3acf591..75ca0ce 100644 --- a/src/main/resources/templates/fragments/owners.html +++ b/src/main/resources/templates/fragments/owners.html @@ -47,7 +47,7 @@

Owners

+ hx:get="@{/owners/__${owner.id}__}" hx-target="#block-content"/> @@ -83,10 +83,10 @@

Owner Information

- Edit Owner - Add + Add New Pet @@ -122,9 +122,9 @@

Pets and Visits

Edit Pet + hx-get="@{__${owner.id}__/pets/__${pet.id}__/edit}" hx-target="#block-content">Edit Pet Add Visit + hx:get="@{__${owner.id}__/pets/__${pet.id}__/visits/new}" hx-target="#block-content">Add Visit diff --git a/src/main/resources/templates/fragments/pagination.html b/src/main/resources/templates/fragments/pagination.html index 5df8ef7..fb16007 100644 --- a/src/main/resources/templates/fragments/pagination.html +++ b/src/main/resources/templates/fragments/pagination.html @@ -1,10 +1,10 @@ - [[${page}]] + [[${page}]] [[${page}]] - +