From 769a8c8cd34142d4b245ba572a0b0114c69ac620 Mon Sep 17 00:00:00 2001 From: Josha von Gizycki Date: Wed, 16 Jan 2019 16:13:15 +0100 Subject: [PATCH] add back link from instance-edit --- src/wanijo/instance/view.clj | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wanijo/instance/view.clj b/src/wanijo/instance/view.clj index f55c312..0633f57 100644 --- a/src/wanijo/instance/view.clj +++ b/src/wanijo/instance/view.clj @@ -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)