aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--module/calp/html/view/calendar.scm9
-rw-r--r--static/style.scss8
2 files changed, 17 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")
diff --git a/static/style.scss b/static/style.scss
index 3f92f8fc..9cc8916e 100644
--- a/static/style.scss
+++ b/static/style.scss
@@ -165,6 +165,14 @@ html, body {
}
}
+.simplesearch {
+ display: flex;
+
+ input[type=text] {
+ flex-grow: 1;
+ }
+}
+
/* Eventlist
----------------------------------------
The sidebar with all the events