feat(15): submitting form data on step back
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user