Skip to content

Commit

Permalink
Rename <div to <form to fix the issue. Fix #309
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Moulliard <[email protected]>
  • Loading branch information
cmoulliard committed May 4, 2023
1 parent 1b581fe commit d071346
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/resources/templates/services/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="container" id="form">
{#if service.id == null }
<h1>New Service</h1>
<div class="form-horizontal" action="/services" hx-post="/services" hx-target="#response" method="POST"
<form class="form-horizontal" action="/services" hx-post="/services" hx-target="#response" method="POST"
hx-swap="innerHTML">
{#else}
<h1>Update Service</h1>
Expand Down Expand Up @@ -117,7 +117,7 @@ <h1>Update Service</h1>
<div class="container">
<div id="response"/>
</div>
</div>
</form>
{/body}
{/include}
<script>
Expand Down

0 comments on commit d071346

Please sign in to comment.