aboutsummaryrefslogtreecommitdiff
path: root/module/calp/html
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-08-27 20:47:58 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-08-27 20:47:58 +0200
commit5fe305711469d7c7146b1e45f1a5fd7ee02ed67a (patch)
treefbccbcb4ff2afd536d4042646c4651a470c422d7 /module/calp/html
parentAdd /search/text endpoint. (diff)
downloadcalp-5fe305711469d7c7146b1e45f1a5fd7ee02ed67a.tar.gz
calp-5fe305711469d7c7146b1e45f1a5fd7ee02ed67a.tar.xz
Add search field.
Diffstat (limited to 'module/calp/html')
-rw-r--r--module/calp/html/view/calendar.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/module/calp/html/view/calendar.scm b/module/calp/html/view/calendar.scm
index 27edfcb4..a505b586 100644
--- a/module/calp/html/view/calendar.scm
+++ b/module/calp/html/view/calendar.scm
@@ -194,6 +194,15 @@
(div (@ (style "grid-area: details"))
+
+ (form (@ (class "simplesearch")
+ (action "/search/text"))
+ (input (@ (type "text")
+ (name "q")
+ (placeholder "Sök")))
+ (input (@ (type "submit")
+ (value ">"))))
+
,(when (or (debug) (edit-mode))
`(details (@ (class "sliders"))
(summary "Option sliders")