fix: change toggle-mode links from hx-get to hx-post so form data is submitted

This commit is contained in:
2026-05-27 23:53:43 -07:00
parent cbb9bc750d
commit 79ddda624a

View File

@@ -241,7 +241,7 @@
:value total}))]])) :value total}))]]))
[:div.mt-1 [:div.mt-1
[:a.text-sm.text-blue-600.hover:underline.cursor-pointer [:a.text-sm.text-blue-600.hover:underline.cursor-pointer
{:hx-get (bidi/path-for ssr-routes/only-routes ::route/edit-wizard-toggle-mode) {:hx-post (bidi/path-for ssr-routes/only-routes ::route/edit-wizard-toggle-mode)
:hx-include "closest form" :hx-include "closest form"
:hx-target "#manual-coding-section" :hx-target "#manual-coding-section"
:hx-swap "outerHTML"} :hx-swap "outerHTML"}
@@ -534,7 +534,7 @@
(when (<= row-count 1) (when (<= row-count 1)
[:div.mb-2 [:div.mb-2
[:a.text-sm.text-blue-600.hover:underline.cursor-pointer [:a.text-sm.text-blue-600.hover:underline.cursor-pointer
{:hx-get (bidi/path-for ssr-routes/only-routes ::route/edit-wizard-toggle-mode) {:hx-post (bidi/path-for ssr-routes/only-routes ::route/edit-wizard-toggle-mode)
:hx-include "closest form" :hx-include "closest form"
:hx-target "#manual-coding-section" :hx-target "#manual-coding-section"
:hx-swap "outerHTML"} :hx-swap "outerHTML"}