From 5d1aec4aafcf5a6407b2afe6038a07bb8147846f Mon Sep 17 00:00:00 2001 From: Josha von Gizycki Date: Thu, 17 Jan 2019 10:22:24 +0100 Subject: [PATCH] add back to list link from instance-edit --- src/wanijo/instance/view.clj | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/wanijo/instance/view.clj b/src/wanijo/instance/view.clj index 5094396..4a46674 100644 --- a/src/wanijo/instance/view.clj +++ b/src/wanijo/instance/view.clj @@ -105,8 +105,13 @@ (h (-> instance :schema :name)) " " [:small (h (:name instance))]] - [:p [:small [:a {:href (path :instance-show instance)} - "Back to Instance"]]] + [:p [:small + [:a {:href (path :instance-list + {:schema-uuid (-> instance :schema :uuid)})} + "Back to List"] + " | " + [: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)