aboutsummaryrefslogtreecommitdiff
path: root/module/calp/html/vcomponent.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/calp/html/vcomponent.scm')
-rw-r--r--module/calp/html/vcomponent.scm63
1 files changed, 27 insertions, 36 deletions
diff --git a/module/calp/html/vcomponent.scm b/module/calp/html/vcomponent.scm
index 4852390c..7530de91 100644
--- a/module/calp/html/vcomponent.scm
+++ b/module/calp/html/vcomponent.scm
@@ -160,44 +160,35 @@
(end (prop ev 'DTEND)))
`(div (@ (class "timeinput"))
- (input (@ (type "date")
- (name "dtstart-date")
- (style "grid-column:1;grid-row:2")
- (class "bind")
- (data-property "--dtstart-date")
- (value ,(date->string (as-date start)))))
-
- (input (@ (type "date")
- (name "dtend-date")
- (style "grid-column:1;grid-row:3")
- (class "bind")
- (data-property "--dtend-date")
- ,@(when end `((value ,(date->string (as-date end)))))))
+ ,@(with-label
+ "Starttid"
+ `(div (@ (class "date-time bind")
+ (data-bindby "bind_date_time")
+ (name "dtstart"))
+ (input (@ (type "date")
+ (value ,(date->string (as-date start)))))
+ (input (@ (type "time")
+ (value ,(time->string (as-time start)))))))
,@(with-label
- "Heldag?"
- `(input (@ (type "checkbox")
- (class "bind")
- (data-bindby "bind_wholeday")
- (style "display:none")
- (name "wholeday"))))
-
- (input (@ (type "time")
- (name "dtstart-time")
- (class "bind")
- (data-property "--dtstart-time")
- (style "grid-column:3;grid-row:2;"
- ,(when (date? start) "display:none"))
- (value ,(time->string (as-time start)))))
-
- (input (@ (type "time")
- (name "dtend-time")
- (class "bind")
- (data-property "--dtend-time")
- (style "grid-column:3;grid-row:3;"
- ,(when (date? end) "display:none"))
- ,@(when end `((value ,(time->string (as-time end)))))
- ))))
+ "Sluttid"
+ `(div (@ (class "date-time bind")
+ (data-bindby "bind_date_time")
+ (name "dtend"))
+ (input (@ (type "date")
+ ,@(when end `((value ,(date->string (as-date end)))))))
+ (input (@ (type "time")
+ ,@(when end `((value ,(time->string (as-time end)))))))))
+
+ (div
+ ,@(with-label
+ "Heldag?"
+ `(input (@ (type "checkbox")
+ (class "bind")
+ (data-bindby "bind_wholeday")
+ (name "wholeday")))))
+
+ ))
,@(with-label
"Plats"