From af3adbb2684e0d21cc19b1b729ac376b76820e20 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Sat, 21 Oct 2023 08:23:58 +0100 Subject: [PATCH] Use hx-push-url where possible --- .../resources/templates/fragments/layout.html | 2 +- .../resources/templates/fragments/owners.html | 25 +++++-------------- 2 files changed, 7 insertions(+), 20 deletions(-) diff --git a/src/main/resources/templates/fragments/layout.html b/src/main/resources/templates/fragments/layout.html index e10a525..63ae5fd 100755 --- a/src/main/resources/templates/fragments/layout.html +++ b/src/main/resources/templates/fragments/layout.html @@ -37,7 +37,7 @@
  • + hx:get="@{__${link}__}" hx:target="${target}" hx-push-url="true"> Template diff --git a/src/main/resources/templates/fragments/owners.html b/src/main/resources/templates/fragments/owners.html index bf6c5eb..4e59731 100644 --- a/src/main/resources/templates/fragments/owners.html +++ b/src/main/resources/templates/fragments/owners.html @@ -25,7 +25,7 @@

    Find Owners

    Add Owner + hx-push-url="true" th:href="@{/owners/new}">Add Owner @@ -47,7 +47,7 @@

    Owners

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

    Owner Information

    -<<<<<<< HEAD - Edit Owner - Add -======= - Edit - Owner - Add ->>>>>>> 9a4ee11 (Remove unnecessary servlet response manipulations) + Add New Pet @@ -129,19 +122,13 @@

    Pets and Visits

    Edit Pet - Add Visit -======= hx:get="@{__${owner.id}__/pets/__${pet.id}__/edit}" - hx:push-url="@{__${owner.id}__/pets/__${pet.id}__/edit}" + hx-push-url="true" hx-target="#block-content">Edit Pet Add Visit ->>>>>>> 9a4ee11 (Remove unnecessary servlet response manipulations)