|
|
|
@ -29,10 +29,10 @@
|
|
|
|
|
:spec ::attr-domain/required
|
|
|
|
|
:widget :checkbox}}})
|
|
|
|
|
|
|
|
|
|
(def access-form
|
|
|
|
|
(def assign-form
|
|
|
|
|
{:fields {:assigned {:label "Users"
|
|
|
|
|
:required false
|
|
|
|
|
:spec :a
|
|
|
|
|
:spec ::domain/assigned-to
|
|
|
|
|
:widget :mselect}}})
|
|
|
|
|
|
|
|
|
|
(defn overview! [req]
|
|
|
|
@ -61,7 +61,7 @@
|
|
|
|
|
(form/render-widgets form {} req)
|
|
|
|
|
(hform/submit-button "Create"))])))
|
|
|
|
|
|
|
|
|
|
(defn show-schema! [schema attrs access-form req]
|
|
|
|
|
(defn show-schema! [schema attrs assign-form req]
|
|
|
|
|
(view/layout!
|
|
|
|
|
:session (:session req)
|
|
|
|
|
:content
|
|
|
|
@ -74,7 +74,7 @@
|
|
|
|
|
(hform/submit-button "Edit"))
|
|
|
|
|
[:h3 "Assign to users"]
|
|
|
|
|
(hform/form-to [:post (path :schema-assign)]
|
|
|
|
|
(form/render-widgets access-form schema req)
|
|
|
|
|
(form/render-widgets assign-form schema req)
|
|
|
|
|
(hform/hidden-field "uuid" (:uuid schema))
|
|
|
|
|
(hform/submit-button "Assign"))
|
|
|
|
|
[:h2 "Attributes"]
|
|
|
|
|