From 088575c2d8f14f13fa8d651b37568ed7fe605141 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Thu, 12 Sep 2024 13:00:36 +0200 Subject: [PATCH] Hide subtitle form for non-admins --- src/co/gaiwan/compass/html/sessions.clj | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/co/gaiwan/compass/html/sessions.clj b/src/co/gaiwan/compass/html/sessions.clj index 7eb347a..0919a3c 100644 --- a/src/co/gaiwan/compass/html/sessions.clj +++ b/src/co/gaiwan/compass/html/sessions.clj @@ -367,11 +367,12 @@ session (assoc :value (:session/title session)))] (when (user/admin? user) - [:label {:for "subtitle"} "Subtitle (optional)"]) - [:input (cond-> {:id "subtitle" :name "subtitle" :type "text" - :min-length 10} - session - (assoc :value (:session/subtitle session)))] + [:<> + [:label {:for "subtitle"} "Subtitle (optional)"] + [:input (cond-> {:id "subtitle" :name "subtitle" :type "text" + :min-length 10} + session + (assoc :value (:session/subtitle session)))]]) [:label {:for "start-time"} "Day and Start Time"] [:div.date-time [:input {:id "start-date" :name "start-date" :type "date"