|
|
|
@ -14,12 +14,11 @@
|
|
|
|
|
(view/list! (domain-schema/find-by-uuid! schema-uuid)
|
|
|
|
|
(domain/find-by-schema! schema-uuid)
|
|
|
|
|
(forms-inst/instance-form schema-uuid)
|
|
|
|
|
(new-form schema-uuid)
|
|
|
|
|
req))
|
|
|
|
|
|
|
|
|
|
(defn new! [req]
|
|
|
|
|
(let [schema-uuid (get-in req [:params :schema-uuid])
|
|
|
|
|
form-def (new-form schema-uuid)]
|
|
|
|
|
form-def (forms-inst/instance-form schema-uuid)]
|
|
|
|
|
(if (form/valid? form-def req)
|
|
|
|
|
(let [form-data (form/form-data form-def req)
|
|
|
|
|
req-attrs (domain-attr/required! schema-uuid)
|
|
|
|
|