feat(15): submitting form data on step back

This commit is contained in:
efim
2023-07-15 12:05:04 +00:00
parent 5f260455cb
commit 076dc76ca4
6 changed files with 40 additions and 76 deletions

View File

@@ -39,9 +39,9 @@
<form
class="flex flex-col items-center w-screen h-screen md:grid md:items-start md:p-5 md:bg-white md:rounded-2xl md:grid-cols-[auto_1fr] md:w-desktop-form md:h-desktop-form md:drop-shadow-2xl"
id="form-step"
hx-post="/submit-step/3"
hx-post="/submit-step/3/4"
hx-swap="outerHTML"
action="/submit-step/3"
action="/submit-step/3/4"
method="post"
th:fragment="formFragment(formData)"
>
@@ -191,9 +191,9 @@
class="flex flex-row items-center py-4 w-full bg-white md:items-end md:h-full"
>
<a
hx-get="/get-form/2"
hx-target="#form-step"
hx-post="/submit-step/3/2"
hx-swap="outerHTML"
hx-target="#form-step"
href="step2.html"
class="ml-6 text-sm font-semibold md:pb-3 md:ml-20 md:text-base text-cool-gray"
>Go Back</a