Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some missing hx-push-url #12

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading