Skip to content

Commit

Permalink
Merge pull request #12 from dsyer/pushurl
Browse files Browse the repository at this point in the history
Add some missing hx-push-url
  • Loading branch information
agrison authored Apr 8, 2024
2 parents 19b8693 + 1e175ad commit 7ee8bab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/templates/fragments/pets.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ <h2>
Pet
</h2>
<form th:object="${pet}" class="form-horizontal" method="post"
hx-post hx-swap="innerHTML" hx-target="#block-content">
hx-post hx-swap="innerHTML" hx-target="#block-content" hx-push-url="true">
<input type="hidden" name="id" th:value="*{id}" />
<div class="form-group has-feedback">
<div class="form-group">
Expand Down Expand Up @@ -57,7 +57,7 @@ <h2>
</tr>
</table>

<form th:object="${visit}" class="form-horizontal" hx-post hx-swap="innerHTML" hx-target="#block-content" method="post">
<form th:object="${visit}" class="form-horizontal" hx-post hx-swap="innerHTML" hx-target="#block-content" hx-push-url="true" method="post">
<div class="form-group has-feedback">
<input
th:replace="~{fragments/inputField :: input ('Date', 'date', 'date')}" />
Expand Down

0 comments on commit 7ee8bab

Please sign in to comment.