Add vendor pre-population for bulk code and individual edit forms
- Add vendor-changed HTMX handlers for both bulk code and individual edit - Pre-populate default account at 100% when vendor is selected and no accounts exist - Fix render-accounts-section to render from step-params correctly - Change bulk code vendor-changed from hx-get to hx-post to include form data - Add routes for vendor-changed endpoints - Update e2e tests to cover vendor pre-population - Run lein cljfmt fix across codebase
This commit is contained in:
@@ -7,12 +7,12 @@
|
||||
(defn handle-ezcater [{:keys [request-method json-params] :as r}]
|
||||
(cond
|
||||
(= :get request-method)
|
||||
{:status 200
|
||||
{:status 200
|
||||
:headers {"Content-Type" "application/json"}
|
||||
:body "{}"}
|
||||
|
||||
(= :post request-method)
|
||||
(do
|
||||
(do
|
||||
(alog/info ::ezcater-request
|
||||
:json-params json-params)
|
||||
(e/import-order json-params)
|
||||
@@ -23,8 +23,6 @@
|
||||
:else
|
||||
{:status 404}))
|
||||
|
||||
|
||||
|
||||
(def routes {"api/" {"ezcater/" {#"event/?" :ezcater-event}}})
|
||||
(def match->handler {:ezcater-event (-> handle-ezcater
|
||||
wrap-json-params)})
|
||||
wrap-json-params)})
|
||||
|
||||
Reference in New Issue
Block a user