Skip to content

Commit

Permalink
Hide subtitle form for non-admins
Browse files Browse the repository at this point in the history
  • Loading branch information
oxalorg committed Sep 12, 2024
1 parent 88385f8 commit 088575c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/co/gaiwan/compass/html/sessions.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 088575c

Please sign in to comment.