add back link from instance-edit

integration-tests
Josha von Gizycki 6 years ago
parent a15b223e08
commit 769a8c8cd3

@ -46,9 +46,8 @@
(h (-> instance :schema :name))
" "
[:small (h (:name instance))]]
[:p
[:small [:a {:href (path :instance-edit-form instance)}
"Edit Instance"]]]
[:p [:small [:a {:href (path :instance-edit-form instance)}
"Edit Instance"]]]
[:h2 "Properties"]
(for [prop (:properties instance)
:let [attr (:attribute prop)
@ -87,6 +86,8 @@
(h (-> instance :schema :name))
" "
[:small (h (:name instance))]]
[:p [:small [:a {:href (path :instance-show instance)}
"Back to Instance"]]]
[:h2 "Edit Instance"]
(hform/form-to [:post (path :instance-edit instance)]
(form/render-widgets form form-data req)

Loading…
Cancel
Save